[Pogoplug V4] rpc.statd killed by oom-killer at boot

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

[Pogoplug V4] rpc.statd killed by oom-killer at boot

Postby pachulo » Sat Jan 19, 2019 10:58 pm

Since the upgrade of packages that I made this week on my PogoplugV4, I'm getting errors like those when restarting it:

$this->bbcode_second_pass_code('', '[ 362.917393] ntpd invoked oom-killer: gfp_mask=0x6200ca(GFP_HIGHUSER_MOVABLE), nodemask=(null), order=0, oom_score_adj=0
[ 362.928329] CPU: 0 PID: 286 Comm: ntpd Not tainted 4.20.3-1-ARCH #1
[ 362.939596] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[ 362.957183] [<c0011ab0>] (unwind_backtrace) from [<c000e810>] (show_stack+0x10/0x14)
[ 362.989150] [<c000e810>] (show_stack) from [<c012ebf4>] (dump_header+0x60/0x248)
[ 363.005542] [<c012ebf4>] (dump_header) from [<c012de70>] (oom_kill_process+0xf0/0x350)
[ 363.035408] [<c012de70>] (oom_kill_process) from [<c012e90c>] (out_of_memory+0x138/0x344)
[ 363.053912] [<c012e90c>] (out_of_memory) from [<c0134028>] (__alloc_pages_nodemask+0xc10/0xef4)
[ 363.080130] [<c0134028>] (__alloc_pages_nodemask) from [<c012adbc>] (filemap_fault+0x41c/0x6ac)
[ 363.120003] [<c012adbc>] (filemap_fault) from [<c0263094>] (ext4_filemap_fault+0x28/0x3c)
[ 363.149875] [<c0263094>] (ext4_filemap_fault) from [<c016096c>] (__do_fault+0x48/0x1b0)
[ 363.165524] [<c016096c>] (__do_fault) from [<c01655e4>] (handle_mm_fault+0x874/0xd80)
[ 363.182315] [<c01655e4>] (handle_mm_fault) from [<c07d41ec>] (do_page_fault+0x108/0x3c8)
[ 363.199345] [<c07d41ec>] (do_page_fault) from [<c0012754>] (do_PrefetchAbort+0x38/0x8c)
[ 363.226467] [<c0012754>] (do_PrefetchAbort) from [<c0009f44>] (ret_from_exception+0x0/0x1c)
[ 363.263280] Exception stack(0xc6bd3fb0 to 0xc6bd3ff8)
[ 363.270402] 3fa0: 39e2d533 0058b120 0058b100 0058b10c
[ 363.291738] 3fc0: be8c077c 0058854c 38bca008 005dbb8d 5c439ee1 be8c07d0 0058c344 005890ec
[ 363.313873] 3fe0: 0058b11c be8c0768 00539540 00539540 80000010 ffffffff
[ 363.331456] Mem-Info:
[ 363.345183] active_anon:22719 inactive_anon:30 isolated_anon:0
active_file:69 inactive_file:71 isolated_file:0
unevictable:0 dirty:0 writeback:0 unstable:0
slab_reclaimable:1769 slab_unreclaimable:2440
mapped:3 shmem:99 pagetables:350 bounce:0
free:332 free_pcp:6 free_cma:0
[ 363.485898] Node 0 active_anon:90876kB inactive_anon:120kB active_file:336kB inactive_file:312kB unevictable:0kB isolated(anon):0kB isolated(file):120kB mapped:56kB dirty:0kB writeback:0kB shmem:396kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no
[ 363.541530] Normal free:1364kB min:1340kB low:1672kB high:2004kB active_anon:90876kB inactive_anon:120kB active_file:320kB inactive_file:392kB unevictable:0kB writepending:0kB present:131072kB managed:118272kB mlocked:0kB kernel_stack:656kB pagetables:1400kB bounce:0kB free_pcp:64kB local_pcp:64kB free_cma:0kB
[ 363.609174] lowmem_reserve[]: 0 0
[ 363.629240] Normal: 12*4kB (E) 5*8kB (ME) 7*16kB (ME) 33*32kB (UM) 1*64kB (M) 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1320kB
[ 363.661253] 305 total pagecache pages
[ 363.669393] 0 pages in swap cache
[ 363.676682] Swap cache stats: add 0, delete 0, find 0/0
[ 363.689341] Free swap = 0kB
[ 363.696145] Total swap = 0kB
[ 363.702295] 32768 pages RAM
[ 363.722478] 0 pages HighMem/MovableOnly
[ 363.726416] 3200 pages reserved
[ 363.731574] Tasks state (memory values in pages):
[ 363.745416] [ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name
[ 363.788715] [ 191] 0 191 19753 186 75776 0 0 systemd-journal
[ 363.822136] [ 201] 0 201 3178 36 12288 0 0 lvmetad
[ 363.851446] [ 209] 0 209 5438 171 20480 0 -1000 systemd-udevd
[ 363.876468] [ 213] 193 213 4979 132 16384 0 0 systemd-network
[ 363.907085] [ 261] 195 261 3934 189 20480 0 0 systemd-resolve
[ 363.943031] [ 265] 65306 265 1916 769 12288 0 0 haveged
[ 363.965008] [ 267] 0 267 1424 78 12288 0 0 rpc.idmapd
[ 364.005364] [ 268] 0 268 2833 125 16384 0 0 systemd-logind
[ 364.038175] [ 270] 81 270 1613 115 12288 0 -900 dbus-daemon
[ 364.068632] [ 272] 84 272 1630 82 12288 0 0 avahi-daemon
[ 364.093057] [ 273] 0 273 11692 118 18432 0 0 gssproxy
[ 364.116871] [ 279] 84 279 1630 68 12288 0 0 avahi-daemon
[ 364.139204] [ 281] 0 281 1838 115 12288 0 -1000 sshd
[ 364.158944] [ 285] 0 285 11659 528 51200 0 0 smbd
[ 364.181160] [ 286] 87 286 2174 107 12288 0 0 ntpd
[ 364.228514] [ 289] 0 289 493 22 6144 0 0 agetty
[ 364.250278] [ 290] 0 290 493 22 8192 0 0 agetty
[ 364.277243] [ 292] 32 292 1632 92 12288 0 0 rpcbind
[ 364.319900] [ 293] 0 293 14410 12359 63488 0 0 rpc.statd
[ 364.354072] [ 296] 0 296 10928 503 49152 0 0 smbd-notifyd
[ 364.378104] [ 297] 0 297 10926 503 49152 0 0 cleanupd
[ 364.402759] [ 298] 0 298 11659 528 49152 0 0 lpqd
[ 364.427975] [ 310] 0 310 2529 180 14336 0 0 sshd
[ 364.458191] [ 314] 0 314 3215 208 16384 0 0 systemd
[ 364.502044] [ 315] 0 315 8903 408 28672 0 0 (sd-pam)
[ 364.527031] [ 320] 0 320 918 100 8192 0 0 bash
[ 364.542666] [ 333] 0 333 2792 110 16384 0 0 systemctl
[ 364.560915] [ 334] 0 334 2757 102 16384 0 0 systemd-tty-ask
[ 364.581903] [ 335] 0 335 7830 5957 36864 0 0 rpc.mountd
[ 364.605187] Out of memory: Kill process 293 (rpc.statd) score 418 or sacrifice child
[ 364.621562] Killed process 293 (rpc.statd) total-vm:57640kB, anon-rss:49436kB, file-rss:0kB, shmem-rss:0kB
[ 364.683752] oom_reaper: reaped process 293 (rpc.statd), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB
[ 365.653547] audit: type=1131 audit(1547935460.296:46): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=rpc-statd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
[ 366.614831] audit: type=1130 audit(1547935461.256:47): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=nfs-mountd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 367.655569] NFSD: starting 45-second grace period (net f000001c)
[ 367.683553] audit: type=1130 audit(1547935462.326:48): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=nfs-server comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'')

