Util-Linux package development
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: "Voelker, Bernhard" <bernhard.voelker@siemens-enterprise.com>
Cc: "util-linux@vger.kernel.org" <util-linux@vger.kernel.org>
Subject: Re: ionice: requires scheduling since 7ab08ba3e5e6f161b93ff2b3b7d5b18dc7b44510
Date: Fri, 22 Jul 2011 10:54:20 +0200	[thread overview]
Message-ID: <20110722085420.GP22568@nb.net.home> (raw)
In-Reply-To: <7856072A9D04C24B82DFE2B1112FE38A08FE2D3A66@MCHP058A.global-ad.net>

On Fri, Jul 22, 2011 at 10:09:57AM +0200, Voelker, Bernhard wrote:
> Since 7ab08ba3e5e6f161b93ff2b3b7d5b18dc7b44510, ionice requires a "scheduling".
> 
>   $ schedutils/ionice 123
>   ionice: scheduling for the COMMAND not specified
> 
> As `ionice` is the sister of `nice`, I question why a certain prio/class is needed.
> What's wrong with not passing a certain prio/class?

 Good point, I'll fix it.

> Second, doesn't this break existing scripts which rely on "123" being executed?

 It has never been supported:

         $ ionice 123
         none: prio 4
         ionice: ioprio_get failed: No such process

 Unfortunately, the 123 has been always interpreted as PID, not as
 COMMAND. The another bug is that without -p the ioprio_get() has been
 called two times, the "none: prio 4" is for PID=0 ;-)

 I'll improve the behavior:

  ionice                       : print the current I/O prio.
  ionice <COMMAND>             : exec command with default (best-effort) class
  ionice -p PID [...]          : return info about the PID(s)
  ionice -c CLASS COMMAND      : exec command with the class
  ionice -c CLASS -p PID [...] : modify PID(s) class

Comments?

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

  reply	other threads:[~2011-07-22  8:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-22  8:09 ionice: requires scheduling since 7ab08ba3e5e6f161b93ff2b3b7d5b18dc7b44510 Voelker, Bernhard
2011-07-22  8:54 ` Karel Zak [this message]
2011-07-22  8:57   ` Voelker, Bernhard
2011-07-22  9:43     ` Karel Zak
2011-07-22 10:21       ` Voelker, Bernhard
2011-07-22 10:57         ` Karel Zak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110722085420.GP22568@nb.net.home \
    --to=kzak@redhat.com \
    --cc=bernhard.voelker@siemens-enterprise.com \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox