Re: [PATCH] ionice: Allow setting the none class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Karel Zak schrieb:
> On Sat, Jan 17, 2009 at 02:38:32AM +0100, Jakob Unterwurzacher wrote:
>> Allow users to set the "none" class on processes. Using the
>> none class has the distict advantage that the io priority
>> is inherited from the cpu nice level. Update the man page
>> to reflect the change.
> 
>  Applied with small change, thanks.
> 

Thanks for digging this out!

>> Don't print the priority (there is none / it is always 0)
>> on a class "none" process.
> 
>  This is not true. For example on my laptop:
> 
>    $ ionice
>    none: prio 4

Right, it may be set to something.
But it doesn't have any meaning - it's ignored by the scheduler.
(the scheduler does the  "io_priority = (cpu_nice + 20) / 5" thing, i
verified this in the kernel source:
http://tomoyo.sourceforge.jp/cgi-bin/lxr/source/block/cfq-iosched.c#L1579  )
IMO we shouldn't display it (we don't for the idle class either), but
this is really a cosmetic issue.


Best Regards,
Jakob
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux