Ananicy-cpp argument list too long

Hi,

after installing ananicy-cpp from the performance part i saw that my log gets spammed with a lot of messages from ananicy-cpp:

the problem seems to be related to not being able to renice the applications due to invalid call to a kernel function:

|11-12-2022 16:08|ananicy-cpp|sched_setattr: Argument list too long|
|11-12-2022 16:08|ananicy-cpp|[2022-12-11 16:08:20.971] [error] set_latency_nice: Unknown error, errno is Argument list too long(7)|

strace feedback gave me the cause in the call sched_setattr

you see this pop up every time ananicy-cpp is trying to renice something. I tried with the git and the standard aur package

i tried with the current lts kernel (5.15.82-1-lts) and with the linux kernel (6.0.12-arch1-1) but the problem happened with both.

i disabled ananicy-cpp for now. I mostly wnat to check if anybody else has this problem.

my system info can be found here:

System:
  Kernel: 5.15.82-1-lts arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-lts
    root=UUID=2079ae7a-cfa2-4d54-8d9b-ddcb4431db7a rw rootflags=subvol=@
    quiet
    cryptdevice=UUID=de71701c-bb12-4ae6-b6c5-7a7d88820893:luks-de71701c-bb12-4ae6-b6c5-7a7d88820893
    root=/dev/mapper/luks-de71701c-bb12-4ae6-b6c5-7a7d88820893 quiet splash
    rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3 ibt=off
  Desktop: Xfce v: 4.16.1 tk: Gtk v: 3.24.34 info: xfce4-panel wm: xfwm
    v: 4.16.1 vt: 7 dm: LightDM v: 1.32.0 Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop System: Gigabyte product: B550 AORUS ELITE V2 v: N/A
    serial: <superuser required>
  Mobo: Gigabyte model: B550 AORUS ELITE V2 v: x.x
    serial: <superuser required> UEFI: American Megatrends LLC. v: F14
    date: 01/04/2022
Battery:
  ID-1: hidpp_battery_1 charge: 24% condition: N/A volts: 3.7 min: N/A
    model: Logitech G703 LIGHTSPEED Wireless Gaming Mouse w/ HERO type: N/A
    serial: <filter> status: discharging
  Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard K270
    serial: <filter> charge: 100% (should be ignored) rechargeable: yes
    status: discharging
