Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Apr 2003 07:45:21 -0700
From:      "Lucky Green" <shamrock@cypherpunks.to>
To:        <freebsd-current@FreeBSD.ORG>
Subject:   Broken memory management on system with no swap
Message-ID:  <000501c30682$4e5e64b0$6601a8c0@VAIO650>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000501c30682$4e5e64b0$6601a8c0>