You are not logged in.

#26 2009-02-16 15:38:49

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: anyone noticed how copying GBs of data makes any linux distro crawl

Oh, seems like I missed this thread... I have this issue as well, my system goes to its knees, when for example I copy data from my internal jfs-formatted notebook harddrive to my xfs formatted external harddrive. The CPU load is really low, around 10% or so, so that doesn't seem to be the culprit, but it could happen to take several minutes to simply close an application!
I have a single core CPU with 1,7GHz

Last edited by Army (2009-02-16 15:39:25)

Offline

#27 2009-02-17 16:20:30

toxygen
Member
Registered: 2008-08-22
Posts: 713

Re: anyone noticed how copying GBs of data makes any linux distro crawl

jordi wrote:

Maybe you guys have the issue described here

wow thanks for the link.  i had read another guide related to swappiness, and they suggested setting at 10.  setting at 1 massively improved the performance on my core2quad.  it's amazing.  thanks! smile


"I know what you're thinking, 'cause right now I'm thinking the same thing. Actually, I've been thinking it ever since I got here:
Why oh why didn't I take the BLUE pill?"

Offline

#28 2009-02-17 16:40:13

aquila_deus
Member
From: Taipei
Registered: 2005-07-02
Posts: 348
Website

Re: anyone noticed how copying GBs of data makes any linux distro crawl

SyXbiT wrote:

I'm pretty sure it's cause of the Ingo Molnar's Completely Fair Scheduler. I don't remember this happening before, but can't be sure


If i copy 50GB of files from one SATA 7200rpm ext3 drive to another, all apps are excruciatingly slow (including firefox, nautilus etc..) until the copying is finished
whereas non-linux kernels (vista, OS X etc..) don't have this issues.
In vista, firefox seems pretty responsive even while copying.

has anyone else noticed?

Is your SATA disk recognized as ATA or SCSI in linux? Such a problem usually happens when ATA hd is in PIO mode, in which the DMA is disabled and disk access consumes a lot of CPU resource.

Generally XFS should offer the best performance when nobarrier option is used, but the choice of filesystem and IO scheduler should be unrelated to your problem I believe.

Offline

#29 2009-02-17 17:32:27

broch
Banned
From: L.A. California
Registered: 2006-11-13
Posts: 975

Re: anyone noticed how copying GBs of data makes any linux distro crawl

with xfs use deadline I/O scheduler
optimize formating flags:

for example
mkfs.xfs -l version=1,internal,size=128m -i size=2048 -d agcount=2 -f /dev/sdX

xfs likes big log files, does not lime barriers (which nowadays is not a problem)

I/O scheduler should be selected for specific fs and tasks.

there is interesting disscussion at lkml about constant (useless?) tweaking of I/O scheduler code vs file system

Offline

#30 2009-02-17 20:25:17

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: anyone noticed how copying GBs of data makes any linux distro crawl

A patch that may help: http://bugzilla.kernel.org/attachment.cgi?id=20172

That, the swappiness setting, and the cache pressure setting, should help. I found an older patch from Con Kolivas to autoregulate the swappiness setting, but it doesn't patch on recent kernels and I don't have the skills to make it work (or faith that it is still relevant).

Original message: http://lkml.org/lkml/2003/10/23/53
Fixed patch: http://lkml.org/lkml/2003/10/25/4

I also found this: http://ck.kolivas.org/patches/swap-pref … h-41.patch
With explanation here: http://lwn.net/Articles/153353/

Offline

#31 2009-02-17 21:05:46

broch
Banned
From: L.A. California
Registered: 2006-11-13
Posts: 975

Re: anyone noticed how copying GBs of data makes any linux distro crawl

Ranguvar wrote:

A patch that may help: http://bugzilla.kernel.org/attachment.cgi?id=20172

That, the swappiness setting, and the cache pressure setting, should help. I found an older patch from Con Kolivas to autoregulate the swappiness setting, but it doesn't patch on recent kernels and I don't have the skills to make it work (or faith that it is still relevant).

Original message: http://lkml.org/lkml/2003/10/23/53
Fixed patch: http://lkml.org/lkml/2003/10/25/4

I also found this: http://ck.kolivas.org/patches/swap-pref … h-41.patch
With explanation here: http://lwn.net/Articles/153353/

