Updated memory calculation logic for MacOS
The available physical memory computation now includes the inactive_count along with the free_count.meow-7.2.2
parent
2e7ed2a172
commit
a447221d66
|
|
@ -154,7 +154,7 @@ void LLMemory::updateMemoryInfo()
|
|||
// <FS:Beq> align MemInfo across platforms
|
||||
// sAvailPhysicalMemInKB = U32Bytes(vmstat.free_count * page_size);
|
||||
// sMaxPhysicalMemInKB = LLMemoryInfo::getHardwareMemSize();
|
||||
avail_phys = U32Bytes(vmstat.free_count * page_size);
|
||||
avail_phys = U32Bytes( (vmstat.free_count + vmstat.inactive_count) * page_size);
|
||||
sMaxHeapSizeInKB = LLMemoryInfo::getHardwareMemSize();
|
||||
// </FS:Beq>
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue