Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GUI slow/unresponsive during emerges on AMD64
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
manojpm
n00b
n00b


Joined: 11 Mar 2006
Posts: 33

PostPosted: Sat Jan 06, 2007 1:15 pm    Post subject: GUI slow/unresponsive during emerges on AMD64 Reply with quote

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
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Sun Jan 07, 2007 10:14 am    Post subject: Reply with quote

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
View user's profile Send private message
santaclaws
Apprentice
Apprentice


Joined: 05 Jan 2007
Posts: 161
Location: Deeper Underground

PostPosted: Sun Jan 07, 2007 10:20 am    Post subject: Reply with quote

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
View user's profile Send private message
manojpm
n00b
n00b


Joined: 11 Mar 2006
Posts: 33

PostPosted: Sun Jan 07, 2007 10:29 am    Post subject: Reply with quote

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
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Sun Jan 07, 2007 10:34 am    Post subject: Reply with quote

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
View user's profile Send private message
manojpm
n00b
n00b


Joined: 11 Mar 2006
Posts: 33

PostPosted: Sun Jan 07, 2007 10:46 am    Post subject: Reply with quote

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
View user's profile Send private message
santaclaws
Apprentice
Apprentice


Joined: 05 Jan 2007
Posts: 161
Location: Deeper Underground

PostPosted: Sun Jan 07, 2007 11:06 am    Post subject: Reply with quote

I am using CFQ but I do not have a AMD64 machine - so I do not know :wink:

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
View user's profile Send private message
Belliash
Advocate
Advocate


Joined: 24 Nov 2004
Posts: 2503
Location: Wroclaw, Poland

PostPosted: Sun Jan 07, 2007 11:25 am    Post subject: Reply with quote

do you use beryl?
_________________
Asio Software Technologies
Belliash IT Weblog
Back to top
View user's profile Send private message
jhagmar
n00b
n00b


Joined: 01 Jan 2007
Posts: 9

PostPosted: Sun Jan 07, 2007 11:31 am    Post subject: Reply with quote

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
View user's profile Send private message
manojpm
n00b
n00b


Joined: 11 Mar 2006
Posts: 33

PostPosted: Sun Jan 07, 2007 11:38 am    Post subject: Reply with quote

yes i do beryl 0.1.4
Back to top
View user's profile Send private message
manojpm
n00b
n00b


Joined: 11 Mar 2006
Posts: 33

PostPosted: Sun Jan 07, 2007 12:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Belliash
Advocate
Advocate


Joined: 24 Nov 2004
Posts: 2503
Location: Wroclaw, Poland

PostPosted: Mon Jan 08, 2007 7:28 pm    Post subject: Reply with quote

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 ;)
_________________
Asio Software Technologies
Belliash IT Weblog
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