mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 06:09:39 +08:00
fix(host): recover page size on hugepage disabled
This commit is contained in:
@@ -1325,6 +1325,9 @@ func (h *SHostInfo) updateHostRecord(hostId string) {
|
||||
if h.IsHugepagesEnabled() {
|
||||
pageSizeKb := options.HostOptions.HugepageSizeMb * 1024
|
||||
input.PageSizeKB = &pageSizeKb
|
||||
} else {
|
||||
pageSizeKb := 4
|
||||
input.PageSizeKB = &pageSizeKb
|
||||
}
|
||||
input.StorageDriver = api.DISK_DRIVER_LINUX
|
||||
input.StorageType = h.sysinfo.StorageType
|
||||
|
||||
Reference in New Issue
Block a user