public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] IO scheduling
@ 2007-07-31 20:20 Aleksey V. Kunitskiy
  2007-07-31 20:58 ` Steve Dommett
  2007-07-31 21:03 ` Daniel Pielmeier
  0 siblings, 2 replies; 6+ messages in thread
From: Aleksey V. Kunitskiy @ 2007-07-31 20:20 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 337 bytes --]

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

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

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] IO scheduling
  2007-07-31 20:20 [gentoo-user] IO scheduling Aleksey V. Kunitskiy
@ 2007-07-31 20:58 ` Steve Dommett
  2007-07-31 21:05   ` Steve Dommett
  2007-07-31 21:11   ` Aleksey V. Kunitskiy
  2007-07-31 21:03 ` Daniel Pielmeier
  1 sibling, 2 replies; 6+ messages in thread
From: Steve Dommett @ 2007-07-31 20:58 UTC (permalink / raw
  To: gentoo-user

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.

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] IO scheduling
  2007-07-31 20:20 [gentoo-user] IO scheduling Aleksey V. Kunitskiy
  2007-07-31 20:58 ` Steve Dommett
@ 2007-07-31 21:03 ` Daniel Pielmeier
  2007-07-31 21:32   ` Aleksey V. Kunitskiy
  1 sibling, 1 reply; 6+ messages in thread
From: Daniel Pielmeier @ 2007-07-31 21:03 UTC (permalink / raw
  To: gentoo-user

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
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] IO scheduling
  2007-07-31 20:58 ` Steve Dommett
@ 2007-07-31 21:05   ` Steve Dommett
  2007-07-31 21:11   ` Aleksey V. Kunitskiy
  1 sibling, 0 replies; 6+ messages in thread
From: Steve Dommett @ 2007-07-31 21:05 UTC (permalink / raw
  To: gentoo-user

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`

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] IO scheduling
  2007-07-31 20:58 ` Steve Dommett
  2007-07-31 21:05   ` Steve Dommett
@ 2007-07-31 21:11   ` Aleksey V. Kunitskiy
  1 sibling, 0 replies; 6+ messages in thread
From: Aleksey V. Kunitskiy @ 2007-07-31 21:11 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 458 bytes --]

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

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] IO scheduling
  2007-07-31 21:03 ` Daniel Pielmeier
@ 2007-07-31 21:32   ` Aleksey V. Kunitskiy
  0 siblings, 0 replies; 6+ messages in thread
From: Aleksey V. Kunitskiy @ 2007-07-31 21:32 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 922 bytes --]

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

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-07-31 21:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-31 20:20 [gentoo-user] IO scheduling Aleksey V. Kunitskiy
2007-07-31 20:58 ` Steve Dommett
2007-07-31 21:05   ` Steve Dommett
2007-07-31 21:11   ` Aleksey V. Kunitskiy
2007-07-31 21:03 ` Daniel Pielmeier
2007-07-31 21:32   ` Aleksey V. Kunitskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox