Skip to contentSkip to conversation

anticipatory scheduling questions

DISCUSSION Felipe Alfaro Solana 2 participants 2 messages Mar 2, 2003

lore
Share & tools
lore
#0 lore raw

----- Original Message -----
From: Andrew Morton <[email protected]>
Date: Sat, 1 Mar 2003 02:40:24 -0800
To: "Felipe Alfaro Solana" <[email protected]>
Subject: Re: anticipatory scheduling questions

Quoted 6 lines
Quoted 5 lines · Felipe Alfaro Solana

----- Original Message -----

Quoted 2 lines

Does basic 2.5.63 do the same thing? Do you have a feel for when it started happening?

Quoted 6 lines
Quoted 2 lines

This has happened since the moment I switched from 2.4 to 2.5.63-mm1.

You have not actually said whether 2.5.63 base exhibits the same problem. From the vmstat traces it appears that the answer is "yes"?

Both 2.5.63 and 2.5.63-mm1 exhibit this behavior, but can't be reproduced with 2.4.20-2.54.

Quoted 5 lines
Quoted 2 lines

I have retested this with 2.4.20-2.54, 2.5.63 and 2.5.63-mm1... and have attached the files to this message

Thanks. Note how 2.4 is consuming a few percent CPU, whereas 2.5 is consuming 100%. Approximately half of it system time.

It seems is not "user" or "system" time what's being consumed, it's "iowait" Look below :-)

Quoted 2 lines

It does appear that some change in 2.5 has caused evolution to go berserk during this operation.

I wouldn't say it's exactly Evolution what's going berserk. Doing a "top -s1" while trying to reply to a big e-mail message, I've noticed that "top" reports "iowait" starting at ~50%, then going up very fast and then staying up at 90-95% all the time. This happens on 2.5.63 and 2.5.63-mm1, however, on 2.4.20-2.54 kernel, "iowait" stays all the time exactly at "0%" and idle time remains steady at 90-95%.

These measures were taken using "top" with a delay of 1 second, starting at the moment in which I try replying to a large e-mail message.

Quoted 4 lines

The next step please is:

a) run top during the operation, work out which process is chewing all that CPU. Presumably it will be evolution or aspell

Well, the "top" command reveals that Evolution is taking very little CPU usage (between 1 and 6%). Nearly all the time is accounted under "iowait".

The other Evolution processes top at a peak sum of 5% of CPU usage, more or less.

Quoted 2 lines

b) Do it again and this time run

	strace -p $(pidof evolution)	# or aspell 

I think this is going to be difficult... as I said Evolution is a very complex program and it spawns a lot of processes. When I click the Reply, Evolution spawns two processes:
"gnome-gtkhtml-editor" and "gnome-spell-component".

I have little experience with process tracing and don't know how to attach to those processes from the very beginning. Attaching to the main Evolution process doesn't help: the "strace" command dumps a lot of info when Evolution starts up, but starts being useless at the moment I click the Reply and Evolution spawns these two new processes to process the request.

Any ideas?

Quoted 1 line

This will tell us what it is up to.

I'm sorry I can't help much more. Can you give me more pointers on how to nail this down?

Thanks!

Felipe Alfaro Solana

Signature · 5 lines
______________________________________________
http://www.linuxmail.org/
Now with e-mail forwarding for only US$5.95/yr

Powered by Outblaze
#1 lore raw
Quoted 7 lines · Felipe Alfaro Solana
Quoted 4 lines

You have not actually said whether 2.5.63 base exhibits the same problem. From the vmstat traces it appears that the answer is "yes"?

Both 2.5.63 and 2.5.63-mm1 exhibit this behavior, but can't be reproduced with 2.4.20-2.54.

By 2.54 I assume you mean 2.5.54?

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

I have retested this with 2.4.20-2.54, 2.5.63 and 2.5.63-mm1... and have attached the files to this message

Thanks. Note how 2.4 is consuming a few percent CPU, whereas 2.5 is consuming 100%. Approximately half of it system time.

It seems is not "user" or "system" time what's being consumed, it's "iowait" Look below :-)

Your vmstat traces were showing tons of user time as well as system time. Please make sure that you have the latest version of procps, from http://surriel.com/procps/ or http://procps.sourceforge.net/

Quoted 9 lines
Quoted 2 lines

It does appear that some change in 2.5 has caused evolution to go berserk during this operation.

I wouldn't say it's exactly Evolution what's going berserk. Doing a "top -s1" while trying to reply to a big e-mail message, I've noticed that "top" reports "iowait" starting at ~50%, then going up very fast and then staying up at 90-95% all the time. This happens on 2.5.63 and 2.5.63-mm1, however, on 2.4.20-2.54 kernel, "iowait" stays all the time exactly at "0%" and idle time remains steady at 90-95%.

Well certainly the IO stream _looks_ like it is stuck in IO-wait a lot.

It is strange that this has been happening for a couple of months and seems to only affect Felipe Solana's copy of evolution. I still can't get my copy to spellcheck a thing. I need to wrestle with it a bit more.