View previous topic :: View next topic |
Author |
Message |
manojpm n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 11 Mar 2006 Posts: 33
|
Posted: Sat Jan 06, 2007 1:15 pm Post subject: GUI slow/unresponsive during emerges on AMD64 |
|
|
hi,
i have been experiencing unresponsiveness in gnome and all gui apps while an emerge is going on . my system config is as follows :
1) AMD Athlon 64 3500+
2) 1 gb RAM
3) ASUS A8N-VM - nvidia geforce 6100,nforce 410
4) 1 SATA 160 GB Seagate hdisk
CFLAGS="-march=athlon64 -O2 -pipe"
MAKEOPTS="-j2" ( but later commented out when i had this problem, but still no effect )
FEATURES="sandbox buildpkg ccache parallel-fetch metadata-transfer"
gnome sys monitor applet shows large load when an emerge is going on. by unresponsiveness, what i mean is , scrolling in firefox is not smooth,beryl animations tend to be choppy, the mouse pointer also seem to be slow . the whole gui seems slow.
i want to identify what n where the problem is. also, is it normal for the kernel load to be high when i am copying stuff ? the cpu usage is low but kernel load seems to be high. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
desultory Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/15563850365c4d454383627.gif)
Joined: 04 Nov 2005 Posts: 9410
|
Posted: Sun Jan 07, 2007 10:14 am Post subject: |
|
|
Is the kernel in use on the system with this issue configured with preemption and timings skewed toward desktop use?
Post the output of egrep '(PREEMPT|SCHED|HZ)' .config when run in the root of the kernel source tree (typically /usr/src/linux/) used to build the kernel in use on the system in question to allow for evaluation of the preemption model and timing settings. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
santaclaws Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/931959119459f7e5a5bff0.jpg)
Joined: 05 Jan 2007 Posts: 161 Location: Deeper Underground
|
Posted: Sun Jan 07, 2007 10:20 am Post subject: |
|
|
Have you tried out setting PORTAGE_NICENESS in your make.conf?
I am currently using a value of "15" and it makes the gui much more responsible. _________________ Software is like sex. It is better when ist is free. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
manojpm n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 11 Mar 2006 Posts: 33
|
Posted: Sun Jan 07, 2007 10:29 am Post subject: |
|
|
egrep '(PREEMPT|SCHED|HZ)' .config output is as follows :
CONFIG_IOSCHED_NOOP=y
# CONFIG_IOSCHED_AS is not set
# CONFIG_IOSCHED_DEADLINE is not set
CONFIG_IOSCHED_CFQ=y
CONFIG_DEFAULT_IOSCHED="cfq"
# CONFIG_PREEMPT_NONE is not set
CONFIG_PREEMPT_VOLUNTARY=y
# CONFIG_PREEMPT is not set
# CONFIG_HZ_100 is not set
# CONFIG_HZ_250 is not set
CONFIG_HZ_1000=y
CONFIG_HZ=1000
# CONFIG_NET_SCHED is not set
# CONFIG_USB_EHCI_TT_NEWSCHED is not set |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
desultory Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/15563850365c4d454383627.gif)
Joined: 04 Nov 2005 Posts: 9410
|
Posted: Sun Jan 07, 2007 10:34 am Post subject: |
|
|
Try setting CONFIG_IOSCHED_AS and CONFIG_PREEMPT to "y" and CONFIG_DEFAULT_IOSCHED to "anticipatory", in addition to the make.conf settings santaclaws recommended. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
manojpm n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 11 Mar 2006 Posts: 33
|
Posted: Sun Jan 07, 2007 10:46 am Post subject: |
|
|
hi,
the default scheduler is CFQ. does an anticipatory scheduler work better than a CFQ on amd64/SATA sys ? or are u asking me to check if using an anticipatory sched instead of CFQ solves the problem on my sys ? and how do i set CONFIG_PREEMPT from menuconfig ? and how does all this affect kernel's behavior? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
santaclaws Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/931959119459f7e5a5bff0.jpg)
Joined: 05 Jan 2007 Posts: 161 Location: Deeper Underground
|
Posted: Sun Jan 07, 2007 11:06 am Post subject: |
|
|
I am using CFQ but I do not have a AMD64 machine - so I do not know
Schedulers: Block layer --> Default i/O scheduler --> voila
Preempt: Processor type and features --> Preemption Model --> Preemptible Kernel --> voila
But do not forget setting PORTAGE_NICENESS! It really affects the systems behavior a lot when emerging. _________________ Software is like sex. It is better when ist is free. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Belliash Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1944380597442f93fcbd793.png)
Joined: 24 Nov 2004 Posts: 2503 Location: Wroclaw, Poland
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jhagmar n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Jan 2007 Posts: 9
|
Posted: Sun Jan 07, 2007 11:31 am Post subject: |
|
|
I've also found emerge to be quite of a processor hog, which is quite understandable. I suppose setting PORTAGE_NICENESS would most certainly help. I personally use Code: | nice -n 19 emerge ... | when I don't want emerge to disturb me when I'm working with other programs.
/Jonas |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
manojpm n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 11 Mar 2006 Posts: 33
|
Posted: Sun Jan 07, 2007 11:38 am Post subject: |
|
|
yes i do beryl 0.1.4 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
manojpm n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 11 Mar 2006 Posts: 33
|
Posted: Sun Jan 07, 2007 12:10 pm Post subject: |
|
|
hi,
i shifted to anticipatory scheduler and prempted kernel and now emerges even at normal priority donot affect GUI especially firefox.
thanx a lot desultory. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Belliash Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1944380597442f93fcbd793.png)
Joined: 24 Nov 2004 Posts: 2503 Location: Wroclaw, Poland
|
Posted: Mon Jan 08, 2007 7:28 pm Post subject: |
|
|
manojpm wrote: | hi,
i shifted to anticipatory scheduler and prempted kernel and now emerges even at normal priority donot affect GUI especially firefox.
thanx a lot desultory. |
BTW: I had the same when was using aiglx/nvidiagl. solved until switched to xgl ![Wink ;)](images/smiles/icon_wink.gif) _________________ Asio Software Technologies
Belliash IT Weblog |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|