CPU:
  Info: model: AMD Ryzen 9 5950X bits: 64 type: MT MCP arch: Zen 3 gen: 4
    level: v3 note: check built: 2021-22 process: TSMC n7 (7nm)
    family: 0x19 (25) model-id: 0x21 (33) stepping: 2 microcode: 0xA201205
  Topology: cpus: 1x cores: 16 tpc: 2 threads: 32 smt: enabled cache:
    L1: 1024 KiB desc: d-16x32 KiB; i-16x32 KiB L2: 8 MiB desc: 16x512 KiB
    L3: 64 MiB desc: 2x32 MiB
  Speed (MHz): avg: 3601 high: 3826 min/max: 2200/5083 boost: enabled
    scaling: driver: acpi-cpufreq governor: performance cores: 1: 3592 2: 3592
    3: 3591 4: 3588 5: 3591 6: 3590 7: 3592 8: 3592 9: 3591 10: 3584 11: 3592
    12: 3592 13: 3591 14: 3586 15: 3586 16: 3592 17: 3592 18: 3590 19: 3826
    20: 3591 21: 3592 22: 3587 23: 3587 24: 3593 25: 3587 26: 3701 27: 3590
    28: 3594 29: 3592 30: 3591 31: 3603 32: 3592 bogomips: 217188
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl and seccomp
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: always-on, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA GA102 [GeForce RTX 3080 Lite Hash Rate] vendor: PNY
    driver: nvidia v: 525.60.11 alternate: nouveau,nvidia_drm non-free: 520.xx+
    status: current (as of 2022-10) arch: Ampere code: GAxxx
    process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 1 speed: 2.5 GT/s
    lanes: 16 link-max: gen: 4 speed: 16 GT/s bus-ID: 09:00.0
    chip-ID: 10de:2216 class-ID: 0300
  Device-2: ARC Camera type: USB
    driver: hid-generic,snd-usb-audio,usbhid,uvcvideo bus-ID: 1-2:2
    chip-ID: 05a3:9331 class-ID: 0300 serial: <filter>
  Device-3: Microdia HDP Webcam USB type: USB driver: snd-usb-audio,uvcvideo
    bus-ID: 1-9.4:9 chip-ID: 0c45:636b class-ID: 0102 serial: <filter>
  Display: x11 server: X.Org v: 21.1.4 compositor: xfwm v: 4.16.1
    driver: N/A display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 7680x2160 s-dpi: 96 s-size: 2032x572mm (80.00x22.52")
    s-diag: 2111mm (83.11")
  Monitor-1: DP-0 pos: right res: 3840x2160 hz: 60 dpi: 163
    size: 600x340mm (23.62x13.39") diag: 690mm (27.15") modes: N/A
  Monitor-2: DP-2 pos: primary,left res: 3840x2160 hz: 60 dpi: 163
    size: 600x340mm (23.62x13.39") diag: 690mm (27.15") modes: N/A
  API: OpenGL Message: Unable to show GL data. Required tool glxinfo
    missing.
Audio:
  Device-1: NVIDIA GA102 High Definition Audio vendor: PNY
    driver: snd_hda_intel v: kernel bus-ID: 1-2:2 chip-ID: 05a3:9331 pcie:
    class-ID: 0300 gen: 1 speed: 2.5 GT/s serial: <filter> lanes: 16 link-max:
    gen: 4 speed: 16 GT/s bus-ID: 09:00.1 chip-ID: 10de:1aef class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 0b:00.4 chip-ID: 1022:1487 class-ID: 0403
  Device-3: ARC Camera type: USB
    driver: hid-generic,snd-usb-audio,usbhid,uvcvideo
  Device-4: SteelSeries ApS Arctis 7 type: USB
    driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-9.3:8 chip-ID: 1038:12ad
    class-ID: 0300
  Device-5: Microdia HDP Webcam USB type: USB driver: snd-usb-audio,uvcvideo
    bus-ID: 1-9.4:9 chip-ID: 0c45:636b class-ID: 0102 serial: <filter>
  Sound API: ALSA v: k5.15.82-1-lts running: yes
  Sound Server-1: PulseAudio v: 16.1 running: no
  Sound Server-2: PipeWire v: 0.3.61 running: yes
Network:
  Device-1: Realtek RTL8125 2.5GbE vendor: Gigabyte driver: r8169 v: kernel
    pcie: gen: 2 speed: 5 GT/s lanes: 1 port: f000 bus-ID: 08:00.0
    chip-ID: 10ec:8125 class-ID: 0200
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: TP-Link UB500 Adapter type: USB driver: btusb v: 0.8 bus-ID: 3-2:2
    chip-ID: 2357:0604 class-ID: e001 serial: <filter>
  Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
  Local Storage: total: 8.53 TiB used: 902.61 GiB (10.3%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Gigabyte model: GP-AG42TB
    size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: EGFM15.0 temp: 36.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:8 vendor: Crucial model: CT1000P1SSD8
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: P3CR013 temp: 38.9 C scheme: GPT
  ID-3: /dev/sda maj-min: 8:0 vendor: Seagate model: ST3000DM001-9YN166
    size: 2.73 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: CC4B scheme: MBR
  ID-4: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST3000DM001-9YN166
    size: 2.73 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: CC4B scheme: MBR
  ID-5: /dev/sdc maj-min: 8:32 vendor: LITE-ON IT model: LCS-128M6S 2.5 7mm
    128GB size: 119.24 GiB block-size: physical: 512 B logical: 512 B
    speed: 6.0 Gb/s type: SSD serial: <filter> rev: 10D scheme: MBR
  ID-6: /dev/sdd maj-min: 8:48 vendor: Samsung model: SSD 840 Series
    size: 232.89 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 7B0Q scheme: MBR
Partition:
  ID-1: / raw-size: 97.34 GiB size: 97.34 GiB (100.00%)
    used: 32.27 GiB (33.1%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-de71701c-bb12-4ae6-b6c5-7a7d88820893
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%)
    used: 25.7 MiB (26.8%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 691.13 GiB size: 691.13 GiB (100.00%)
    used: 39.88 GiB (5.8%) fs: btrfs dev: /dev/dm-4 maj-min: 254:4 mapped: home
  ID-4: /var/log raw-size: 97.34 GiB size: 97.34 GiB (100.00%)
    used: 32.27 GiB (33.1%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-de71701c-bb12-4ae6-b6c5-7a7d88820893
  ID-5: /var/tmp raw-size: 97.34 GiB size: 97.34 GiB (100.00%)
    used: 32.27 GiB (33.1%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-de71701c-bb12-4ae6-b6c5-7a7d88820893
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 62.7 GiB used: 512 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 40.6 C mobo: 25.0 C gpu: nvidia temp: 47 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0%
Info:
  Processes: 546 Uptime: 9m wakeups: 4 Memory: 62.7 GiB used: 3.74 GiB (6.0%)
  Init: systemd v: 252 default: graphical tool: systemctl Compilers:
  gcc: 12.2.0 clang: 14.0.6 Packages: pm: pacman pkgs: 1871 libs: 423
  tools: octopi,paru Shell: Bash v: 5.1.16 running-in: tilix inxi: 3.3.23
Garuda (2.6.10-1):
  System install date:     2022-10-03
  Last full system update: 2022-12-11
  Is partially upgraded:   No
  Relevant software:       NetworkManager
  Windows dual boot:       Probably (Run as root to verify)
  Snapshots:               Snapper
  Failed units:            
2 Likes

Hi!

Yes, I have this issue too.

And presently my picom is sucking quite a bit of CPU .. related?

<< q

By the way, I wanted to test it but I found out that on my computer ananicy-cpp hogs the CPU (100% on both cores, on and off every few seconds) and I gave up.
I think I've seen this issue reported somewhere in the past but did not find it again.

I can confirm this issue as well. The journald spam is more or less constant--mostly just variations of sched_setattr: Argument list too long over and over.

I read through the issue page here: Issues · Ananicy Cpp / Ananicy Cpp · GitLab and the AUR page for ananicy-cpp as well but there is no sign of anyone else having this issue. A Whoogle search for "ananicy-cpp" "argument list too long" turns up exactly one hit--this forum post. :smirk:

I started poking around a little bit in /etc/ananicy.d/, but there must be a thousand rules in there and the truth is I don't even really know what I am looking at.

I wonder if something is awry with the Garuda implementation? If not, we should open an issue on the Ananicy-cpp GitLab.

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.