Broken memory management on system with no swap

From: Lucky Green <shamrock_at_cypherpunks.to>
Date: Sat, 19 Apr 2003 07:45:21 -0700
There appears to be a memory management bug that affects systems without
swap files. Processes are killed off due to the server being "out of
swap space" even though top shows some 800MB of "inactive" memory
available.

Apr 18 18:13:25 pakastelohi kernel: swap_pager_getswapspace: failed
Apr 18 21:10:04 pakastelohi kernel: pid 15680 (smtpd), uid 1045, was
killed: out
 of swap space
Apr 18 23:14:47 pakastelohi kernel: pid 17730 (smtpd), uid 1045, was
killed: out
 of swap space

Configuration:
Dual PIII-800, 1GB of RAM
swapfile="NO" is set in rc.conf
CURRENT from April 18

I suspect that for some reason memory listed as "inactive" by top is not
being correctly allocated to new processes when no swapfile is
available, since the errors do not appear until memory listed as "free"
has dropped to about 1.5-3k.

Let me know if you need additional information.

--Lucky
Received on Sat Apr 19 2003 - 05:45:28 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:04 UTC