#
#asahi-alt · 2024-04-30 11:55
leioand apparently pipewire does too
#asahi-alt · 2024-04-30 11:54
leioGNOME needs to give a higher priority to its input and/or kms thread
#asahi-alt · 2024-04-30 11:54
chadmedsched_setattr*
#asahi-alt · 2024-04-30 11:53
chadmedsched_set will probably return EPERM when trying to renice or set prio
#asahi-alt · 2024-04-30 11:53
chadmedi believe any thread can ask for clamping values
#asahi-alt · 2024-04-30 11:52
leiohow does the kernel let it? As in, how do those sched_set things work?
#asahi-alt · 2024-04-30 11:52
leioon GNOME there's a hard dep on rtkit already too
#asahi-alt · 2024-04-30 11:51
chadmedespecially now that like i said they can both already just sched_{get,set}
#asahi-alt · 2024-04-30 11:50
chadmedso i think long-term pipewire and wireplumber should also just stop depending on it
#asahi-alt · 2024-04-30 11:50
chadmedi dont mind to hard dep on rtkit it's just already extremely brittle (couple of issues on the repo re build failures and odd behaviour during suspend etc) and clearly no one is interested in maintaining it
#asahi-alt · 2024-04-30 11:49
chadmedbut thats also really sus as you said
#asahi-alt · 2024-04-30 11:49
chadmedit just sets the limits
#asahi-alt · 2024-04-30 11:49
chadmedyeah sorry i was confidently wrong :p
#asahi-alt · 2024-04-30 11:49
leioif fedora and co rely on rtkit for all this, I don't see a need to be special in this regard
#asahi-alt · 2024-04-30 11:49
leioI would just unconditionally depend on rtkit and get rid of this limits.d business, but lack some historical context
#asahi-alt · 2024-04-30 11:48
leiobut not interested in the re-logins to find out :D
#asahi-alt · 2024-04-30 11:48
leiobut I'm not convinced everything out of the box will just run at highest priority if you add your user to the group
#asahi-alt · 2024-04-30 11:48
leiowhich is also a bit iffy, as anything could go and start doing it then, not just pipewire
#asahi-alt · 2024-04-30 11:47
leioallowing a process to lower the niceness value (higher priority) themselves
#asahi-alt · 2024-04-30 11:47
leioregarding limits.d stuff, I'm not sure everything will get that priority; it just might be changing the limits
#asahi-alt · 2024-04-30 11:47
chadmedgithub profile is still very active
#asahi-alt · 2024-04-30 11:47
leioor used to be less than 5 years ago
#asahi-alt · 2024-04-30 11:46
leioI know he's somewhat around in gnome circles
#asahi-alt · 2024-04-30 11:46
chadmedi dont think they're particularly interested in telling us whats up :p
#asahi-alt · 2024-04-30 11:46
chadmedthey have not responded to a single PR or issue in 5 years
#asahi-alt · 2024-04-30 11:46
leioI'm not sure anyone has even asked heftig what's up
#asahi-alt · 2024-04-30 11:46
chadmedso maybe we just push to get rtkit yeeted
#asahi-alt · 2024-04-30 11:45
leiomaybe it just allows the process to increase its priority without giving an error when not root
#asahi-alt · 2024-04-30 11:45
chadmedive already wired up direct sched_{get,set} into pipewire and wireplumber
#asahi-alt · 2024-04-30 11:45
leiobut I don't know what limits.d is about
#asahi-alt · 2024-04-30 11:45
chadmedi think long term if no one is going to step up and maintain rtkit then pipewire should just stop depending on it
#asahi-alt · 2024-04-30 11:45
leioI see what you mean.
#asahi-alt · 2024-04-30 11:45
chadmedthereby negating any benefit of bumping the niceness/prio of pipewire
#asahi-alt · 2024-04-30 11:44
chadmedwhich, again, will just make the scheduler treat all my processes exactly the same
#asahi-alt · 2024-04-30 11:44
chadmedif i create the @pipewire group and add myself to it, then _every single process_ i start will be started at the limits.d right
#asahi-alt · 2024-04-30 11:44
leioand that's one of the parts I don't like about it
#asahi-alt · 2024-04-30 11:44
leioelog says to add your user to pipewire group
#asahi-alt · 2024-04-30 11:44
chadmedwith rtkit uninstalled pipewire starts with 20 0 just like every other user process
#asahi-alt · 2024-04-30 11:43
leioI might have found the wrong limits.d too
#asahi-alt · 2024-04-30 11:43
chadmedyes, that's probably rtkit
#asahi-alt · 2024-04-30 11:43
leioin practice I see -11 though
#asahi-alt · 2024-04-30 11:43
chadmedit is started as the logged in user
#asahi-alt · 2024-04-30 11:43
chadmedthat file sets the limits on the user group, and pipewire is not started by a user in the @pipewire group
#asahi-alt · 2024-04-30 11:42
leiovia limits.d pipewire, and only pipewire, is running at nice level -19 and rtprio
#asahi-alt · 2024-04-30 11:42
leioI'm not following that part
#asahi-alt · 2024-04-30 11:42
chadmedwhich means pipewire is not any more favoured than anything else and we're right back to where we started
#asahi-alt · 2024-04-30 11:42
chadmedyeah i mean it kinda defeats the purpose because then the scheduler is just gonna treat all user processes the same
#asahi-alt · 2024-04-30 11:41
leiosam_ knows more, he's the limits.d proponent :D
#asahi-alt · 2024-04-30 11:40
leiobecause it gets rtprio on all threads, not just those that pipewire might want
#asahi-alt · 2024-04-30 11:40
leiochadmed: in gentoo rt is handled via /etc/security/limits.d/25-pw-rlimits.conf - I'm not convinced that's best.

plus ›