-
Notifications
You must be signed in to change notification settings - Fork 495
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(FACT-3149) Fix memory usage reporting on FreeBSD
* In vmstat(8), "free memory" correspond to unused memory that does not contain any data, and does not include cache / inactive memory which has some data but is immediatly available to the system if memory is needed. Prefer to get active and wired memory page count form sysctl(3) which correpond to the used memory that can (active) and cannot (wired) be swapped out, and multiply these by the size of a memory page. This give a better overview of the current memory usage. * Prefer `vm.stats.vm.v_page_count` over `hw.physmem`: The available memory can be lower that what is physically present in the system and the free / used memory is a portion of the usable memory more than a portion of the physical memory.
- Loading branch information
Showing
3 changed files
with
26 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.