
Code: Select all
for i in /sys/block/sd?/queue/iosched/quantum ; do echo 1 > "$i" ; doneWill now use it, but looks good so far.quantum:
The amount of requests we select for dispatch when the driver asks for work to do and the current pending list is empty.
Default is 4.

lagalopex wrote:I tried the BFS scheduler, but my usb system would afterwards not recognize any new devices.
So I have to wait a bit longer...
In the lkml thread they mentioned:Code: Select all
for i in /sys/block/sd?/queue/iosched/quantum ; do echo 1 > "$i" ; doneWill now use it, but looks good so far.quantum:
The amount of requests we select for dispatch when the driver asks for work to do and the current pending list is empty.
Default is 4.

2) if you have buggy ncq-implementation in your drive-firmware (Seagate - I'm looking at youfor i in /sys/block/sd*; do
/bin/echo "bfq" > $i/queue/scheduler
done
also enable:for i in /sys/block/sd*; do
/bin/echo "bfq" > $i/queue/scheduler
/bin/echo "0" > $i/queue/iosched/slice_idle # default: 6, 0 fixes low throughput with drives which have a buggy ncq implementation
done
(you can also set it to "1" - 0 doesn't work)for i in /sys/block/sd*; do
/bin/echo "2" > $i/device/queue_depth
done
Code: Select all
PORTAGE_NICENESS=19
PORTAGE_IONICE_COMMAND="ionice -c 3 -p \${PID}"for i in `pidof kjournald` ; do ionice -c3 -p $i ; done
for i in `pidof kjournald2` ; do ionice -c3 -p $i ; done
for i in `pidof pdflush` ; do renice 10 $i ; done
for i in `pidof kcryptd` ; do ionice -c1 -p $i ; done
Code: Select all
for i in `pidof X` ; do renice -10 $i ; done
for i in `pidof kwin` ; do renice -10 $i ; done
those are more than 1 problem,mamunata wrote:I follow this topic for a while, because I have a laptop with Turion64 CPU and 64bit gentoo on it, and I/O performance is terrible - system load increases to 10 or even 15-20 on heavy disk usages and system is completely unusable.
I've been impressed that there's different "tricks" that decrease the problem and lot of them are for SATA (sd*) hard disks (with or without NCQ), but my laptop is with IDE hard disk and problem is fully present.
So am I missing something or problem is independent of hard disk type and is inherent for all types HDD?
so the problem is beyond AMD64 (64bits) version ? maybe some title change so... As is it seems to refer to the arch AMD64 and not the cpu ?sidamos wrote:Additional info: I am running AMD64X2 CPU with 32 bit Gentoo.sidamos wrote:I am having the same problem since 2.6.30 and I also do not have SATA. 2.6.29 works better. But this is not fixed in 2.6.31, as far as I understood.
Well, on going from 2.6.28 to 2.6.30, I've been experiencing the total opposite!krinn wrote:so the problem is beyond AMD64 (64bits) version ? maybe some title change so... As is it seems to refer to the arch AMD64 and not the cpu ?sidamos wrote:Additional info: I am running AMD64X2 CPU with 32 bit Gentoo.sidamos wrote:I am having the same problem since 2.6.30 and I also do not have SATA. 2.6.29 works better. But this is not fixed in 2.6.31, as far as I understood.
Where is the best place to have this run automatically at start-up? The window manager starts too late to renice it from a init.d script and since it requires root privileges can't easily be done after login.kernelOfTruth wrote:4) renice X or some of X
Code: Select all
for i in `pidof X` ; do renice -10 $i ; done for i in `pidof kwin` ; do renice -10 $i ; done

++lagalopex wrote:Anybody else running bfs?
I am currently running a 2.6.31.1 with the bfs-240 patch applied.
It now works for me and is pretty responsive as far as I can tell


Does it also solve the dd if=/dev/zero of=dump problem where the system locks up as soon as RAM is full?Lepaca Kliffoth wrote:BFS solves the problem completely for me. It doesn't make it better; under the kind of loads that used to still create problems even with the few kernel versions that were better, the mouse jerkiness and frame skipping in videos simply doesn't appear.
Things that used to be problematic and now are fine:
- copy stuff over SMB
- check out linux git sources
- paludis -s
It is now impossible for me to reproduce the problem.
I'm using the latest zen-sources.
See www.zen-kernel.org and this thread.Where can I get zen-sources? zen-sources.org seems to be down.
Can you post what options did you compile kernel with? I'm running zen-kernel-2.6.31-r4 and performance is not much better.Sujao wrote:... no can't be true ....
.....
...
....
...
Oh my God. It actually seems to work. I tried out the things that were annoying me for almost 2 years now and my system remained responsive. Usually when I write a big (>5GB) file with mmg to harddrive or copy them click response time in most applications is between 10-30s. mmg window doesn't get refreshed until its finished after several minutes and videos don't play proberly. Now I can surf easily with firefox, even play a movie with no visible delay and the mmg window is updating as expected. I'll report back if something changes....I still can't really believe that this is true.
EDIT: It's a shame the vanilla kernel doesn't accomplish this. Thanks to the ZEND Guys! I love you right now!
EDIT2: Moving a 8GB file still increases the response time of applications. For example smplayer open file dialog reacts after 3-4s but this is acceptable. Still much better then 30s. And video still plays smoothly.

you need to select BFS (as a CPU scheduler instead of the stock-scheduler CFS) and select BFQ for the i/o-schedulermamunata wrote:Can you post what options did you compile kernel with? I'm running zen-kernel-2.6.31-r4 and performance is not much better.Sujao wrote:... no can't be true ....
.....
...
....
...
Oh my God. It actually seems to work. I tried out the things that were annoying me for almost 2 years now and my system remained responsive. Usually when I write a big (>5GB) file with mmg to harddrive or copy them click response time in most applications is between 10-30s. mmg window doesn't get refreshed until its finished after several minutes and videos don't play proberly. Now I can surf easily with firefox, even play a movie with no visible delay and the mmg window is updating as expected. I'll report back if something changes....I still can't really believe that this is true.
EDIT: It's a shame the vanilla kernel doesn't accomplish this. Thanks to the ZEND Guys! I love you right now!
EDIT2: Moving a 8GB file still increases the response time of applications. For example smplayer open file dialog reacts after 3-4s but this is acceptable. Still much better then 30s. And video still plays smoothly.
I've noticed (but not 100% sure) that if I leave my PC alone, and not working on it for a couple of hours, when I get back the PC is very slow.
Code: Select all
# CONFIG_CPU_CFS is not set
CONFIG_CPU_BFS=y
CONFIG_CPU_BFS_AUTOISO=y
# CONFIG_BFS_CUSTOM_RR is not setCode: Select all
for i in /sys/block/sd*; do
/bin/echo "bfq" > $i/queue/scheduler
doneCode: Select all
for i in /sys/block/sd*; do
/bin/echo "256" > $i/queue/read_ahead_kb
/bin/echo "192" > $i/queue/max_sectors_kb
/bin/echo "1" > $i/queue/rq_affinity
/bin/echo "0" > $i/queue/nomerges
doneCode: Select all
for i in /sys/block/sd*; do
/bin/echo "bfq" > $i/queue/scheduler
doneCode: Select all
# cat /sys/block/sda/queue/scheduler
noop fifo anticipatory deadline cfq vr [bfq]I think this is not caused by a faulty IO scheduler. I have the same behaviour. I think the RAM is simply cleaned of not accessed desktop applications and when you come back it needs to reread libraries from the harddrive. Can anyone confirm that?mamunata wrote:I've noticed (but not 100% sure) that if I leave my PC alone, and not working on it for a couple of hours, when I get back the PC is very slow.