taken from the patch refernce page ( http://bugzilla.kernel.org/show_bug.cgi?id=12309 ):

Does not seem to fix the latency problem though.

Offline

#32 2009-02-17 21:32:50

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: anyone noticed how copying GBs of data makes any linux distro crawl

Yes. It does mitigate the damage, though.

http://bugzilla.kernel.org/show_bug.cgi?id=12309#c166

Offline

#33 2009-03-05 15:04:07

enito
Member
Registered: 2009-02-17
Posts: 50

Re: anyone noticed how copying GBs of data makes any linux distro crawl

Hi, any tip for fix this? i move from a sata to another using mc , and the machine turn really slow....any more tips is really welcomed..

Offline

#34 2009-04-18 08:09:22

Rehto
Member
From: Finland
Registered: 2007-04-06
Posts: 41

Re: anyone noticed how copying GBs of data makes any linux distro crawl

I already said this in another thread but I'll say it again in this one wink
I managed to get decent performance with the anticipatory scheduler
(used as default in kernel <=2.6.18 - enable it by 'echo anticipatory  > /sys/block/$devicename/queue/scheduler'
as root and add 'elevator=as' to your menu.lst) and adding noatime to fstab...

Last edited by Rehto (2009-04-18 08:18:50)

Offline

#35 2009-04-18 11:00:49

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: anyone noticed how copying GBs of data makes any linux distro crawl

Rehto wrote:

I already said this in another thread but I'll say it again in this one wink
I managed to get decent performance with the anticipatory scheduler
(used as default in kernel <=2.6.18 - enable it by 'echo anticipatory  > /sys/block/$devicename/queue/scheduler'
as root and add 'elevator=as' to your menu.lst) and adding noatime to fstab...

Thanks, I will definitely try that out, and by <=2.6.18 do you mean >=2.6.18?

Offline

#36 2009-04-18 11:26:04

Rehto
Member
From: Finland
Registered: 2007-04-06
Posts: 41

Re: anyone noticed how copying GBs of data makes any linux distro crawl

I meant 2.6.18 and older kernels smile

Offline

#37 2009-04-18 11:43:04

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: anyone noticed how copying GBs of data makes any linux distro crawl

I have .19 and it does say anticipatory in the scheduler file.
EDIT:
$ cat scheduler
noop anticipatory deadline [cfq]

Last edited by Procyon (2009-04-18 11:44:08)

Offline

#38 2009-05-21 20:57:55

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: anyone noticed how copying GBs of data makes any linux distro crawl

The first few words there are schedulers you _can_ use. The one in brackets is the one you _are_ using.

Offline

#39 2009-05-22 14:26:19

smarcher
Member
From: Calcutta
Registered: 2003-12-12
Posts: 42
Website

Re: anyone noticed how copying GBs of data makes any linux distro crawl

I haven't notice this much on Arch, but at work I have Ubuntu 9.04 ext4, the comp almost slows down even while copying from one directory to another on the same hard disk. Seems to be more pronounced in ext4.

Offline

#40 2009-08-07 01:57:54

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: anyone noticed how copying GBs of data makes any linux distro crawl

A patch _some_ are saying helps, should apply to 2.6.31-rc5 and possibly lower. If anyone wants to try..? I cannot right now.

http://bugzilla.kernel.org/attachment.cgi?id=22180

Offline

#41 2009-08-07 09:49:37

xstaticxgpx
Member
Registered: 2008-10-22
Posts: 48

Re: anyone noticed how copying GBs of data makes any linux distro crawl

Ranguvar wrote:

A patch _some_ are saying helps, should apply to 2.6.31-rc5 and possibly lower. If anyone wants to try..? I cannot right now.

http://bugzilla.kernel.org/attachment.cgi?id=22180

I applied the patch to -rc5 and booted up with cfq and tried

dd if=/dev/zero of=/tmp/test bs=1M count=1M

and it was just as bad and definitely seemed worse than my previous straight deadline setup.
I use ext4 on all my desktop HDD's

Offline

#42 2009-08-07 11:04:34

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: anyone noticed how copying GBs of data makes any linux distro crawl

I have seen somewhere (can't remember where now) that for people with sata HDs the deadline scheduler would help a bit, that's what I am using now and I don't see my pc crawling to a halt but it is possible to notice a certain slowdown.

I'm running with 4G ram, no swap an no extra patches.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#43 2009-08-07 19:11:33

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,605
Website

Re: anyone noticed how copying GBs of data makes any linux distro crawl

http://bbs.archlinux.org/viewtopic.php?id=71131  <--- another thread describing this problem

Last edited by graysky (2009-08-07 19:43:48)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#44 2009-08-07 19:22:37

Zariel
Member
Registered: 2008-10-07
Posts: 446

Re: anyone noticed how copying GBs of data makes any linux distro crawl

Im using zen patch set and CFQ and dont have this problem anymore (or as bad as it was)

Offline

#45 2009-09-03 12:04:23

Beini
Member
From: Finland
Registered: 2007-06-06
Posts: 78

Re: anyone noticed how copying GBs of data makes any linux distro crawl

I'm also affected by this, and I now really had a chance to test some changes smile

I started doing a partition conversion on a 500gb partition with convertfs and it pretty much froze the system and it took like 2 hours just issue these two things (the conversion is still going while I'm writing this so at least the desktop is usable now):

1 . Change to deadline scheduler

echo deadline > /sys/block/sda/queue/scheduler

echo deadline > /sys/block/sdb/queue/scheduler

2. Start ioReniceD ( http://bbs.archlinux.org/viewtopic.php?id=73359 )

The difference is huge. From unusable to slight lagginess

EDIT: Oops, I'm not sure does ioreniced require cfq. But I actually started it before changing the scheduler

Last edited by Beini (2009-09-03 12:07:11)


archlinux x86_64 user || My PKGBUILDs

Offline

#46 2009-09-03 16:36:42

Sophotect
Member
From: Hyperbolic excess
Registered: 2007-03-25
Posts: 30

Re: anyone noticed how copying GBs of data makes any linux distro crawl

Offline

#47 2009-09-03 17:08:40

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: anyone noticed how copying GBs of data makes any linux distro crawl

This is a CPU scheduler though, does it really fix the I/O problems ?

I seem to remember Con was also working on I/O interactivity at some point, but I was not yet able to find back any materials.

Edit : he is reporting himself the very same problem in http://ck.kolivas.org/german_linux_maga … erview.txt :

Disk I/O is a disaster for the desktop. Most other hardware gets faster
exponentially, yet hard disks are still based on a 50 year old design and are
only getting faster and fatter at a linear rate. This means they are becoming
_relatively_ slower and slower. Anything we do that can avoid and minimise
disk I/O will help. Write a very large file to (one) disk and see what else
you can do on your desktop while this is going on.

Last edited by shining (2009-09-03 17:16:54)


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#48 2009-09-03 22:59:30

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: anyone noticed how copying GBs of data makes any linux distro crawl

shining wrote:

This is a CPU scheduler though, does it really fix the I/O problems ?

I seem to remember Con was also working on I/O interactivity at some point, but I was not yet able to find back any materials.

Edit : he is reporting himself the very same problem in http://ck.kolivas.org/german_linux_maga … erview.txt :

Disk I/O is a disaster for the desktop. Most other hardware gets faster
exponentially, yet hard disks are still based on a 50 year old design and are
only getting faster and fatter at a linear rate. This means they are becoming
_relatively_ slower and slower. Anything we do that can avoid and minimise
disk I/O will help. Write a very large file to (one) disk and see what else
you can do on your desktop while this is going on.

It's an IO scheduler, not a CPU scheduler.


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

#49 2009-09-03 23:34:29

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: anyone noticed how copying GBs of data makes any linux distro crawl

Hell yeah!! Can't wait to try this out.

And Zariel, the Zen patchset includes the patch I mentioned actually wink

Offline

#50 2009-09-04 05:59:51

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: anyone noticed how copying GBs of data makes any linux distro crawl

ngoonee wrote:
shining wrote:

This is a CPU scheduler though, does it really fix the I/O problems ?

I seem to remember Con was also working on I/O interactivity at some point, but I was not yet able to find back any materials.

Edit : he is reporting himself the very same problem in http://ck.kolivas.org/german_linux_maga … erview.txt :

Disk I/O is a disaster for the desktop. Most other hardware gets faster
exponentially, yet hard disks are still based on a 50 year old design and are
only getting faster and fatter at a linear rate. This means they are becoming
_relatively_ slower and slower. Anything we do that can avoid and minimise
disk I/O will help. Write a very large file to (one) disk and see what else
you can do on your desktop while this is going on.

It's an IO scheduler, not a CPU scheduler.

How can you be so confident in writing non-sense ?


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

Board footer

Powered by FluxBB