Packages don't install correctly:out of swap space
-
follow this topic
http://forum.pfsense.org/index.php/topic,44242.msg229525.html#msg229525 -
kernel: pid 62421 (php), uid 0, was killed: out of swap space
killall php helps, but WFT (never had those problems before) ?
-
Are you getting out of RAM? Can you monitor it while installing a package.
-
Are you getting out of RAM? Can you monitor it while installing a package.
indeed, but why (I didn't have anything special nor a package installed!)? killall php sometimes works (progress in installation apps).
-
what can I do to solve those errors (killing php doesn't work very well, it always comes back) ? my router just freezes!
-
Did you tried something like increase firewall maximum states?
-
Did you tried something like increase firewall maximum states?
No, all standard.
Could I enable swap on my embedded installation?
-
Swap on Cf cards will slow down your system.
Increase Max firewall states and see what happens if you detect on Dashboard that current state table is getting full.
-
Swap on Cf cards will slow down your system.
Increase Max firewall states and see what happens if you detect on Dashboard that current state table is getting full.
It's not getting full:
State table size
Show states
347/23000But I get a lot of those errors: all from php!
Dec 25 08:29:03 kernel: pid 14973 (php), uid 0, was killed: out of swap space
Dec 25 08:29:04 kernel: pid 14766 (php), uid 0, was killed: out of swap space
Dec 25 08:29:04 kernel: pid 59842 (php), uid 0, was killed: out of swap space
Dec 25 08:29:08 kernel: pid 16287 (php), uid 0, was killed: out of swap space
Dec 25 08:29:09 kernel: pid 59371 (php), uid 0, was killed: out of swap space
Dec 25 08:29:10 kernel: pid 54109 (php), uid 0, was killed: out of swap space
Dec 25 08:29:13 kernel: pid 25987 (php), uid 0, was killed: out of swap space
Dec 25 08:29:13 kernel: pid 42059 (php), uid 0, was killed: out of swap space
Dec 25 08:29:16 kernel: pid 28878 (php), uid 0, was killed: out of swap space
Dec 25 08:29:16 kernel: pid 61377 (php), uid 0, was killed: out of swap space
Dec 25 08:29:17 kernel: pid 41523 (php), uid 0, was killed: out of swap space
Dec 25 08:29:19 kernel: pid 37159 (php), uid 0, was killed: out of swap space
Dec 25 08:29:20 kernel: pid 17807 (php), uid 0, was killed: out of swap space
Dec 25 08:29:20 kernel: pid 28161 (php), uid 0, was killed: out of swap space
Dec 25 08:29:28 kernel: pid 52579 (php), uid 0, was killed: out of swap space
Dec 25 08:29:28 kernel: pid 56046 (php), uid 0, was killed: out of swap space
Dec 25 08:29:29 kernel: pid 30769 (php), uid 0, was killed: out of swap space
Dec 25 08:29:30 kernel: pid 54447 (php), uid 0, was killed: out of swap space
Dec 25 08:29:30 kernel: pid 58714 (php), uid 0, was killed: out of swap space -
Whatever you installed is trying to use more RAM than you have. Since you don't have swap (and you shouldn't have swap on CF… it would kill the CF) it has to kill the process.
How much RAM do you have on that ALIX? 256MB? That's what mine has and it's running 2.0.1 fine and I haven't hit an error like that.
If you list what packages you have, perhaps more guidance can be given.
Also the full output of:
ps uxawww
And let this run for a few minutes in a shell then quit and capture the full screen of output:
top -SH
-
256MB is guess (isn't that old, maybe 2y).The Problem occured before installing any packages btw.
Internet also fails (on LAN) after a while (while being up).last pid: 28374; load averages: 0.69, 1.52, 0.89 up 0+00:08:14 18:47:35
112 processes: 2 running, 93 sleeping, 4 zombie, 13 waiting
CPU: 0.4% user, 0.4% nice, 0.8% system, 0.4% interrupt, 98.1% idle
Mem: 66M Active, 1820K Inact, 61M Wired, 764K Cache, 34M Buf, 104M Free
Swap:PID USERNAME PRI NICE SIZE RES STATE TIME WCPU COMMAND
10 root 171 ki31 0K 8K RUN 2:17 89.99% idle
21883 root 65 20 10748K 4860K kqread 0:01 1.95% bandwidthd
0 root -16 0 0K 48K sched 0:39 0.00% {swapper}
11 root -64 - 0K 104K WAIT 0:20 0.00% {irq14: ata0}
9 root -16 - 0K 8K psleep 0:02 0.00% pagedaemon
11 root -40 - 0K 104K WAIT 0:02 0.00% {swi2: cambio}
4 root -8 - 0K 8K - 0:02 0.00% g_down
13 root -16 - 0K 8K - 0:02 0.00% yarrow
46463 root 52 0 33116K 0K accept 0:01 0.00% <php>11 root -68 - 0K 104K WAIT 0:01 0.00% {irq11: vr1}
39477 root 64 20 10748K 3852K bpf 0:01 0.00% bandwidthd
44678 root 76 0 34140K 0K accept 0:01 0.00% <php>11 root -68 - 0K 104K WAIT 0:01 0.00% {irq10: vr0}
11 root -32 - 0K 104K WAIT 0:01 0.00% {swi4: clock}
3 root -8 - 0K 8K - 0:01 0.00% g_up
46390 root 76 0 34140K 0K accept 0:01 0.00% <php>15 root -16 - 0K 8K psleep 0:01 0.00% vmdaemon
46945 root 60 0 34140K 0K accept 0:01 0.00% <php>14 root -64 - 0K 72K - 0:01 0.00% {usbus1}
35 root -8 - 0K 8K mdwait 0:01 0.00% md1
39810 root 64 20 8700K 3132K bpf 0:01 0.00% bandwidthd
8548 root 44 0 7992K 1948K select 0:00 0.00% sshd
40169 root 44 0 6588K 2964K kqread 0:00 0.00% lighttpd
16571 root 64 20 3656K 512K wait 0:00 0.00% sh
40955 root 76 0 32092K 0K wait 0:00 0.00% <php>41487 root 76 0 32092K 0K wait 0:00 0.00% <php>40749 root 70 0 32092K 0K wait 0:00 0.00% <php>41179 root 76 0 32092K 0K wait 0:00 0.00% <php>42026 root 44 0 3316K 996K select 0:00 0.00% apinger
11278 root 44 0 9488K 2644K select 0:00 0.00% {mpd5}</php></php></php></php></php></php></php></php>