Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-10] src/sys/uvm



Module Name:    src
Committed By:   martin
Date:           Sun Dec 15 14:56:53 UTC 2024

Modified Files:
        src/sys/uvm [netbsd-10]: uvm_km.c

Log Message:
Pull up following revision(s) (requested by chs in ticket #1027):

        sys/uvm/uvm_km.c: revision 1.166

kmem: improve behavior when using all of physical memory as kmem

On systems where kmem does not need to be limited by kernel virtual
space (essentially 64-bit platforms), we currently try to size the
"kmem" space to be big enough for all of physical memory to be
allocated as kmem, which really means that we will always run short of
physical memory before we run out of kernel virtual space.  However
this does not take into account that uvm_km_va_starved_p() starts
reporting that we are low on kmem virtual space when we have used 90%
of it, in an attempt to avoid kmem space becoming too fragmented,
which means on large memory systems we will still start reacting to
being short of virtual space when there is plenty of physical memory
still available.  Fix this by overallocating the kmem space by a
factor of 10/9 so that we always run low on physical memory first,
as we want.


To generate a diff of this commit:
cvs rdiff -u -r1.162 -r1.162.4.1 src/sys/uvm/uvm_km.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index