hi
i have raspberry pi 4 (with 8gb) with Ubuntu Server 64b with root on external USB3 HDD (no sd)
PID USER PRI NI VIRT RES SHR S CPU%-MEM% TIME+ Command
833404 root 20 0 8836 380 0 R 74.5 0.0 79h12:56 /bin/bash /usr/share/prometheus-node-exporter-collectors/smartmon.sh
1802894 root 20 0 22976 1784 0 R 71.8 0.0 12h01:16 /lib/systemd/systemd-udevd
1587158 root 20 0 22976 1784 0 R 64.9 0.0 38h01:20 /lib/systemd/systemd-udevd
23210 root 20 0 22976 1784 0 R 60.1 0.0 86h15:02 /lib/systemd/systemd-udevd
when i try to kill any of thins process via sudo kill -9 $pid nothing happens
can anybody enlightenment me what to do with them?
why are they running away?
the only way I found to kill theme is to restart rpi
The Ubuntu image for RPi uses Snaps containerizations for everything. I am running Ubuntu 21.10 on my RPi that I use as a NAS due to a requirement of my NAS HAT to use a feature of RPiOS. Ubuntu has ported it over.
The reboot will kill it, but as soon as things start launching, it will kick off those Snaps wich will start UDEV. More than likely because you are using an external HDD. udev is a good thing. you need it for hardware eventing.
The question is, why are you trying to kill the processes? Are they causing issues?
The export collector looks to be something custom. Are you getting this image from Ubuntu?
i try to kill the processes because they are hogging whole cpu
after reboot i have 1-2 days of normal operation then some process (not always the same) decide to be unkillable and hogs all cpu
ubuntu image is from rpi imager (oficial imaging software of raspberry)
Have you just tried disabling SMART? (Homer prancing S M R T) Not sure how relevant this will be as it seems everything has to be systemctl disable yada yada these days but itâs a reference point. smartctl(8) - Linux man page
as far i can see the SMART is not supported on this drive (SEAGATE Expansion Portable 4TB HDD)
and i donât know how to disable SMART
sudo smartctl -a -T permissive /dev/sda
smartctl 7.2 2020-12-30 r5155 [aarch64-linux-5.13.0-1013-raspi] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
Read Device Identity failed: scsi error unsupported field in scsi command
=== START OF INFORMATION SECTION ===
Device Model: [No Information Found]
Serial Number: [No Information Found]
Firmware Version: [No Information Found]
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: [No Information Found]
Local Time is: Tue Jan 25 12:23:21 2022 UTC
SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 82-83 don't show if SMART supported.
SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 85-87 don't show if SMART is enabled.
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
Smart is often not available over USB (though the drive inside will have it if connected traditionally). However SMART checks are what are hogging your CPU. Did you read the man page I linked? Kinda odd the rpi build is running SMART given an RPI wonât have attached SATA and SD cards wonât have it.
You originally said âubuntu image is from rpi imager (oficial imaging software of raspberry)â which is a tad strange to me. RPI imager Iâm guessing you mean just the imaging software but that wonât be who makes the real Ubuntu or Raspbian builds. Have considered just running Raspbian rather than Ubuntu?
Disable SMART monitoring and data log collection on drive /dev/hdd .
so
sudo smartctl -s off -T permissive /dev/sda
smartctl 7.2 2020-12-30 r5155 [aarch64-linux-5.13.0-1013-raspi] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
Read Device Identity failed: scsi error unsupported field in scsi command
SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 82-83 don't show if SMART supported.
SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 85-87 don't show if SMART is enabled.
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
and yes i meant âRaspberry Pi Imagerâ which downloads official ubuntu image for rpi
i wanted ubuntu because it has better support for 64bit and zfs
something happen
sudo smartctl -s off /dev/sda -T permissive -T permissive -T permissive -T permissive -T permissive -T permissive -T permissive -T permissive
smartctl 7.2 2020-12-30 r5155 [aarch64-linux-5.13.0-1013-raspi] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
Read Device Identity failed: scsi error unsupported field in scsi command
SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 82-83 don't show if SMART supported.
SMART support is: Ambiguous - ATA IDENTIFY DEVICE words 85-87 don't show if SMART is enabled.
Checking to be sure by trying SMART RETURN STATUS command.
SMART support is: Unknown - Try option -s with argument 'on' to enable it.=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Disable failed: scsi error unsupported field in scsi command
SMART Disabled. Use option -s with argument 'on' to enable it.
I will restart and let you know if it helped or not
Sounds good. I suspect because the normal Ubuntu install is newish for piâs itâs not 100% yet and this might be one of those issues. Smart for something that by default runs of an mSDc is el stoopeedo. I also wonder if this is an odd little quirk where since the type of drives you have wonât support SMART if the query process hangs and loops because it expects the drives/BIOS to give it a YES/NO answer to supported or not and the drives/BIOS are replying âSay what now?â
Yeah the powerpc image had this problem so bad they dropped it. There was a thread leak they didnât bother fixing and lazily said âits the platform buy a new computerâ instead of actually doing anything about it.
I would just use a lighter distro. To see high cpu use on a risc system is kinda normal tho, unless you are getting lag. At least on ppc. Its more showing efficiency than anything on there.
Look at void linux if you cannot resolve this. You might have a better time as it doesnât use sysD and it has a more active dev group.
Heâs not on RISC or PPC but a lighter distro is a better option, go back to actual Raspbian.
@vonProteus While at least itâs not SMART this time this simply looks like basic maintenance stuff for a normal system thatâs running and the tools chosen in base Ubuntu image are just way too âfeature richâ for a Pi. You really should go back to Raspbian and call it a day. In the end itâs better vetted for the platform and Debian is Debian. Even Armbian would be a better choice over Ubuntu really.
This reminds me of an issue I had for years with LUbuntu where my CPU would be bagged. System was completely unusable and my CPU/System monitoring tools would not agree on this. So taskmanager would say CPU was at 0.2% and never show the offending process but the tool that would show the cpu over 100% would also either never show a process (or several) amounting to the massive CPU load or the system would be too bagged to even launch a tool to investigate.
Zfs IMO has too much overhead for a small CPU like that. Plus you canât really attach any real drives in a way that will be meaningful for Zfs. However like with anything youâre free to try.
I hope I help but really I just knew what a few processes were and that normal Ubuntu for a low power CPU is still nuts. Which isnât a dig at you or anyone else running it but more kinda at how Canonical has become bad at most things they were once really good at. Even the full Desktop Ubuntu flavors are riddled with issues these days. Hell the installer canât even finish itâs completed install shutdown/reboot haha.
I suppose another caveat is if youâre that nut Jeff Geerling. Hey guys today Iâve got some obscure pre-production Raspberry Pi NAS hat (that will never make it to production) that costs $5000 USD and Iâve attached $20K worth of Sata SSDâs. Letâs see how it does with a Zfs pool! - And on my next video Iâll show you how I used home automation to make the propeller on my beanie hat spin whenever someone in my proximity says my first name. As a bonus Red Shirt Jeff will also make it play a sample of a slide whistle when anyone says âPoop.â