You are not logged in.

#1 2009-02-24 05:21:40

f4hy
Member
From: Pittsburgh Pa
Registered: 2009-02-08
Posts: 55

Entire system slow when using the disk

I have found that my whole system grind and moves slowly doing anything that is super disk heavy. Tasks like running pacman -Syu and copying large files from one disk to another makes simple things like scrolling on a web page, audio play back or even moving the mouse become very choppy or unresponsive until the disk activity is done. This should not be happening since those tasks should not need the disk and should be in memory.

I have not had this issue with other distros so not sure what the cause is. Currently I am using XFS with defaults,noatime which is what I have used on the same hardware with Debian but did no have these issues. Any ideas on why this would be?

(as I type this the letters lag because I am backing up my drive...)

Offline

#2 2009-02-24 05:25:29

f4hy
Member
From: Pittsburgh Pa
Registered: 2009-02-08
Posts: 55

Re: Entire system slow when using the disk

Oh I forgot to mention, I am watching cpu and memory usage with top or htop and it remains low. CPU is <3%

Offline

#3 2009-02-24 05:35:48

sirocco
Member
Registered: 2008-03-10
Posts: 149

Re: Entire system slow when using the disk

Offline

#4 2009-02-24 05:45:40

f4hy
Member
From: Pittsburgh Pa
Registered: 2009-02-08
Posts: 55

Re: Entire system slow when using the disk

