DuetWebServer killed mid-print, SBC OOM



  • Last night I had several print runs just stop completely mid-print. When I reproduced while I was watching, I found this in the syslog of my SBC.

    The Pi3B+ that I pulled out of the drawer to run my Duet3 on is only a 1GB ram model. Given that this is all that this Pi is doing, I thought that might be sufficient? Is there a guideline on what spec SBC is needed to run DSF?

    May 26 00:05:52 railcore kernel: [ 6641.467716] Normal: 608*4kB (UMEH) 239*8kB (UEH) 146*16kB (UMEH) 89*32kB (UEH) 104*64kB (UMEH) 12*128kB (UM) 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 17720kB
    May 26 00:05:52 railcore kernel: [ 6641.467743] 945 total pagecache pages
    May 26 00:05:52 railcore kernel: [ 6641.467747] 31 pages in swap cache
    May 26 00:05:52 railcore kernel: [ 6641.467751] Swap cache stats: add 32620, delete 32589, find 4923/5727
    May 26 00:05:52 railcore kernel: [ 6641.467754] Free swap  = 0kB
    May 26 00:05:52 railcore kernel: [ 6641.467757] Total swap = 102396kB
    May 26 00:05:52 railcore kernel: [ 6641.467759] 242688 pages RAM
    May 26 00:05:52 railcore kernel: [ 6641.467762] 0 pages HighMem/MovableOnly
    May 26 00:05:52 railcore kernel: [ 6641.467765] 5613 pages reserved
    May 26 00:05:52 railcore kernel: [ 6641.467767] 2048 pages cma reserved
    May 26 00:05:52 railcore kernel: [ 6641.467770] Tasks state (memory values in pages):
    May 26 00:05:52 railcore kernel: [ 6641.467773] [  pid  ]   uid  tgid total_vm      rss pgtables_bytes swapents oom_score_adj name
    May 26 00:05:52 railcore kernel: [ 6641.467795] [    104]     0   104     8843        9    75776      209             0 systemd-journal
    May 26 00:05:52 railcore kernel: [ 6641.467801] [    140]     0   140     4514       39    18432      164         -1000 systemd-udevd
    May 26 00:05:52 railcore kernel: [ 6641.467810] [    274]   100   274     5603        8    26624      155             0 systemd-timesyn
    May 26 00:05:52 railcore kernel: [ 6641.467816] [    310]   104   310     1640        0    14336      101          -900 dbus-daemon
    May 26 00:05:52 railcore kernel: [ 6641.467822] [    317]     0   317      923        6    12288       44             0 alsactl
    May 26 00:05:52 railcore kernel: [ 6641.467828] [    318]     0   318     2685       18    18432       83             0 wpa_supplicant
    May 26 00:05:52 railcore kernel: [ 6641.467834] [    321]     0   321     3260        8    20480      152             0 systemd-logind
    May 26 00:05:52 railcore kernel: [ 6641.467841] [    323]   108   323     1573      142    14336       48             0 avahi-daemon
    May 26 00:05:52 railcore kernel: [ 6641.467847] [    326]     0   326     1987       11    16384       34             0 cron
    May 26 00:05:52 railcore kernel: [ 6641.467854] [    327]     0   327     6378        0    20480      208             0 rsyslogd
    May 26 00:05:52 railcore kernel: [ 6641.467860] [    334] 65534   334     1080        9    12288       35             0 thd
    May 26 00:05:52 railcore kernel: [ 6641.467866] [    353]     0   353     6914        0    18432       27             0 rngd
    May 26 00:05:52 railcore kernel: [ 6641.467873] [    375]   108   375     1443        3    12288       60             0 avahi-daemon
    May 26 00:05:52 railcore kernel: [ 6641.467878] [    416]     0   416     2749      116    20480       19             0 wpa_supplicant
    May 26 00:05:52 railcore kernel: [ 6641.467884] [    506]     0   506      535        0    10240       32             0 hciattach
    May 26 00:05:52 railcore kernel: [ 6641.467891] [    508]     0   508     2384        0    18432       81             0 bluetoothd
    May 26 00:05:52 railcore kernel: [ 6641.467897] [    579]     0   579      742       40    12288       63             0 dhcpcd
    May 26 00:05:52 railcore kernel: [ 6641.467903] [    581]     0   581     2374       22    18432       97             0 dwc-shim
    May 26 00:05:52 railcore kernel: [ 6641.467909] [    583]     0   583   311832   135501   882688    11991             0 DuetWebServer
    May 26 00:05:52 railcore kernel: [ 6641.467915] [    586]     0   586     1077        0    14336       26             0 agetty
    May 26 00:05:52 railcore kernel: [ 6641.467922] [    595]     0   595     2681        4    18432      134         -1000 sshd
    May 26 00:05:52 railcore kernel: [ 6641.467928] [    623]     0   623     3059        3    18432      196             0 sshd
    May 26 00:05:52 railcore kernel: [ 6641.467934] [    629]  1000   629     3650       11    20480      223             0 systemd
    May 26 00:05:52 railcore kernel: [ 6641.467940] [    632]  1000   632     8565        9    28672      413             0 (sd-pam)
    May 26 00:05:52 railcore kernel: [ 6641.467947] [    647]  1000   647     3059       35    18432      178             0 sshd
    May 26 00:05:52 railcore kernel: [ 6641.467953] [    650]  1000   650     3448        2    22528      359             0 zsh
    May 26 00:05:52 railcore kernel: [ 6641.467960] [   1571]     0  1571     2487        0    20480       84             0 sudo
    May 26 00:05:52 railcore kernel: [ 6641.467967] [   1576]     0  1576   110640    48992   327680     3517             0 DuetControlServ
    


  • I think that 311832 is in pages, so at 4k pages, that's 1.2GB of total VM usage? Well over the actual ram of the Pi and into swap. Is DWC expected to use so much memory?


Log in to reply