Systemd-udevd spitting out some errors

I cannot seem to find out how to circumvent this error in journal.
Any help is appreciated

journalctl -p 3 -xb
okt. 27 22:42:51 spectre systemd-udevd[299]: nvme0: /etc/udev/rules.d/60-ioschedulers.rules:2 Failed to write ATTR{/sys/devices/pci0000:00/0000:00:1d.0/0000:3d:00.0/nvme/nvme0/queue/scheduler}, ignoring: No such file or directory
okt. 27 22:42:51 spectre systemd-udevd[297]: nvme0n1p2: /etc/udev/rules.d/60-ioschedulers.rules:2 Failed to write ATTR{/sys/devices/pci0000:00/0000:00:1d.0/0000:3d:00.0/nvme/nvme0/nvme0n1/nvme0n1p2/queue/scheduler}, ignoring: No such file or directory
okt. 27 22:42:51 spectre systemd-udevd[295]: nvme0n1p1: /etc/udev/rules.d/60-ioschedulers.rules:2 Failed to write ATTR{/sys/devices/pci0000:00/0000:00:1d.0/0000:3d:00.0/nvme/nvme0/nvme0n1/nvme0n1p1/queue/scheduler}, ignoring: No such file or directory
okt. 27 22:42:52 spectre systemd-udevd[317]: nvme0n1p1: /etc/udev/rules.d/60-ioschedulers.rules:2 Failed to write ATTR{/sys/devices/pci0000:00/0000:00:1d.0/0000:3d:00.0/nvme/nvme0/nvme0n1/nvme0n1p1/queue/scheduler}, ignoring: No such file or directory
okt. 27 22:42:52 spectre systemd-udevd[312]: could not read from '/sys/module/acpi_cpufreq/initstate': No such device
❯ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
zram0       254:0    0 496,4M  0 disk [SWAP]
zram1       254:1    0 496,4M  0 disk [SWAP]
zram2       254:2    0 496,4M  0 disk [SWAP]
zram3       254:3    0 496,4M  0 disk [SWAP]
zram4       254:4    0 496,4M  0 disk [SWAP]
zram5       254:5    0 496,4M  0 disk [SWAP]
zram6       254:6    0 496,4M  0 disk [SWAP]
zram7       254:7    0 496,4M  0 disk [SWAP]
nvme0n1     259:0    0 476,9G  0 disk 
├─nvme0n1p1 259:1    0   300M  0 part /boot/efi
└─nvme0n1p2 259:2    0 476,6G  0 part /run/timeshift/backup
❯ inxi -Fxxxza
System:    Kernel: 5.9.1-zen2-1-zen x86_64 bits: 64 compiler: N/A 
           parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen root=UUID=8344326d-e1fe-46c6-bf83-b03108b13786 rw 
           rootflags=subvol=@ quiet splash loglevel=3 mitigations=off sysrq_always_enabled=1 
           systemd.unified_cgroup_hierarchy=1 
           Desktop: KDE Plasma 5.20.2 tk: Qt 5.15.1 info: latte-dock wm: kwin_x11 dm: SDDM Distro: Garuda Linux 
Machine:   Type: Convertible System: HP product: HP Spectre x360 Convertible 15-ch0xx v: N/A serial: <filter> Chassis: 
           type: 31 serial: <filter> 
           Mobo: HP model: 83BA v: 57.33 serial: <filter> UEFI: AMI v: F.30 date: 03/07/2019 
Battery:   ID-1: BAT0 charge: 56.4 Wh condition: 78.3/78.3 Wh (100%) volts: 11.8/11.6 model: HP Primary type: Li-ion 
           serial: N/A status: Discharging 
           Device-1: hid-0018:04F3:25BF.0001-battery model: ELAN2514:00 04F3:25BF serial: N/A charge: N/A status: N/A 
CPU:       Info: Quad Core model: Intel Core i7-8550U bits: 64 type: MT MCP arch: Kaby Lake family: 6 model-id: 8E (142) 
           stepping: A (10) microcode: D6 L2 cache: 8192 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 31999 
           Speed: 3668 MHz min/max: 400/4000 MHz Core speeds (MHz): 1: 1944 2: 3444 3: 3391 4: 3365 5: 2503 6: 3632 7: 3424 
           8: 3489 
           Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
           Type: l1tf mitigation: PTE Inversion; VMX: vulnerable 
           Type: mds status: Vulnerable; SMT vulnerable 
           Type: meltdown status: Vulnerable 
           Type: spec_store_bypass status: Vulnerable 
           Type: spectre_v1 status: Vulnerable: __user pointer sanitization and usercopy barriers only; no swapgs barriers 
           Type: spectre_v2 status: Vulnerable, IBPB: disabled, STIBP: disabled 
           Type: srbds status: Vulnerable 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: Intel UHD Graphics 620 vendor: Hewlett-Packard driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:5917 
           Device-2: NVIDIA GP108M [GeForce MX150] vendor: Hewlett-Packard driver: nvidia v: 455.28 
           alternate: nouveau,nvidia_drm bus ID: 01:00.0 chip ID: 10de:1d10 
           Device-3: Quanta HP Wide Vision FHD Camera type: USB driver: uvcvideo bus ID: 1-5:2 chip ID: 0408:5251 
           serial: <filter> 
           Display: x11 server: X.Org 1.20.9 compositor: kwin_x11 driver: modesetting,nvidia 
           alternate: fbdev,intel,nouveau,nv,vesa display ID: :0 screens: 1 
           Screen-1: 0 s-res: 3840x2160 s-dpi: 192 s-size: 508x285mm (20.0x11.2") s-diag: 582mm (22.9") 
           Monitor-1: eDP-1 res: 3840x2160 hz: 60 dpi: 283 size: 345x194mm (13.6x7.6") diag: 396mm (15.6") 
           Message: Unable to show advanced data. Required tool glxinfo missing. 
