You are not logged in.
Pages: 1
I just installed Arch Linux today. Everything is good but there is one problem: When I copy a big folder(23 GB) from one partition to another, it uses 100% cpu power and significantly slows down the system. I tried copying the same folder in Ubuntu, where the system performance was not affected at all. 40% cpu usage at most. Does anyone else have this problem ? Any help would be appreciated.
Offline
What are you using to copy it?
File manager or flat out cp -r
Last edited by cesura (2010-05-08 22:20:58)
Offline
File managers. In arch Dolphin, in Ubuntu nautilus.
Offline
File managers. In arch Dolphin, in Ubuntu nautilus.
That could be why, but probably not.
Try using cp. Also, don't forget copying files is actually a big task. It has to load each byte, then move it to some other hard drive sector, and do this millions of times. With a 23GB file, it will take up alot of CPU
Offline
What filesystems are you coping from/to? What scheduler are you using - stock Arch kernel of you've rolled your own?
IIRC Nautilus is lighter than Dolphin and KDE may be eating some cpu.
It's just a wild guess, but:
http://forums.gentoo.org/viewtopic-p-59 … ml#5987465
*) the problem with low throughput is related to a buggy firmware on several SATA-drives with NCQ
*) the problem with lagging / bad desktop interactivity is (seems) specific to the x86_64 / amd64 architecture and cfq and cfs (the cpu-scheduler) seem to be involved
Last edited by karol (2010-05-08 23:04:06)
Offline
Ok, I will try compiling a new kernel. Thanks for the replies.
Offline
> Ok, I will try compiling a new kernel. Thanks for the replies.
That may not solve your problems but please post if it does.
Offline
Ok, I will try compiling a new kernel. Thanks for the replies.
You don't need to recompile if you want to try and change I/O schedulers. A simple elevator= on your GRUB kernel line should do fine.
Available schedulers include:
Completely Fair Queuing:elevator=cfq (default)
Deadline:elevator=deadline
NOOP:elevator=noop
Anticipatory:elevator=as
You may also be able to do it with something like
echo deadline > /sys/block/sda/queue/scheduler
to use the deadline scheduler, for /dev/sda, for instance.
FWIW, the JFS filesystem has been proven to perform best with deadline.
Offline
slhdn wrote:Ok, I will try compiling a new kernel. Thanks for the replies.
You don't need to recompile if you want to try and change I/O schedulers. A simple elevator= on your GRUB kernel line should do fine.
Available schedulers include:
Completely Fair Queuing:elevator=cfq (default)
Deadline:elevator=deadline
NOOP:elevator=noop
Anticipatory:elevator=as
You may also be able to do it with something likeecho deadline > /sys/block/sda/queue/scheduler
to use the deadline scheduler, for /dev/sda, for instance.
FWIW, the JFS filesystem has been proven to perform best with deadline.
sudo nano /sys/block/sda/queue/scheduler
noop deadline [cfq]
What does this mean? Am I using deadline, or cfq?
In this forum they recommend using bfs and bfq , but frankly I'm not very familiar with these terms. Can you tell me what I should write into the scheduler file to use those schedulers?
Offline
Well, BFS is a CPU scheduler, not an I/O scheduler. That's a different beast, and to my knowledge, that will require a kernel recompile..though I think there may be an AUR PKGBUILD kernel which uses bfs. Best to check there first.
To be clear, I suggested that you use 'elevator=<your_choice>' in the GRUB kernel array above, but maybe I was not concise enough.
To change I/O schedulers, in /boot/grub/menu.lst, append elevator=<your_choice> to the end of your kernel line.
Something like:
kernel /boot/vmlinuz26 root=/dev/sda1 ro elevator=deadline
You can also edit this on the fly by hitting 'e' during GRUB's timeout at boot.
I/O schedulers deal quite directly with your hdd, and are quick and easy to switch. Hence my suggestion to try them.
Offline
kernel /boot/vmlinuz26 root=/dev/sda1 ro elevator=deadline
Thanks, this worked.
The system got a lot more responsive during copying.
I haven't tried BFS yet.
Offline
@Misfit138
Would this help?
nice -n 19 ionice -c 3
It may take longer to copy the files but it should allow me to work and not grab all the resources, right?
Offline
Pages: 1