And the service nfs-mountd.service fails to start correctly:

$this->bbcode_second_pass_code('', '● nfs-mountd.service - NFS Mount Daemon
Loaded: loaded (/usr/lib/systemd/system/nfs-mountd.service; static; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2019-01-15 15:08:22 CET; 1min 24s ago
Process: 287 ExecStart=/usr/sbin/rpc.mountd (code=exited, status=1/FAILURE)

Jan 15 15:08:10 pogoplug systemd[1]: Starting NFS Mount Daemon...
Jan 15 15:08:20 pogoplug rpc.mountd[287]: mountd: cannot fork: Cannot allocate memory
Jan 15 15:08:22 pogoplug systemd[1]: nfs-mountd.service: Control process exited, code=exited, status=1/FAILURE
Jan 15 15:08:22 pogoplug systemd[1]: nfs-mountd.service: Failed with result 'exit-code'.
Jan 15 15:08:22 pogoplug systemd[1]: Failed to start NFS Mount Daemon.')

But the thing is that if I restart the service with $this->bbcode_second_pass_code('', 'systemctl restart nfs-mountd.service') it starts OK. Does anyone has the same problem?
Thanks!
pachulo
 
Posts: 6
Joined: Tue Jul 31, 2018 9:55 pm

Re: [Pogoplug V4] rpc.statd killed by oom-killer at boot

Postby pachulo » Mon Jan 21, 2019 3:34 pm

OK, I solved it adding a swap file; I didn't need it before, but it seems that now it's not enough with 128MB of RAM.
pachulo
 
Posts: 6
Joined: Tue Jul 31, 2018 9:55 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 8 guests