If this is a noddy question I apologise in advance.
I have a Pi 3B+, I have installed a USB Hard Disk so that I don’t wear out the SD card. I have installed a powered USB hub to ensure the hard disk gets enough juice, as I hear the USB ports are a bit marginal.
I am also driving the WiFi, and a SonOff USB Generic Zigbee 3 gateway. That’s it. Nothing else.
The system runs fine, I’m running containerised Docker HA, with containerised MQTT and Z2M. All seems ok… However, it pauses… it runs fi…ne… then… it pau…ses. I can be editing the configuration.yaml in vi and it will pause every 5th key press.
I have some circumstantial evidence it might be related to Z2M, but nothing I would say in concrete. If I run “top”, see below. I note swap is quite high, but we still have free space and I’d not want it to live on HDD swap. Does this sound like the “nature of the beast” or do I have a problem?
top - 21:43:47 up 5 days, 23:01, 3 users, load average: 1.39, 1.47, 1.36
Tasks: 165 total, 1 running, 164 sleeping, 0 stopped, 0 zombie
%Cpu(s): 7.4 us, 7.7 sy, 0.0 ni, 84.1 id, 0.8 wa, 0.0 hi, 0.1 si, 0.0 st
MiB Mem : 923.2 total, 32.7 free, 294.0 used, 596.6 buff/cache
MiB Swap: 100.0 total, 8.6 free, 91.4 used. 521.1 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3878 root 20 0 308152 202568 28716 S 9.9 21.4 1108:12 python3
456 root 20 0 68452 5684 4728 S 4.9 0.6 383:54.92 NetworkManager
113 root 20 0 35508 5384 4964 S 3.3 0.6 299:35.49 systemd-journal
518 root 20 0 3036 1808 1496 D 3.3 0.2 242:12.99 dhcpcd
10066 root 20 0 0 0 0 I 2.0 0.0 0:07.27 kworker/1:1-events
444 root 20 0 25504 2972 2060 S 1.6 0.3 129:41.67 rsyslogd
23819 root 20 0 0 0 0 I 1.6 0.0 0:04.76 kworker/3:1-events
16960 root 20 0 0 0 0 I 1.3 0.0 0:01.93 kworker/0:0-events
448 message+ 20 0 6972 2688 2048 S 1.0 0.3 81:38.51 dbus-daemon
19404 pi 20 0 10420 3044 2508 R 0.7 0.3 0:01.14 top
12 root 20 0 0 0 0 I 0.3 0.0 21:19.58 rcu_sched
92 root 20 0 0 0 0 S 0.3 0.0 1:11.73 jbd2/sda1-8
8548 root 20 0 0 0 0 I 0.3 0.0 0:00.98 kworker/u8:1-brcmf_wq/mmc1:0001:1
1 root 20 0 33848 5128 3876 S 0.0 0.5 0:20.15 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:01.21 kthreadd
3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_gp
4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_par_gp
8 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mm_percpu_wq
9 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_tasks_rude_
10 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_tasks_trace
11 root 20 0 0 0 0 S 0.0 0.0 1:15.82 ksoftirqd/0
13 root rt 0 0 0 0 S 0.0 0.0 0:00.58 migration/0
14 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/0
15 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/1
16 root rt 0 0 0 0 S 0.0 0.0 0:00.37 migration/1
17 root 20 0 0 0 0 S 0.0 0.0 1:25.51 ksoftirqd/1
20 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/2
21 root rt 0 0 0 0 S 0.0 0.0 0:00.37 migration/2
22 root 20 0 0 0 0 S 0.0 0.0 1:09.42 ksoftirqd/2
25 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/3
26 root rt 0 0 0 0 S 0.0 0.0 0:00.38 migration/3
27 root 20 0 0 0 0 S 0.0 0.0 1:05.25 ksoftirqd/3
30 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs
31 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 netns
34 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kauditd
36 root 20 0 0 0 0 S 0.0 0.0 0:01.08 khungtaskd
37 root 20 0 0 0 0 S 0.0 0.0 0:00.00 oom_reaper
38 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 writeback
39 root 20 0 0 0 0 S 0.0 0.0 1:37.72 kcompactd0
57 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kblockd
58 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 blkcg_punt_bio
59 root -51 0 0 0 0 S 0.0 0.0 0:00.00 watchdogd
61 root 0 -20 0 0 0 I 0.0 0.0 0:18.45 kworker/2:1H-kbloc