Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CFS makes the desktop unresponsive and barely usable
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
exabyte
n00b
n00b


Joined: 08 Feb 2008
Posts: 5
Location: Bulgaria

PostPosted: Fri Feb 08, 2008 10:32 pm    Post subject: CFS makes the desktop unresponsive and barely usable Reply with quote

So, a few days ago I decided to move to 2.6.24, mainly because of the the new scheduler (I was using 2.6.22 before this). Since then, I'm experiencing a performance problem. While I'm not sure that it's related to CFS, because there are other kernel changes between 22 and 24, CFS is the main suspect.

My system is not new, Athlon XP 2100+, I don't feel this problem on my laptop, which has a significantly faster CPU. The problem is that when the CPU is loaded, for example I'm compiling something, the system becomes unresponsive, lagged and slow (currently the letters I'm writing are appearing on the screen up to a second after I press the keys).

The situation before the kernel upgrade: If I was doing something resource intensive, it did disturb my work, but it goes like this... If portage is compiling something with nice 1, and at the same time distccd is compliing something with nice 5, I don't feel any impact on the responsiveness. While the processes are running slower and Flash videos are skipping, desktop responsiveness was perfectly OK. Of course, if some of the compilers did try to allocate too much memory or portage began a disk-intensive task, everything lagged, but that's not related to this problem. (Well, and of course, Firefox is always lagged, but it doesn't count.)

The situation after the kernel upgrade: I had to move my portage nice level to 7 and my distccd nice level to 10. Even now, with only portage running, everything is slow. I had ro register two forums (this one and the Ubuntu forum) during the emerge -DuN world I'm currently performing, and the fact that I had to confirm my registration via email made me want to kill the admins -- switching between my Firefox and Thunderbird window has never been slower, I see them redrawing slowly, left clicking on the activation link I see the menu slowly appearing and pasting it isn't faster either. And quite ironic, when portage begins a disk-intensive task, everything becomes more responsive, because the CPU becomes less loaded.


A few notes:
1. KDE/Qt applications continue to work fine, only applications using the slow toolkit (GTK+) and switching between windows feel slower. Also, rendering fonts in Qt apps is slow, too. (Konsole printing out the portage output.)
2. Everything is fine when portage is regenerating ld.so.cache. It's slow when it's checking the package checksums or running gcc.
3. I did experience the same before the upgrade, under heavy load. Also I've experience the same in Firefox (not other applications), if I forgot to close/reopen it often, as one should. The difference is that now it is that way always when there is a load.
4. Some other possibly related to the problem kernel options: CONFIG_PREEMPT_VOLUNTARY=y, CONFIG_NO_HZ=y, CONFIG_HZ_1000=y (I don't believe this one has any effect on anything with NO_HZ).
5. When I'm typing, the letters appear in the right order (usually under a heavy load they bgine apeparnig lie ktihs, which is still the case).
6. Neither music, nor video is skipping under load, even the situation is slightly improved with the new kernel, because it had the tendency to skip under certain conditions - with the new kernel it doesn't.

Anyone share a similar experence on the forum? Any ideas what I can do to improve the situation? Thank you for your reply in advance.
Back to top
View user's profile Send private message
rlittle
Apprentice
Apprentice


Joined: 17 Dec 2003
Posts: 200

PostPosted: Sat Feb 09, 2008 6:51 am    Post subject: Reply with quote

You should search more. Take a look at https://forums.gentoo.org/viewtopic-t-657398-highlight-.html

They found that disabling CFS helped them out.
_________________
I need a better signature...
Back to top
View user's profile Send private message
Paapaa
l33t
l33t


Joined: 14 Aug 2005
Posts: 955
Location: Finland

PostPosted: Sat Feb 09, 2008 9:40 am    Post subject: Reply with quote

rlittle wrote:
You should search more. Take a look at https://forums.gentoo.org/viewtopic-t-657398-highlight-.html

They found that disabling CFS helped them out.


Nope. You can't (and you don't have to) disable CFS as it is the only CPU scheduler in the kernel. What they did is that they disabled the "fair group CPU scheduler" (FAIR_GROUP_SCHED). And it seemed to help.
_________________
Paludis, the way packages are meant to be managed.
Back to top
View user's profile Send private message
exabyte
n00b
n00b


Joined: 08 Feb 2008
Posts: 5
Location: Bulgaria

PostPosted: Sat Feb 09, 2008 3:14 pm    Post subject: Reply with quote

Thank you. That improved the situation a lot. :)
I also switched to CONFIG_PREEMPT with CONFIG_PREEMPT_BKL on, which also improved responsiveness. :)
Back to top
View user's profile Send private message
rlittle
Apprentice
Apprentice


Joined: 17 Dec 2003
Posts: 200

PostPosted: Sat Feb 09, 2008 5:22 pm    Post subject: Reply with quote

Sorry, it was late and I hallucinated that CFS was the same as fair group CPU scheduler. /shakes head/
_________________
I need a better signature...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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