public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Jan Stancek <jstancek@redhat.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] sched_rr_get_interval: run tests under SCHED_RR policy
Date: Mon, 6 Jun 2016 09:51:17 -0400 (EDT)	[thread overview]
Message-ID: <1897541276.3723702.1465221077297.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <20160606115941.GA20756@rei>



----- Original Message -----
> From: "Cyril Hrubis" <chrubis@suse.cz>
> To: "Jan Stancek" <jstancek@redhat.com>
> Cc: ltp@lists.linux.it
> Sent: Monday, 6 June, 2016 1:59:41 PM
> Subject: Re: [LTP] [PATCH] sched_rr_get_interval: run tests under SCHED_RR policy
> 
> Hi!
> > Man page says:
> >  The specified process should be running under the SCHED_RR
> >  scheduling policy.
> 
> There does not seem to be such limitation in POSIX at:
> 
> http://pubs.opengroup.org/onlinepubs/9699919799/
> 
> But they explain that the the time quantum returned by the call is only
> applicable for SCHED_RR in schedulling policies at:
> 
> http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_08_04_01
> 
> > sched_rr_get_interval_1-1 can rarely fail if run as
> > SCHED_OTHER, because time quantum calculated/returned by
> > get_rr_interval_fair() can change between two calls.
> > For example it depends on number of running tasks on runq.
> 
> So this is fine, acked.

Pushed.

Regards,
Jan

      reply	other threads:[~2016-06-06 13:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-03 13:16 [LTP] [PATCH] sched_rr_get_interval: run tests under SCHED_RR policy Jan Stancek
2016-06-06 11:59 ` Cyril Hrubis
2016-06-06 13:51   ` Jan Stancek [this message]

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=1897541276.3723702.1465221077297.JavaMail.zimbra@redhat.com \
    --to=jstancek@redhat.com \
    --cc=ltp@lists.linux.it \
    /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