[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Running with vm.overcommit_memory=2



Ralf Ertzinger wrote:

Hi.

Rik van Riel <riel redhat com> wrote:



You configured the kernel to not overcommit memory, so it won't.
It makes sure that all the memory that was requested is available
for programs to use, regardless of whether programs actually use it.



Is the amount of memory that 'free' reports as 'free' (or /proc/meminfo
states as 'MemFree:') the amount of unrequested memory, or does it include
requested but not actually used memory?


used memory includes file-backed (cached) memory, and kernel memory, so 'free' does not fit any of your descriptions.

If the latter, where can one see the amount of unrequested memory?



total requested memory is in /proc/meminfo:Committed_AS, which is limited by swap + half ram. subtract the former from the latter to see how far you can go.



--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]