Re: High kernel CPU usage when copying files

From: Alan Cox
Date: Fri Apr 24 2009 - 06:22:58 EST


> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/