Re: [gentoo-user] IO scheduling

2007-07-31 Thread Steve Dommett

Aleksey V. Kunitskiy wrote:

Hi,

Is there any possibility to adjust IO scheduling priority ?
  
There's ionice which is part of sys-process/schedutils.  At least it's 
in v1.5.0.


ionice -c2 -p `pidof rtorrent`   will make IO very nice.
ionice -c3 -p `pidof rtorrent`   claims to wait until other IO is idle. 
Extremely nice, but probably not what you want for a network client like 
rtorrent.


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] IO scheduling

2007-07-31 Thread Daniel Pielmeier

Aleksey V. Kunitskiy schrieb:

Hi,

Is there any possibility to adjust IO scheduling priority ? I found that 
rtorrent eats a lot of IO resourses when calculating hash, and I can't ajust 
that by making its nice higher. Even on +19 it is blocker


Thanks



There is ionice. It is part of sys-process/schedutils which is in portage.

There is a manpage here http://linux.die.net/man/1/ionice as it is not 
included in schedutils.


You can also take alook at 
http://forums.gentoo.org/viewtopic-t-462230.html. It is a forum thread 
about ionice.


Just for your information:

Ionice is also part of the util-linux-ng-2.13 the replacement for 
util-linux which is in portage but currently without keywords.


The stable version 2.12r-r7 is the old util linux where ionice is not 
included.
So you have to use 2.13_rc2 which is util-linux-ng but there is always a 
reason why there are no keywords!


Regards,

Daniel
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] IO scheduling

2007-07-31 Thread Steve Dommett
I forgot to mention that I think you need to be using the CFQ 
scheduler.  Change ionice class doesn't seem to affect the deadline and 
anticipatory schedulers' behaviour.


Also I think I had an extra space in there after the -p.  Try:
ionice -c2 -p`pidof rtorrent`

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] IO scheduling

2007-07-31 Thread Aleksey V. Kunitskiy
On Tuesday 31 July 2007 23:58, Steve Dommett wrote:
 ionice -c2 -p `pidof rtorrent`   will make IO very nice.
 ionice -c3 -p `pidof rtorrent`   claims to wait until other IO is idle.
 Extremely nice, but probably not what you want for a network client like
 rtorrent.

Thanks Steve. I'll try it. But I can still accept other suggestions :)

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgpuytDUd5XLJ.pgp
Description: PGP signature


Re: [gentoo-user] IO scheduling

2007-07-31 Thread Aleksey V. Kunitskiy
On Wednesday 01 August 2007 00:03, Daniel Pielmeier wrote:
 There is ionice. It is part of sys-process/schedutils which is in portage.

 There is a manpage here http://linux.die.net/man/1/ionice as it is not
 included in schedutils.

 You can also take alook at
 http://forums.gentoo.org/viewtopic-t-462230.html. It is a forum thread
 about ionice.

 Just for your information:

 Ionice is also part of the util-linux-ng-2.13 the replacement for
 util-linux which is in portage but currently without keywords.

 The stable version 2.12r-r7 is the old util linux where ionice is not
 included.
 So you have to use 2.13_rc2 which is util-linux-ng but there is always a
 reason why there are no keywords!

Thank you all guys, I'll use it and see if cfq fully fits into my needs.

-- 
best regards,
Aleksey V. Kunitskiy
my public GPG/PGP key: http://www.alexey-kv.org.ua/pubkey.asc


pgp5TdJw6YGdz.pgp
Description: PGP signature