Audio:     Device-1: Intel Sunrise Point-LP HD Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel 
           alternate: snd_soc_skl bus ID: 00:1f.3 chip ID: 8086:9d71 
           Sound Server: ALSA v: k5.9.1-zen2-1-zen 
Network:   Device-1: Intel Wireless-AC 9260 driver: iwlwifi v: kernel port: e000 bus ID: 3b:00.0 chip ID: 8086:2526 
           IF: wlo1 state: up mac: <filter> 
           Device-2: Intel Wireless-AC 9260 Bluetooth Adapter type: USB driver: btusb bus ID: 1-7:3 chip ID: 8087:0025 
Drives:    Local Storage: total: 476.94 GiB used: 283.17 GiB (59.4%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           ID-1: /dev/nvme0n1 vendor: Toshiba model: N/A size: 476.94 GiB block size: physical: 512 B logical: 512 B 
           speed: 31.6 Gb/s lanes: 4 serial: <filter> rev: AAHA4102 scheme: GPT 
Partition: ID-1: / raw size: 476.64 GiB size: 476.64 GiB (100.00%) used: 283.17 GiB (59.4%) fs: btrfs dev: /dev/nvme0n1p2 
           ID-2: /home raw size: 476.64 GiB size: 476.64 GiB (100.00%) used: 283.17 GiB (59.4%) fs: btrfs dev: /dev/nvme0n1p2 
           ID-3: /var/log raw size: 476.64 GiB size: 476.64 GiB (100.00%) used: 283.17 GiB (59.4%) fs: btrfs 
           dev: /dev/nvme0n1p2 
Swap:      Kernel: swappiness: 10 (default 60) cache pressure: 75 (default 100) 
           ID-1: swap-1 type: zram size: 496.4 MiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram0 
           ID-2: swap-2 type: zram size: 496.4 MiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram1 
           ID-3: swap-3 type: zram size: 496.4 MiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram2 
           ID-4: swap-4 type: zram size: 496.4 MiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram3 
           ID-5: swap-5 type: zram size: 496.4 MiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram4 
           ID-6: swap-6 type: zram size: 496.4 MiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram5 
           ID-7: swap-7 type: zram size: 496.4 MiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram6 
           ID-8: swap-8 type: zram size: 496.4 MiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram7 
Sensors:   System Temperatures: cpu: 49.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Info:      Processes: 268 Uptime: 34m Memory: 15.51 GiB used: 2.44 GiB (15.7%) Init: systemd v: 246 Compilers: gcc: 10.2.0 
           Packages: pacman: 1297 lib: 307 Shell: Zsh v: 5.8 running in: konsole inxi: 3.1.06

What's the contents of

?

1 Like
❯ cat /etc/udev/rules.d/60-ioschedulers.rules                                                           76%   300 Mbps  ─╯
# set scheduler for NVMe
ACTION=="add|change", KERNEL=="nvme[0-9]*", ATTR{queue/scheduler}="none"
# set scheduler for SSD and eMMC
ACTION=="add|change", KERNEL=="sd[a-z]|mmcblk[0-9]*", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="mq-deadline"
# set scheduler for rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="bfq"
1 Like

Sorry If this seems like necrobumping, but I didn't see any rules

I have managed to resolve this issue by using the code below

# set scheduler for NVMe
ACTION=="add|change", KERNEL=="nvme[0-9]n[0-9]", ATTR{queue/scheduler}="none"
# set scheduler for SSD and eMMC
ACTION=="add|change", KERNEL=="sd[a-z]|mmcblk[0-9]*", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="mq-deadline"
# set scheduler for rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="bfq"

Found the source from Arch Wiki
https://wiki.archlinux.org/index.php/improving_performance#Changing_I/O_scheduler

The only change was in the Kernel section for nvme

Once it was applied and rebooted, the errors were gone

@garuda-team can one of you guys apply this fix and push it as an update so it resolve the issues for any users that has an nvme drive. cheers

6 Likes

Update should be inbound soon :grinning:

6 Likes