Over the two years I have been using Domoticz there been a thing or two I learned about the application and the RaspberryPi (RPI). Firstly, there are limits as to what you can do with the combination. RPI has certainly an excellent price/computing_power ratio but like anything else there are limits.
Our LAN has two RPI:
Raspberry Pi 3 Model B Plus Rev 1.3, Domoticz Server
Linux version 5.15.32-v8+ (dom@buildbot) (aarch64-linux-gnu-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022
Domoticz
Version:
2022.1
Build Hash: c9526851b
Compile Date: 2022-01-31 09:34:32
dzVents Version: 3.1.8
Python Version: 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]
Raspberry Pi 4 Model B Rev 1.4 , “Sandbox”
Linux version 5.15.56-v8+ (dom@buildbot) (aarch64-linux-gnu-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1575 SMP PREEMPT Fri Jul 22 20:31:26 BST 2022
I second Waltervi’s point of view that DzVents by itself should not increase CPU Load under normal usage. RPI 3b+ only runs Domoticz server applications. Both Chromium and Firefox Web Browser are resource “hogs” and I strongly advise not to use them in same machine as Domoticz.
RPI 4B is my sandbox where I use Chromium as client to Domoticz; Netflix, Spotify, updates, etc. Your telephone or Pad browser can also do the trick to talk to your Domoticz.
My Domoticz has 30 used devices and six DzVents scripts of which three are device triggered and three are time triggered. The Alarm script is triggered by devices and verifies the state of the security variable to trigger the alarm , thus, it’s executed quite often even when someone is home.
Attached Bash script is run to get a system snapshot. I also attach the output.
Domoticz is using
12.8 % of RAM and ~
1.0 % load.
If you run this shell script what kind of load does your RPI have?
pstruc.sh - Do not forget to run sudo chmod 777 to make it executable
Code: Select all
#!/bin/bash
#This script will sort process structure with descending order using MEM usage as key (fourth column)
#If no parameter is given then to standard output otherwise to file name.
if [ "$#" != "1" ]; then
# top | mawk '{if (NR < 6) print $0} END{printf("\r")}'
top -b -n 1 | head -n 5
ps aux --sort -%mem
# ps -auxf | sort -r -k 4
else
date > "$1"
top -b -n 1 | head -n 5 >> "$1"
ps aux --sort -%mem >> "$1"
# ps -auxf | sort -r -k 4 >> "$1"
fi
exit
RPI Process Structure
- Spoiler: show
- Wed 17 Aug 17:17:51 CEST 2022
top - 17:17:51 up 25 days, 23:05, 3 users, load average: 0.01, 0.04, 0.00
Tasks: 180 total, 1 running, 179 sleeping, 0 stopped, 0 zombie
%Cpu(s): 4.3 us, 5.3 sy, 0.0 ni, 90.4 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 885.8 total, 265.1 free, 481.6 used, 139.2 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 326.0 avail Mem
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 564 1.0 12.8 2241380 116460 ? Ssl Jul22 381:19 /home/pi/domoticz/domoticz -daemon -www 8080 -sslwww 443
root 1479 0.0 7.3 363884 66636 ? Ssl Jul22 7:30 /usr/libexec/packagekitd
pi 1078 0.0 7.1 1548916 65200 ? Sl Jul22 2:11 pcmanfm --desktop --profile LXDE-pi
root 539 0.1 6.8 1211560 62440 tty7 Ssl+ Jul22 43:19 /usr/lib/xorg/Xorg :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
pi 1077 0.2 5.6 2199104 51516 ? Sl Jul22 106:11 lxpanel --profile LXDE-pi
root 528 0.0 2.9 264812 26380 ? Sl Jul22 13:36 /usr/bin/vncserver-x11-core -service
pi 1098 0.0 2.8 58736 26196 ? S Jul22 0:01 /usr/bin/python3 /usr/share/system-config-printer/applet.py
root 136 0.0 2.7 81948 25372 ? Ss Jul22 0:43 /lib/systemd/systemd-journald
pi 545195 0.0 2.3 380836 21656 ? Sl Jul31 0:01 lxterminal
pi 1073 0.0 2.3 183768 21344 ? Sl Jul22 0:00 lxpolkit
pi 1094 0.0 1.8 329112 17124 ? Sl Jul22 10:15 /usr/lib/aarch64-linux-gnu/libexec/kdeconnectd
root 574 0.0 1.5 18812 13684 ? S Jul22 0:41 /usr/bin/vncagent service 0
pi 702 0.0 1.2 534532 10992 ? S<sl Jul22 0:00 /usr/bin/pulseaudio --daemonize=no --log-target=journal
pi 1210 0.0 1.1 33140 10684 ? S Jul22 0:06 /usr/bin/vncserverui -statusicon 0
pi 1122 0.0 1.1 33860 10492 ? S Jul22 0:19 /usr/bin/vncserverui service 0
root 1495265 0.0 1.1 174108 9992 ? Ssl 00:00 0:00 /usr/sbin/cups-browsed
pi 1071 0.0 1.0 66464 9624 ? S Jul22 0:03 openbox --config-file /home/pi/.config/openbox/lxde-pi-rc.xml
colord 573883 0.0 0.9 240948 8892 ? Ssl Aug01 0:00 /usr/libexec/colord
root 1538437 0.0 0.8 16076 7916 ? Ss 17:08 0:00 sshd: pi [priv]
root 1 0.0 0.8 167948 7860 ? Ss Jul22 0:57 /sbin/init splash
pi 1337 0.0 0.8 495176 7796 ? Ssl Jul22 0:00 /usr/libexec/gvfs-udisks2-volume-monitor
root 399 0.0 0.8 393472 7580 ? Ssl Jul22 0:06 /usr/libexec/udisks2/udisksd
root 1495264 0.0 0.8 26892 7540 ? Ss 00:00 0:00 /usr/sbin/cupsd -l
root 381 0.0 0.7 235892 7252 ? Ssl Jul22 0:01 /usr/libexec/polkitd --no-debug
pi 710 0.0 0.7 248196 7180 ? Ssl Jul22 0:01 /usr/bin/lxsession -s LXDE-pi -e LXDE -w openbox-lxde-pi
systemd+ 1536652 0.0 0.6 88104 5992 ? Ssl 16:24 0:00 /lib/systemd/systemd-timesyncd
root 525 0.0 0.6 244268 5976 ? Ssl Jul22 0:00 /usr/sbin/ModemManager
pi 673 0.0 0.6 16308 5708 ? Ss Jul22 0:00 /lib/systemd/systemd --user
pi 1369 0.0 0.6 317680 5708 ? Sl Jul22 0:00 /usr/libexec/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
pi 1055 0.0 0.6 235176 5512 ? Ssl Jul22 0:00 /usr/libexec/gvfsd
root 170 0.0 0.5 22044 5400 ? Ss Jul22 0:11 /lib/systemd/systemd-udevd
root 668 0.0 0.5 163672 5392 ? Sl Jul22 0:00 lightdm --session-child 14 17
pi 1355 0.0 0.5 233052 5068 ? Ssl Jul22 0:00 /usr/libexec/gvfs-gphoto2-volume-monitor
root 395 0.0 0.5 14612 5040 ? Ss Jul22 0:12 /lib/systemd/systemd-logind
root 521 0.0 0.5 232740 5028 ? Ssl Jul22 0:00 /usr/sbin/lightdm
pi 1349 0.0 0.5 308296 5020 ? Ssl Jul22 2:56 /usr/libexec/gvfs-afc-volume-monitor
root 1020 0.0 0.5 23620 4856 ? Ss Jul22 0:00 /usr/libexec/bluetooth/bluetoothd
pi 1364 0.0 0.5 231212 4804 ? Ssl Jul22 0:00 /usr/libexec/gvfs-goa-volume-monitor
pi 1360 0.0 0.5 231052 4784 ? Ssl Jul22 0:00 /usr/libexec/gvfs-mtp-volume-monitor
pi 535798 0.0 0.5 156464 4748 ? Sl Jul31 0:00 /usr/libexec/dconf-service
pi 1538443 0.0 0.5 16076 4656 ? S 17:08 0:00 sshd: pi@pts/1
pi 1343 0.0 0.5 157016 4624 ? Sl Jul22 0:00 /usr/lib/menu-cache/menu-cached /run/user/1000/menu-cached-:0
pi 1413 0.0 0.5 157752 4620 ? Ssl Jul22 0:00 /usr/libexec/gvfsd-metadata
pi 1538444 0.0 0.5 5628 4576 pts/1 Ss 17:08 0:00 -bash
avahi 368 0.1 0.4 8368 4056 ? Ss Jul22 71:48 avahi-daemon: running [raspberrypi.local]
pi 674 0.0 0.4 168816 3996 ? S Jul22 0:00 (sd-pam)
root 544 0.0 0.4 13656 3924 ? Ss Jul22 0:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
pi 1062 0.0 0.4 380564 3752 ? Sl Jul22 0:00 /usr/libexec/gvfsd-fuse /run/user/1000/gvfs -f
pi 545201 0.0 0.4 5504 3688 pts/0 Ss+ Jul31 0:00 bash
pi 1089 0.0 0.4 231564 3680 ? Sl Jul22 0:00 /usr/libexec/geoclue-2.0/demos/agent
root 388 0.0 0.4 220888 3656 ? Ssl Jul22 0:10 /usr/sbin/rsyslogd -n -iNONE
message+ 370 0.0 0.3 8672 3512 ? Ss Jul22 0:14 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
pi 701 0.0 0.3 91808 3264 ? S<sl Jul22 0:00 /usr/bin/pipewire
pi 740 0.0 0.3 85312 3264 ? S<l Jul22 0:45 /usr/bin/pipewire-media-session
root 537 0.0 0.3 14088 3200 ? Ss Jul22 6:20 wpa_supplicant -B -c/etc/wpa_supplicant/wpa_supplicant.conf -iwlan0
pi 1538833 0.0 0.3 7208 3036 pts/1 R+ 17:17 0:00 ps aux --sort -%mem
pi 1538826 0.0 0.3 4212 3008 pts/1 S+ 17:17 0:00 /bin/bash /home/pi/Scripts/pstruc.sh psbline5
pi 716 0.0 0.3 5504 2916 tty1 S+ Jul22 0:00 -bash
pi 726 0.0 0.3 8040 2848 ? Ss Jul22 0:01 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
root 400 0.0 0.3 13580 2844 ? Ss Jul22 0:21 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant
root 541 0.0 0.2 9160 2460 tty1 Ss Jul22 0:00 /bin/login -f
rtkit 707 0.0 0.2 153464 2012 ? SNsl Jul22 1:02 /usr/libexec/rtkit-daemon
root 464 0.0 0.2 3188 1972 ? Ss Jul22 7:32 /usr/sbin/dhcpcd -b -q
root 369 0.0 0.2 4112 1944 ? Ss Jul22 0:07 /usr/sbin/cron -f
nobody 396 0.0 0.2 5488 1860 ? Ss Jul22 0:40 /usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket --user nobody --deviceglob /dev/input/event*
root 493 0.0 0.1 92296 1468 ? SLsl Jul22 0:25 /usr/sbin/rngd -r /dev/hwrng
root 518 0.0 0.1 4728 1380 ? Ss Jul22 0:00 /usr/bin/vncserver-x11-serviced -fg
pi 846 0.0 0.1 5452 1348 ? Ss Jul22 0:20 /usr/bin/ssh-agent x-session-manager
avahi 382 0.0 0.1 6892 1088 ? S Jul22 0:00 avahi-daemon: chroot helper
pi 1104 0.0 0.0 5228 672 ? S Jul22 0:00 xcompmgr -aR
pi 1090 0.0 0.0 5452 460 ? Ss Jul22 0:00 /usr/bin/ssh-agent -s
root 950 0.0 0.0 2132 132 ? S Jul22 0:00 /usr/bin/hciattach /dev/serial1 bcm43xx 3000000 flow - b8:27:eb:d4:88:98
root 2 0.0 0.0 0 0 ? S Jul22 0:10 [kthreadd]
root 3 0.0 0.0 0 0 ? I< Jul22 0:00 [rcu_gp]
root 4 0.0 0.0 0 0 ? I< Jul22 0:00 [rcu_par_gp]
root 8 0.0 0.0 0 0 ? I< Jul22 0:00 [mm_percpu_wq]
root 9 0.0 0.0 0 0 ? S Jul22 0:00 [rcu_tasks_kthre]
root 10 0.0 0.0 0 0 ? S Jul22 0:00 [rcu_tasks_rude_]
root 11 0.0 0.0 0 0 ? S Jul22 0:00 [rcu_tasks_trace]
root 12 0.0 0.0 0 0 ? S Jul22 0:48 [ksoftirqd/0]
root 13 0.0 0.0 0 0 ? I Jul22 9:20 [rcu_preempt]
root 14 0.0 0.0 0 0 ? S Jul22 0:00 [migration/0]
root 15 0.0 0.0 0 0 ? S Jul22 0:00 [cpuhp/0]
root 16 0.0 0.0 0 0 ? S Jul22 0:00 [cpuhp/1]
root 17 0.0 0.0 0 0 ? S Jul22 0:00 [migration/1]
root 18 0.0 0.0 0 0 ? S Jul22 0:32 [ksoftirqd/1]
root 21 0.0 0.0 0 0 ? S Jul22 0:00 [cpuhp/2]
root 22 0.0 0.0 0 0 ? S Jul22 0:00 [migration/2]
root 23 0.0 0.0 0 0 ? S Jul22 2:01 [ksoftirqd/2]
root 26 0.0 0.0 0 0 ? S Jul22 0:00 [cpuhp/3]
root 27 0.0 0.0 0 0 ? S Jul22 0:00 [migration/3]
root 28 0.0 0.0 0 0 ? S Jul22 0:23 [ksoftirqd/3]
root 31 0.0 0.0 0 0 ? S Jul22 0:00 [kdevtmpfs]
root 32 0.0 0.0 0 0 ? I< Jul22 0:00 [netns]
root 33 0.0 0.0 0 0 ? I< Jul22 0:00 [inet_frag_wq]
root 38 0.0 0.0 0 0 ? S Jul22 0:00 [kauditd]
root 40 0.0 0.0 0 0 ? S Jul22 0:04 [khungtaskd]
root 41 0.0 0.0 0 0 ? S Jul22 0:00 [oom_reaper]
root 42 0.0 0.0 0 0 ? I< Jul22 0:00 [writeback]
root 43 0.0 0.0 0 0 ? S Jul22 4:15 [kcompactd0]
root 63 0.0 0.0 0 0 ? I< Jul22 0:00 [kblockd]
root 64 0.0 0.0 0 0 ? I< Jul22 0:00 [blkcg_punt_bio]
root 65 0.0 0.0 0 0 ? S Jul22 0:00 [watchdogd]
root 68 0.0 0.0 0 0 ? I< Jul22 0:00 [rpciod]
root 70 0.0 0.0 0 0 ? I< Jul22 0:00 [xprtiod]
root 72 0.0 0.0 0 0 ? S Jul22 0:06 [kswapd0]
root 73 0.0 0.0 0 0 ? I< Jul22 0:00 [nfsiod]
root 74 0.0 0.0 0 0 ? I< Jul22 0:00 [kthrotld]
root 75 0.0 0.0 0 0 ? I< Jul22 0:00 [iscsi_eh]
root 76 0.0 0.0 0 0 ? I< Jul22 0:00 [iscsi_conn_clea]
root 77 0.0 0.0 0 0 ? I< Jul22 0:00 [nvme-wq]
root 78 0.0 0.0 0 0 ? I< Jul22 0:00 [nvme-reset-wq]
root 79 0.0 0.0 0 0 ? I< Jul22 0:00 [nvme-delete-wq]
root 80 0.0 0.0 0 0 ? I< Jul22 0:00 [dwc_otg]
root 81 0.0 0.0 0 0 ? I< Jul22 0:00 [DWC Notificatio]
root 82 0.0 0.0 0 0 ? I< Jul22 0:00 [uas]
root 83 0.0 0.0 0 0 ? S< Jul22 0:00 [vchiq-slot/0]
root 84 0.0 0.0 0 0 ? S< Jul22 0:00 [vchiq-recy/0]
root 85 0.0 0.0 0 0 ? S< Jul22 0:00 [vchiq-sync/0]
root 86 0.0 0.0 0 0 ? I< Jul22 0:00 [zswap-shrink]
root 88 0.0 0.0 0 0 ? I< Jul22 0:00 [mmc_complete]
root 92 0.0 0.0 0 0 ? S Jul22 0:39 [jbd2/mmcblk0p2-]
root 93 0.0 0.0 0 0 ? I< Jul22 0:00 [ext4-rsv-conver]
root 96 0.0 0.0 0 0 ? I< Jul22 0:00 [mld]
root 97 0.0 0.0 0 0 ? I< Jul22 0:00 [ipv6_addrconf]
root 116 0.0 0.0 0 0 ? S Jul22 0:00 [scsi_eh_0]
root 117 0.0 0.0 0 0 ? I< Jul22 0:00 [scsi_tmf_0]
root 118 0.0 0.0 0 0 ? S Jul22 2:47 [usb-storage]
root 120 0.0 0.0 0 0 ? S Jul22 0:00 [irq/184-usb-001]
root 191 0.0 0.0 0 0 ? S Jul22 0:00 [vchiq-keep/0]
root 193 0.0 0.0 0 0 ? S< Jul22 0:00 [SMIO]
root 200 0.0 0.0 0 0 ? I< Jul22 0:00 [mmal-vchiq]
root 201 0.0 0.0 0 0 ? I< Jul22 0:00 [mmal-vchiq]
root 204 0.0 0.0 0 0 ? I< Jul22 0:00 [mmal-vchiq]
root 206 0.0 0.0 0 0 ? I< Jul22 0:00 [mmal-vchiq]
root 208 0.0 0.0 0 0 ? I< Jul22 0:00 [mmal-vchiq]
root 210 0.0 0.0 0 0 ? I< Jul22 0:00 [mmal-vchiq]
root 211 0.0 0.0 0 0 ? I< Jul22 0:00 [mmal-vchiq]
root 235 0.0 0.0 0 0 ? I< Jul22 0:00 [cfg80211]
root 242 0.0 0.0 0 0 ? I< Jul22 0:00 [brcmf_wq/mmc1:0]
root 244 0.0 0.0 0 0 ? S Jul22 4:33 [brcmf_wdog/mmc1]
root 354 0.0 0.0 0 0 ? S Jul22 0:00 [cec-vc4]
root 355 0.0 0.0 0 0 ? S Jul22 0:00 [irq/82-vc4 hdmi]
root 359 0.0 0.0 0 0 ? S Jul22 0:00 [card0-crtc0]
root 360 0.0 0.0 0 0 ? S Jul22 0:00 [card0-crtc1]
root 361 0.0 0.0 0 0 ? S Jul22 0:00 [card0-crtc2]
root 362 0.0 0.0 0 0 ? S Jul22 0:00 [card0-crtc3]
root 1059 0.0 0.0 0 0 ? S< Jul22 0:00 [krfcommd]
root 1401 0.0 0.0 0 0 ? S Jul22 0:00 [jbd2/sda2-8]
root 1402 0.0 0.0 0 0 ? I< Jul22 0:00 [ext4-rsv-conver]
root 1301517 0.0 0.0 0 0 ? I< Aug13 0:13 [kworker/1:1H-mmc_complete]
root 1391723 0.0 0.0 0 0 ? I< Aug15 0:07 [kworker/0:0H-mmc_complete]
root 1452600 0.0 0.0 0 0 ? I< Aug16 0:04 [kworker/2:2H-mmc_complete]
root 1485198 0.0 0.0 0 0 ? I< Aug16 0:00 [kworker/u9:0]
root 1486549 0.0 0.0 0 0 ? I< Aug16 0:41 [kworker/u9:2-brcmf_wq/mmc1
1]
root 1537402 0.0 0.0 0 0 ? I< 16:42 0:00 [kworker/3:2H-kblockd]
root 1537453 0.0 0.0 0 0 ? I 16:43 0:00 [kworker/2:1-events]
root 1537589 0.0 0.0 0 0 ? I 16:47 0:00 [kworker/1:0-events]
root 1537796 0.0 0.0 0 0 ? I 16:52 0:00 [kworker/u8:0-events_unbound]
root 1537988 0.0 0.0 0 0 ? I 16:57 0:00 [kworker/0:1-events]
root 1538069 0.0 0.0 0 0 ? I< 16:59 0:00 [kworker/3:0H]
root 1538256 0.0 0.0 0 0 ? I< 17:04 0:00 [kworker/1:2H]
root 1538285 0.0 0.0 0 0 ? I< 17:05 0:00 [kworker/0:2H]
root 1538335 0.0 0.0 0 0 ? I 17:06 0:00 [kworker/u8:1-events_unbound]
root 1538336 0.0 0.0 0 0 ? I 17:06 0:00 [kworker/3:3-mm_percpu_wq]
root 1538414 0.0 0.0 0 0 ? I 17:08 0:00 [kworker/0:0-events]
root 1538453 0.0 0.0 0 0 ? I< 17:08 0:00 [kworker/2:0H]
root 1538549 0.0 0.0 0 0 ? I 17:11 0:00 [kworker/3:1-events]
root 1538572 0.0 0.0 0 0 ? I 17:11 0:00 [kworker/1:1-events]
root 1538583 0.0 0.0 0 0 ? I 17:12 0:00 [kworker/2:3-events]
root 1538634 0.0 0.0 0 0 ? I 17:13 0:00 [kworker/u8:2-events_unbound]
root 1538635 0.0 0.0 0 0 ? I< 17:13 0:00 [kworker/1:0H]
root 1538637 0.0 0.0 0 0 ? I 17:13 0:00 [kworker/0:2-events]
root 1538692 0.0 0.0 0 0 ? I< 17:15 0:00 [kworker/0:1H]
root 1538742 0.0 0.0 0 0 ? I 17:16 0:00 [kworker/3:0-events]
root 1538779 0.0 0.0 0 0 ? I 17:17 0:00 [kworker/1:2-events]
root 1538790 0.0 0.0 0 0 ? I< 17:17 0:00 [kworker/2:1H]
root 1538803 0.0 0.0 0 0 ? I 17:17 0:00 [kworker/2:0-events_freezable]
root 1538832 0.0 0.0 0 0 ? I< 17:17 0:00 [kworker/3:1H]