M.D. DeWar wrote:

>>>Okay I gave it a shot and this is what I got.
>>>So is this right or did it fubar. ?
>>>
>>>spiderman# perl spfilter.pl -f=postfix PDL
>>>[81503] spfilter.pl (uid=0, os=freebsd)
>>>WARNING cant locate keyring 'spfilter-keyring.gpg' (GPG DISABLED)
>>>Status  200 http://spfilter.sourceforge.net/code/spfilter-config.xml.bz2
>>>Purge   spfilter-config.xml.031120 (1 files)
>>>Agent   spfilter/0.59 (PDL, postfix, freebsd)
>>>Status  200 http://www.pan-am.ca/pdl/pdl-list.txt.bz2
>>>Parse   ./cache/PDL.031202 (cidr, 34850 lines)
>>>Killed
>>>^^^^^^^^
>>>that doesn't look good.
>>>If not what could be that matter.
>>
>>Hmmm.  Anything in /var/log/messages out of the ordinary?  I could see if
>>the machine was low on resources that FreeBSD may kill it but just a
> 
> guess.
> 
>>  Still have free swap space (run swapinfo to see) and disk space?
>>
> 
> Damn your good.
> Yep theres errors about swap space:
> Dec  2 10:01:00 spiderman /kernel: swap_pager_getswapspace: failed
> Dec  2 10:01:12 spiderman /kernel: swap_pager_getswapspace: failed
> Dec  2 10:03:25 spiderman last message repeated 28 times
> Dec  2 10:13:33 spiderman last message repeated 362 times
> Dec  2 10:23:39 spiderman last message repeated 2103 times
> Dec  2 10:26:27 spiderman last message repeated 236 times
> Dec  2 10:26:27 spiderman /kernel: pid 76403 (perl), uid 0, was killed: out
> of s
> wap space
> Dec  2 10:26:28 spiderman /kernel: swap_pager_getswapspace: failed
> Dec  2 10:26:28 spiderman last message repeated 3 times
> Dec  2 10:27:18 spiderman /kernel: swap_pager_getswapspace: failed
> spiderman# swapinfo
> Device          1K-blocks     Used    Avail Capacity  Type
> /dev/ad0s1b        524160   414752   109408    79%    Interleaved
> 
> okay OT how do I fix this swap issue. In doing a df -h I don't see any
> report on it.
> and how do you get the swap space back or find out whats eating it up.

Use ps to find out what processes are using your memory.  ps -auxwm will 
give you a list sorted by memory usage.  Look at the VSZ column.  When your 
real memory is used up, your swap will be used.  When your swap space fills 
up, FreeBSD will kill the process using the largest amount of swap.  At 
least this is how I understand it from problems I had in the past--I'm sure 
someone can give a better explanation.

Swap issues suck.  If you have more space avail. on your drive or can add 
another, you can create an additional swap partition.  Or, don't run things 
which use more memory than you have (both real and swap).  You likely won't 
be able to use spfilter for large maps without more swap.  On my system it 
uses 282728 KB of VSZ to make the map for PDL.

When I build FreeBSD boxes now, I use at least 2X RAM size for my swap on 
machines with less than 512MB RAM.


-- 
Chris Scott
Host Orlando, Inc
http://www.hostorlando.com/


Reply via email to