Thanks, but it looks like they never solved the issue on that thread either. :-(

Offline

#5 2009-02-24 07:21:03

sirocco
Member
Registered: 2008-03-10
Posts: 149

Re: Entire system slow when using the disk

Have you tried this?

Last edited by sirocco (2009-02-24 07:23:09)

Offline

#6 2009-02-24 07:26:26

f4hy
Member
From: Pittsburgh Pa
Registered: 2009-02-08
Posts: 55

Re: Entire system slow when using the disk

I know that is not the issue because monitoring swap use i have noticed that my swap space is never used. In fact half the time I run without an swap space at all. Tuning swappiness wont have any effect if swap space is not being used.

I gave the other thing a try, the vfs_cahce_pressure setting and it did not affect much either.

Offline

#7 2009-02-24 08:53:05

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: Entire system slow when using the disk

Didn't help for me, either.  Someone on the IRC channel suggested that I disable irqbalance if I was using it, and I tried that, but that also did not work.

Offline

#8 2009-02-24 17:09:08

xaiviax
Member
From: Michigan
Registered: 2008-11-04
Posts: 282

Re: Entire system slow when using the disk

Switching to deadline scheduler fixed this issue for me (as per the other thread)

Offline

#9 2009-02-24 20:01:11

f4hy
Member
From: Pittsburgh Pa
Registered: 2009-02-08
Posts: 55

Re: Entire system slow when using the disk

Thanks guys, but neither of those seem to be the case for me. I do not have irqbalance installed and I think I am using the deadline scheduler.

zcat /proc/config.gz | grep IOSCHED
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_AS=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
CONFIG_DEFAULT_IOSCHED="cfq"

I assume the DEADLINE=y means I have the deadline scheduler running. Why would this be a scheduler issue? Anyone have an article talking about this?

Offline

#10 2009-02-24 20:04:16

f4hy
Member
From: Pittsburgh Pa
Registered: 2009-02-08
Posts: 55

Re: Entire system slow when using the disk

In addition
$ cat /sys/block/sdb/queue/scheduler
noop anticipatory deadline [cfq]

Looks like deadline is there. This is frustrating. I think I will format and go back to Debian and check out what their scheduler settings are to compare.

Offline

#11 2009-02-24 21:01:16

dunc
Member
From: Glasgow, UK
Registered: 2007-06-18
Posts: 559

Re: Entire system slow when using the disk

f4hy wrote:

In addition
$ cat /sys/block/sdb/queue/scheduler
noop anticipatory deadline [cfq]

Looks like deadline is there. This is frustrating. I think I will format and go back to Debian and check out what their scheduler settings are to compare.

That lists the available schedulers, and the one with brackets is the one currently in use. So deadline is there, but you're using CFQ.

The excerpt from your kernel config shows the same thing: deadline has been built, but the default (and therefore the one in use if you haven't changed it manually) is CFQ.

So, to switch to deadline for /dev/sdb:

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

(As root, of course.)

Edit: If you find it works for you, you can make GRUB select it at boot time by adding it to the kernel line in /boot/grub/menu.lst:

kernel /boot/vmlinuz26 {... whatever else you have here ...} elevator=deadline

Last edited by dunc (2009-02-24 21:08:36)


0 Ok, 0:1

Offline

#12 2009-02-24 21:12:28

SLKDK
Member
Registered: 2008-08-11
Posts: 61

Re: Entire system slow when using the disk

I still have this problem.. Tried the swap thingy (although my swap never get used anyway), tried the deadline scheduler, no effect at all.

Offline

#13 2009-02-24 23:22:16

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

Re: Entire system slow when using the disk

There's a couple other, more drastic, measures I posted in that other thread (one is a kernel patch that hacks around a little of the problem but does not completely fix it).

Offline

#14 2009-02-25 02:54:17

cerbie
Member
Registered: 2008-03-16
Posts: 124

Re: Entire system slow when using the disk

Also, check and make sure it's not something silly, like not using DMA, or something like that, too. In case it's a FS/block device thing, if you're running a new disk (SATA w/ NCQ), see if making a big queue or making a small queue changes anything (there's an hdparm option for that).

I've not had such issues on Arch, but have on others, and yeah, it's just not fun to deal with. If you have another drive you can back up to, maybe try another FS? I don't think XFS is the problem in itself, but it could be a fix (note 'could'--there's always the risk that it's not).

Last edited by cerbie (2009-02-25 02:55:46)


"If the data structure can't be explained on a beer coaster, it's too complex." - Felix von Leitner

Offline

#15 2009-02-26 03:33:00

f4hy
Member
From: Pittsburgh Pa
Registered: 2009-02-08
Posts: 55

Re: Entire system slow when using the disk

I have now tried the deadline scheduler and it did not change anything.
I know it is not something wrong with my physical disk since this machine does not experience the issues when booted into other distributions. I do not know if arch is configured wrong to cause the problem, or the other distributions I have, have done something smart to fix it, but I am out of ideas.

The kernel patch might be worth trying but it seems ridiculous that arch would need a patch like that but other distros don't (unless they are doing patches like that.)

If anyone has and idea on how to better monitor to problem to find the cause let me know as that is what I would really like to see rather than shooting in the dark. Any ideas on things I should be looking for in logs to see what would cause this?

Offline

#16 2009-02-26 03:55:00

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

Re: Entire system slow when using the disk

@f4hy: I don't believe any other distro is using that patch. If you're _sure_ the problem doesn't happen with other distros, it's definitely a configuration problem somewhere. The only thing I can say is do normal troubleshooting steps. Does a fresh Arch install have the problem? Does it only happen when X is running? Are you using the same partition setup (check fstab in both distros)? Setting relatime or even noatime in your fstab might be a good idea.

Etc...

Offline

#17 2009-02-26 04:00:34

f4hy
Member
From: Pittsburgh Pa
Registered: 2009-02-08
Posts: 55

Re: Entire system slow when using the disk

Ya, noatime is set in all distros tried. It does NOT only happen when X is running as simple thing like opening a text editor emacs/nano/vi take many many seconds to a minute longer than normal when doing something disk heavy on one of the other virtual consoles, but start up instantly otherwise.
I guess I will try it on a completely fresh install of arch to see if it was something I did but only when I have time to do a full backup and wipe the partition. It seems from the other thread and one post here that I am not alone in this issue though.

Offline

#18 2009-02-26 05:25:42

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

Re: Entire system slow when using the disk

check
hdparm -i /dev/partition

see if highest UDMA set, not PIO

Offline

#19 2009-02-26 05:27:21

f4hy
Member
From: Pittsburgh Pa
Registered: 2009-02-08
Posts: 55

Re: Entire system slow when using the disk

Thanks. But udma6 is set, which is the highest displayed.

Offline

#20 2009-02-26 12:31:40

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

Re: Entire system slow when using the disk

I noticed this slowness when ktorrent was preallocating the whole torrent to disk... system becomes really laggy and slow to response. I'm thinking of doing a fresh install with the 2009.02 ISO and check if anything has changed for the better...

Offline

#21 2009-02-26 12:36:32

signor_rossi
Member
Registered: 2007-08-24
Posts: 257

Re: Entire system slow when using the disk

Rehto wrote:

I noticed this slowness when ktorrent was preallocating the whole torrent to disk... system becomes really laggy and slow to response. I'm thinking of doing a fresh install with the 2009.02 ISO and check if anything has changed for the better...

Maybe you should disable preallocation in ktorrent or better use qbittorrent, which works very well.

I am also not happy with the performance of my system during harddisk I/O, I am trying out relatime in fstab now (have to reboot).
EDIT: Seems slightly better with relatime.

Last edited by signor_rossi (2009-02-26 13:20:56)

Offline

#22 2009-04-05 10:43:40

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

Re: Entire system slow when using the disk

I'm trying out the deadline scheduler if it helps with this problem.
The problem usually raises its ugly head when moving large files
between partitions. I also enabled noatime in /etc/fstab so let's see...

Last edited by Rehto (2009-04-05 11:20:08)

Offline

#23 2009-04-05 12:51:13

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

Re: Entire system slow when using the disk

OK things are much better now I guess deadline + noatime did it smile

Offline

#24 2009-04-09 07:08:05

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

Re: Entire system slow when using the disk

OK I was clearly wrong when I said that the problem disappeared,
it's still there but now my system is not so laggy as before I can
actually use it now...

Offline

#25 2009-04-09 07:25:24

schuay
Package Maintainer (PM)
From: Austria
Registered: 2008-08-19
Posts: 564

Re: Entire system slow when using the disk

I can't add anything constructive here, but I can confirm this issue.. The system slows down when copying large files - same issue on several installs, all arch (haven't tested any others).

Offline

Board footer

Powered by FluxBB