Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Does (e)logind drop the priority on idle Seats?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Goverp
l33t
l33t


Joined: 07 Mar 2007
Posts: 842

PostPosted: Thu May 07, 2020 1:22 pm    Post subject: Does (e)logind drop the priority on idle Seats? Reply with quote

I've got the feeling that if I start a big emerge on one GUI session (tty7), and switch to another (tty8) to do email and the like, the emerge slows down. This is on KDE, using "Leave->Switch User". I'm wondering if (e)logind and all the "seat" related ideas from LP includes switching resources away from "idle" seats. I don't get the same impression if I run emerge on a console session (tty1) and switch with Ctl-Alt-Fn, but then I lose the benefits of a GUI. I remember LP had the bright idea of killing "orphan" processes if you log out of a seat, so I wonder if his genius went further.

Am I just suffering from unfounded suspicions?
_________________
Greybeard
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15332

PostPosted: Fri May 08, 2020 1:53 am    Post subject: Reply with quote

Assuming this was done, which I do not know if it was or not, the most likely way to do it would be to use cgroups. With a root shell, you could inspect the cgroup hierarchy in each of the cases to see whether processes from the first seat have been grouped together. If they are, then you should inspect the cgroup to see whether it imposes any resource limits.
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2040
Location: Here and Away Again

PostPosted: Sat May 09, 2020 9:03 am    Post subject: Reply with quote

I've noticed something similar after switching from nvidia-drivers to xf86-video-amdgpu, where emerge/gcc\other seems to actually stop completely when I switch from X to a tty (for example, a wine-vanilla build that normally takes around 15-20 minutes was not completed after 8 hours, though it continued until the end after I returned to X). It doesn't happen immediately, and probably not always...

Some other things that do not seem quite as surprising (but are quite annoying) are graphical things like an online game getting disconnected, video streams will stop playing, desktop notifications shown all at once when returning to the X session, filling the side of the screen, and a chat program such as qTox playing the notifcation sound and showing that exact time stamp for messages received hours ago.

Something that I guess might be related, is '(II) AIGLX: Suspending AIGLX clients for VT switch', which doesn't seem to happen when using the evil blob, and I guess this behaviour is actually correct in that another user might not have the rights to hear sound playing from another. In any case, it's pretty annoying when one has been switching between ttys for 10 years. :]

I don't know why or how that should affect emerge in such a way, aside from maybe the fact that it's running under a compositing window manager.

There is no elogind or any "kits" being used on this install.
_________________
Kind regards,
Chiitoo.

You might remember me from Gentoo projects such as Forums, LXQt, Qt, and Wine.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum