pkg update running out of swap

Running /usr/sbin/pkg update -f overnight caused this:

Code:
Jul 24 03:21:00 centurion kernel: swap_pager: out of swap space
Jul 24 03:21:00 centurion kernel: swp_pager_getswapspace(10): failed
Jul 24 03:21:04 centurion kernel: pid 78070 (pkg), jid 0, uid 0, was killed: failed to reclaim memory
Jul 24 03:21:08 centurion kernel: pid 26453 (milter-relay), jid 0, uid 26, was killed: failed to reclaim memory
Jul 24 03:21:08 centurion kernel: swap_pager: out of swap space
Jul 24 03:21:08 centurion kernel: swp_pager_getswapspace(18): failed

The system has 1G of memory and a 1G swap partition. This is the typical memory usage:

Code:
last pid: 87219;  load averages:  0.55,  0.58,  0.52             up 20+22:43:14  08:57:31
39 processes:  1 running, 38 sleeping
CPU:  0.8% user,  0.0% nice,  1.2% system,  0.0% interrupt, 98.0% idle
Mem: 25M Active, 296M Inact, 164K Laundry, 283M Wired, 90M Buf, 858M Free
Swap: 1024M Total, 26M Used, 997M Free, 2% Inuse

This has never happened before - the same command has been running via cron ever since pkg appeared.

Any ideas?
 
Back
Top