You are not logged in.
Hi I'm not sure if this is the right forum for this kind of post, sorry if it isn't. Anyways I just switched from Ubuntu 10.10 to Arch Linux and I'm loving everything about it except for this one problem. Which is that my computer becomes very unresponsive when im copying large amounts of files from one disk to another. I've got a pretty powerful system an AMD phenom x6 1055t, 890 motherboard 4gb ram, 1.5 tb hdd. Previously before switching to Arch Linux, I backed up my data on Ubuntu and I was doing a lot of disk transfers from an NTFS disk to an ext4 partition and I did not experience any slow down/freezes/unreponsiveness on my system even while doing large file transfers.
I was researching this problem and found serverl other posts about this problem,
https://bbs.archlinux.org/viewtopic.php?id=71131
https://bbs.archlinux.org/viewtopic.php?id=93960
https://bbs.archlinux.org/viewtopic.php?id=70525
one of the posts suggested to change swappiness, and I did change it to 0, my results from cat /proc/sys/vm/swappiness is 0, but still the problem persists . Another posts suggested that it could be due to the kernel, my kernel atm is 2.6.36-ARCH #1 SMP PREEMPT with no kernel customizations, i'm still somewhat of a linux newbie having just switched from 20 years of using windows to linux, and have only used linux for about 2 weeks, ive tried compiling kernels before but its always been hit or miss, so would only like to try recompiling kernel only as a last resort.
What I dont understand is why my ubuntu system did not suffer this syptom but Arch Linux does, I'm not trying to flame arch linux, only trying to figure out the cause so I can fix it, as I def want to stay with the "Arch Way" . My ubuntu 10.10 system was using the vanilla kernel what chipped with the live cd, it was 2.6.35 if I remember correctly. File transfers was done through nautillus, on my arch system i've tried all kinds of file managers (thunar, pcmanfm) also tried with cp and still the same slugginess, apps would take like 5-10 secs to load, browser becomes really slow to load any pages.
Please if someone can offer some advice, I would be really grateful, thx
Offline
You're on a 64-bit system, your Ubuntu install was most likely on a 32-bit.
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
Sorry forgot to mention my Ubuntu system was 64 bit.
Offline
Try:
ionice -c3 schedtool -D -e cp /src/blah /dest/blah
Background info:
man ionice
man schedtool
Offline
Update
tried using "ionice -c3 cp" also no effect, anyone any suggestions?
Offline
You could try using the -ck kernel from AUR: http://aur.archlinux.org/packages.php?ID=32877
It includes BFQ patches also, which might help with your problem.
flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)
Offline
Is it possible to yaourt -S kernel26-ck, do I need to modify the pkgbuild?
Offline
Maybe it's 12309 which is "Fix Hard"?
Offline
Is it possible to yaourt -S kernel26-ck, do I need to modify the pkgbuild?
I don't know. I would read through the pkgbuild first. IIRC it's quite well commented.
Last edited by dyscoria (2011-01-12 15:36:22)
flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)
Offline
You could try using the -ck kernel from AUR: http://aur.archlinux.org/packages.php?ID=32877
It includes BFQ patches also, which might help with your problem.
Sadly it won't. But zen-kernel in AUR includes the bfq io scheduler which definitely could help.
UPDATE: lol I'm stupid. Disregard that.
Last edited by SanskritFritz (2011-01-12 15:48:07)
zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)
Offline
Just a li'l question - what are the relative copy-times using arch and ubuntu?
If arch is much faster copying - then there's your reason ...
Maybe 'nice' would help?
Offline
Hmm well I upgraded kernel to 2.6.37 using yaourt kernel26-ck works fine as far as i can tell, but problem still persists
Offline
My ubuntu system was transferring from disk to disk at an average of 20 MB/s. For Arch Linux I'm not sure as thunar or pcmanfm does not have a speed indicator, also I have not recompiled cp with the -g option. When i get back from school today I will try to do more testing.
Offline
Downloaded iotop and it states that I'm averaging 80-100 MB/s write throghput, ive also noticed that the sluggishness is not so pronounced with the new 2.6.37 kernel, but still there is lagginess. Anything else to try guys? Oh yea also forgot to mention I'm using the BFQ IO scheduler.
Offline
On 64-bit, it's been a huge problem for ages apparently.
If Ubuntu works, then I'd use the Ubuntu kernel. See e.g. maverick kernel.
Offline
Well yea the easy solution would be to just switch back to Ubuntu of course I'd still like to find out the underlying cause tho, in addition I might not always be able to change to Ubuntu, perhaps maybe at work. Been doing a lot of reading on this issue, and apparently its still ongoing, anyways thanks for all the help guys.
Offline
On 64-bit, it's been a huge problem for ages apparently.
If Ubuntu works, then I'd use the Ubuntu kernel. See e.g. maverick kernel.
Can you please create PKGBUILD for it? thanks
"Am I not good enough for you?"
Offline
Rather than making a PKG for the maverick kernel, I'd rather see vimdiff on the ARCH .config and then Ubunutu .config if it is related to the kernel's config. I'm running kernel26-ck on my box and I don't see a freeze anymore for what it's worth.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
I'm experiencing the same issue on a 32-bit system. Kernel is 2.6.38.
Even when copying from the hard disk (ext4) to an extremely slow USB stick (<4 mb/s write, FAT), the system becomes almost completely unresponsive. At the same time CPU load, RAM usage and disk activity are all very low.
The same goes for duplicating a file on a USB hard disk (ext4) and for copying files to it from the internal disk (ext4).
ionice slighty improves the situation, but the system can still be called unusable.
EDIT: Using the "deadline" scheduler makes the system a bit more responsive.
EDIT: After additionally adding the two lines under "swappiness", the system seems to be as responsive while copying as one would expect from its (rather low) system specs. Everything still gets slower while copying but the system remains usable.
Last edited by Markus00000 (2011-07-26 11:42:41)
Offline
I can confirm that with the deadline scheduler the system is more responsive. The problem still persists, though. But it's much more comfortable to work now while copying.
EDIT: have you guys set
vm.dirty_writeback_centisecs = 1500
in /etc/sysctl.conf?
I set mine to 500 and now I have no problems (yet?).
EDIT: Mhh now firefox froze again for about one minute when copying a few GB of ogg files to a vfat android phone via USB.
Last edited by akurei (2011-07-26 14:47:35)
Offline
I have this problem also with Arch 64, I figured the slowdown was due to using the testing builds of KDE 4.7, but I guess not. I'll try these suggestions.
Offline
There is another 20+ reply thread for a similar/same issue. https://bbs.archlinux.org/viewtopic.php?id=112846
Check it out and see if any solutions have been offered. I am not merging the thread simply because it would get too confusing with the replies intertwined between threads.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
@Inxsible Nope, no other solutions.
It is not HW dependant, either.
Common issue with 64-bit systems, no-one has ever been able to actually track down the cause I believe. Not sure if -bfs will help you (I think it didn't for me, but I still use it though, and I don't have those sorts of loads anymore).
https://bbs.archlinux.org/viewtopic.php … 60#p732360
Last edited by akurei (2011-07-26 16:38:32)
Offline
This is a kernel bug and ubuntu is also affected, maybe they deployed some kind of workaround but this problem has been going on for age.
https://bugzilla.kernel.org/show_bug.cgi?id=12309
https://bugzilla.kernel.org/show_bug.cgi?id=10549
https://bugs.launchpad.net/ubuntu/+sour … bug/131094
Ah, good taste! What a dreadful thing! Taste is the enemy of creativeness.
Picasso
Perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away.
Saint Exupéry
Offline
Sorry, I posted in the wrong thread, so I will just link from my answer here.
Offline