Skip to main content.

2006-Apr-13

My main server crashed. I plugged in a monitor and saw it said "UVM" and Exim and "uid 0 killed: out of swap". The system has 93MB of memory and 25MB of swap. Before last July, it only had 28MB of memory. I wish I knew what was going on with the system, but I don't recall this ever happening before since it was installed last year. No exim logs related and don't see any other logs either about this.

I guess I should tune some limits so no process can use up my memory.

For pflkm (from pkgsrc) with greylisting spamd (from pkgsrc), first copy the /usr/pkg/share/examples/rc.d/pf* files to /etc/rc.d/ and then set in your /etc/rc.conf:

lkm=YES
pf=YES
pfspamd=YES
pfspamd_flags=-g
And also add to /etc/lkm.conf:
/usr/pkg/lkm/pf.o - - - - AFTERMOUNT
Also be sure to have a /dev/pf by doing:
cd /dev && ./MAKEDEV pf

I have noticed before, but I keep forgetting: when trying to figure out builtin.mk files in pkgsrc be sure to do this with no $WRKDIR because your builtin.mk changes may be saved and used from work/.*_makevars.mk files.