#HAOS 10 update with swap

1 messages · Page 1 of 1 (latest)

topaz herald
#
              total        used        free      shared  buff/cache   available
Mem:           1.8G      756.3M      298.1M      124.0K      792.4M        1.0G
Swap:          2.5G      162.3M        2.3G
➜  ~ ssh 127.0.0.1 -p22222
Welcome to Home Assistant OS.

Use `ha` to access the Home Assistant CLI.
# swapoff /mnt/data/swapfile
swapoff: /mnt/data/swapfile: swapoff failed: Invalid argument
# dd if=/dev/zero of="/mnt/data/swapfile" bs=1M count=2048
2048+0 records in
2048+0 records out
2147483648 bytes (2.0GB) copied, 61.277195 seconds, 33.4MB/s
# mkswap /mnt/data/swapfile
Setting up swapspace version 1, size = 2 GiB (2147479552 bytes)
no label, UUID=31439ad5-c346-43e4-abfe-ea00625c61f7
# chmod 600 /mnt/data/swapfile
# swapon /mnt/data/swapfile
#

this is with all addon turned off

#

@gray coral updating to 10.1 with fingers crossed

#
Processing... Done.

Command completed successfully.
#

still slow

#
Mem:           1.8Gi       1.6Gi        40Mi       0.0Ki       155Mi       106Mi
Swap:          4.0Gi       587Mi       3.4Gi
#```
#

after update

#

no addon running

gray coral
#

What is using all the memory then?

#

This should give you the biggest offenders

ps -o pid,user,%mem,command ax | sort -b -k3 -r | head
topaz herald
#
  11549 root     34.4 /opt/emqx/bin/nodetool -B -- -root /opt/emqx -progname /opt/emqx/erts-12.3.2.2/bin/erl -- -home /root -- -boot no_dot_erlang -noshell -run escript start -- -start_epmd false -epmd_module ekka_epmd -proto_dist ekka -setcookie homeassistant -- -extra /opt/emqx/bin/nodetool -name emqx@homeassistant.local ping
  11379 root     28.4 /opt/emqx/bin/nodetool -B -- -root /opt/emqx -progname /opt/emqx/erts-12.3.2.2/bin/erl -- -home /root -- -boot no_dot_erlang -noshell -run escript start -extra /opt/emqx/bin/nodetool hocon -s emqx_conf_schema -c /opt/emqx/etc/emqx.conf multi_get node.data_dir node.name node.cookie node.db_backend cluster.proto_dist node.dist_net_ticktime
  10727 root      2.0 emqx -Bd -spp true -A 4 -IOt 4 -SDio 8 -e 262144 -zdbbl 8192 -Q 1048576 -P 2097152 -- -root /opt/emqx -progname /opt/emqx/bin/emqx -- -home /root -- -noshell -noshell -noinput -boot /opt/emqx/releases/5.0.22/start -boot_var RELEASE_LIB /opt/emqx/lib -boot_var ERTS_LIB_DIR /opt/emqx/lib -mode embedded -config /data/emqx/data/configs/app.2023.04.26.14.38.52.config -stdlib restricted_shell emqx_restricted_shell -shutdown_time 30000 -pa data/patches -mnesia dump_log_write_threshold 5000 -mnesia dump_log_time_threshold 60000 -os_mon start_disksup false -pa /opt/emqx/releases/5.0.22/consolidated -kernel net_ticktime 120 -setcookie homeassistant -name emqx@homeassistant.local -mnesia dir "/data/emqx/data/mnesia/emqx@homeassistant.local" -- -start_epmd false -epmd_module ekka_epmd -proto_dist ekka -- foreground ```
#
   1094 root      0.8 python3 -m supervisor
   3259 root      0.5 python3 -m homeassistant --config /config
    557 root      0.4 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
   3331 root      0.3 /usr/local/bin/python /usr/local/bin/matter-server --storage-path /data --port 5580 --log-level info --fabricid 2 --vendorid 4939
  11270 root      0.2 node /usr/local/bin/ws-log /config/home-assistant.log
   1336 root      0.2 docker container exec -ti hassio_cli /usr/bin/cli.sh
   1742 root      0.2 coredns -conf /etc/corefile```
#

message broken down, due to word limit

gray coral
topaz herald
#

Downgraded and closed EQMX before updated