* High kernel CPU usage when copying files
@ 2009-04-24 10:01 Rutkov Denis
2009-04-24 10:23 ` Alan Cox
0 siblings, 1 reply; 4+ messages in thread
From: Rutkov Denis @ 2009-04-24 10:01 UTC (permalink / raw)
To: linux-kernel
Dear linux kernel hackers, I need help hunting a very annoying bug.
I'm using Xubuntu 9.04 (kernel 2.6.28-11-42) on a P4@2.0Ghz PC with 512MB RAM and two IDE drives (ext4).
Whenever I copy files I got very high CPU usage from kernel. I tested this with ext3, ext4 and fat32 file systems. To trace the problem I installed oprofile and debug kernel image. I ran the profiler during file copying and saw that there are many calls to copy_to_user_ll and copy_from_user_ll functions. So I have two questions:
1. Is this normal I get so many of those function calls?
2. What can I do to further trace this bug?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: High kernel CPU usage when copying files
2009-04-24 10:01 High kernel CPU usage when copying files Rutkov Denis
@ 2009-04-24 10:23 ` Alan Cox
2009-04-24 10:30 ` Re[2]: " Rutkov Denis
0 siblings, 1 reply; 4+ messages in thread
From: Alan Cox @ 2009-04-24 10:23 UTC (permalink / raw)
To: Rutkov Denis; +Cc: linux-kernel
> Whenever I copy files I got very high CPU usage from kernel. I tested this with ext3, ext4 and fat32 file systems. To trace the problem I installed oprofile and debug kernel image. I ran the profiler during file copying and saw that there are many calls to copy_to_user_ll and copy_from_user_ll functions. So I have two questions:
>
> 1. Is this normal I get so many of those function calls?
Yes
> 2. What can I do to further trace this bug?
Are you seeing high CPU usage or just a lot of D state processes (blocked
waiting I/O) ?
Alan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re[2]: High kernel CPU usage when copying files
2009-04-24 10:23 ` Alan Cox
@ 2009-04-24 10:30 ` Rutkov Denis
2009-04-24 14:21 ` Heinz Diehl
0 siblings, 1 reply; 4+ messages in thread
From: Rutkov Denis @ 2009-04-24 10:30 UTC (permalink / raw)
To: linux-kernel
Thanks for replying.
> Are you seeing high CPU usage or just a lot of D state processes (blocked
waiting I/O) ?
Yes, I see high CPU usage, my whole system gets unresponsive. However, I can check this to be sure, just tell me how.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re[2]: High kernel CPU usage when copying files
2009-04-24 10:30 ` Re[2]: " Rutkov Denis
@ 2009-04-24 14:21 ` Heinz Diehl
0 siblings, 0 replies; 4+ messages in thread
From: Heinz Diehl @ 2009-04-24 14:21 UTC (permalink / raw)
To: Rutkov Denis; +Cc: linux-kernel
At Fri, 24 Apr 2009 14:30:03 +0400,
Rutkov Denis wrote:
> However, I can check this to be sure, just tell me how.
Do a "ps ax" on console and watch for processes which are flagged with a "D",
these are the uninterruptable processes ("D-state"). You can also use the
vmstat utility, the processes in blocked state show up in the second row on
the left side, titled with a small "b" on top.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-04-24 14:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-24 10:01 High kernel CPU usage when copying files Rutkov Denis
2009-04-24 10:23 ` Alan Cox
2009-04-24 10:30 ` Re[2]: " Rutkov Denis
2009-04-24 14:21 ` Heinz Diehl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®