Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 May 1999 17:44:00 -0700
From:      Jerry Preeper <preeper@cts.com>
To:        Doug White <dwhite@resnet.uoregon.edu>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: swap_pager: out of swap space (-->crash)
Message-ID:  <3.0.5.32.19990528174400.043c1750@crash.cts.com>
In-Reply-To: <Pine.BSF.4.03.9905281630160.11808-100000@resnet.uoregon.ed u>
References:  <3.0.5.32.19990528154716.041b4280@crash.cts.com>

next in thread | previous in thread | raw e-mail | index | archive | help

This is post-crash with almost 2 hours uptime now.

su-2.01# swapinfo
Device      1K-blocks     Used    Avail Capacity  Type
/dev/sd0s2b    144585     7536   136985     5%    Interleaved

I just noticed in the faq129 that swap should be 2x memory as a rule of
thumb, so I guess I should bump this to 256MB swap from the 141 MB.
However, I hardly ever notice swap space getting used (I have the top
output on the server emailed me every two hours) and it rarely has any swap
space used with load averages of .1 to .25 and swap of 10MB to 20MB used.

Should I be adding more RAM to the box as well?  Like another 128MB or
something?

On the getad.cgi, I have been running that program with no changes to it
for about a year now.  The only recent changes to the machine was the
upgrade to 2.2.8-Stable about 2weeks ago.  The program is a c program for
displaying ad banners that probably displays about 20,000 banners per day.

Jerry Preeper


At 04:31 PM 5/28/99 -0700, Doug White wrote:
>On Fri, 28 May 1999, Jerry Preeper wrote:
>
>> I'm hoping someone might be able to provide some insight.  When I got back
>> from lunch today, I found a few console messages on my connection to my
>> server running 2.2.8-Stable (from cvsup about 2 weeks ago), like this:
>
>(some odd wall messages)
>
>> and then found my nameserver and webserver dead.  I rebooted the machine
>> and 10 minutes later, it crashed again.  Reboot.  Then crashes again.
>> Reboot again.
>> 
>> I did get to download the messages file and after the first reboot found
>> this in the messages file (which is just filled with May 28 14:49:22 trixie
>> /kernel: pid 1302 (httpd), uid 50: exited on signal 11 messages):
>> 
>> May 28 14:35:30 trixie named[675]: Ready to answer queries. 
>> May 28 14:38:13 trixie proftpd[898]: FTP session closed. 
>> May 28 14:39:11 trixie su: jerry to root on /dev/ttyp0
>> May 28 14:43:06 trixie /kernel: swap_pager: out of swap space
>> May 28 14:43:15 trixie /kernel: pid 1139 (getad.cgi), uid 50: exited on
>> signal 11
>> May 28 14:43:16 trixie /kernel: pid 1140 (getad.cgi), uid 50: exited on
>> signal 11
>> May 28 14:43:25 trixie /kernel: swap_pager: out of swap space
>> May 28 14:48:16 trixie /kernel: pid 1144 (getad.cgi), uid 50: exited on
>> signal 11
>> May 28 14:48:40 trixie named[675]: flushset: out of memory - ABORT
>> May 28 14:48:40 trixie /kernel: pid 675 (named), uid 0: exited on signal 6
>> May 28 14:48:41 trixie /kernel: pid 1143 (perl5.00404), uid 50: exited on
>> signal 11
>
>Looks like a runaway process.  Perhaps your 'getad.cgi' has a bug?  Watch
>top for a while.
>
>> The machine is PII-233, Asus P2L97S MB, 128 MB ram, 141 MB swap space,
>> 4.5GB Barracuda HD running basic web server functions. Apache is 1.3.4 and
>> sendmail is 8.9.2
>
>You should have more swap.
>
>> Mounted on
>> /dev/sd0s1a   4168505  3157871   677154    82%  169750  844008    17%   /
>> procfs              4        4        0   100%      44    4072     1%
/proc
>> 
>> so it seems I have plenty of room for the swap.  I checked the archives and
>> saw that swap should be slightly more than RAM, which it is, but can't seem
>> to find out why this is happening.
>
>Swap is on a separate partition.  What does 'swapinfo' report?
>
>Doug White                               
>Internet:  dwhite@resnet.uoregon.edu    | FreeBSD: The Power to Serve
>http://gladstone.uoregon.edu/~dwhite    | www.freebsd.org
>
>
>
>To Unsubscribe: send mail to majordomo@FreeBSD.org
>with "unsubscribe freebsd-questions" in the body of the message
>
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.19990528174400.043c1750>