mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Al Boldi <a1426z@gawab.com>
To: William Lee Irwin III <wli@holomorphy.com>
Cc: linux-kernel@vger.kernel.org, ck@vds.kolivas.org
Subject: Re: [ck] [REPORT] 2.6.21.1 vs 2.6.21-sd046 vs 2.6.21-cfs-v6
Date: Thu, 3 May 2007 11:01:14 +0300	[thread overview]
Message-ID: <200705031101.14600.a1426z@gawab.com> (raw)
In-Reply-To: <20070503072323.GD19966@holomorphy.com>

William Lee Irwin III wrote:
> On Thu, May 03, 2007 at 09:42:51AM +0300, Al Boldi wrote:
> >         sched_rr_get_interval(0, &ts);
> >         printf("pid %d, prio %3d, interval of %d nsec\n", getpid(),
> > getpriority(PRIO_PROCESS, 0), ts.tv_nsec);
>
> Oh dear. What are you trying to figure out from the task's timeslice?

chew.c is general purpose.  It's not specific to cfs.

> That's not even meaningful in cfs.
>
> On Thu, May 03, 2007 at 09:42:51AM +0300, Al Boldi wrote:
> >         start = last = stamp();
> >         while(1) {
> >                 cur = stamp();
> >                 delta = cur-last;
> >                 if (delta > thresh_ticks) {
> > 			act = last - start;
> >                         printf("pid %d, prio %3d, out for %4llu ms, ran
> > for %4llu ms, load %3llu%\n" , getpid(), getpriority(PRIO_PROCESS, 0),
> > delta/1000, act/1000,(act*100)/(cur-start)); start = cur = stamp();
> >                 }
> >                 last = cur;
> >         }
> >
> >         return 0;
> > }
>
> This is looking for scheduling latencies, which are necessarily O(tasks).

This exposes the actual proc latency/waittime and runtime and cpu load 
irrespective of being O(tasks) or not.

> This is not the way to do it.

You'll need to boot into /bin/sh and run two or more chew.c's to see any 
reasonable results.

Then tell me whether this is the way to do it or not.


Thanks!

--
Al


  reply	other threads:[~2007-05-03  7:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-02 23:11 Al Boldi
2007-05-03  0:49 ` William Lee Irwin III
2007-05-03  3:51   ` Al Boldi
2007-05-03  4:35     ` William Lee Irwin III
2007-05-03  6:42       ` Al Boldi
2007-05-03  7:23         ` William Lee Irwin III
2007-05-03  8:01           ` Al Boldi [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-04-30  8:05 Michael Gerdau
2007-05-02 12:11 ` [ck] " Con Kolivas

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=200705031101.14600.a1426z@gawab.com \
    --to=a1426z@gawab.com \
    --cc=ck@vds.kolivas.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wli@holomorphy.com \
    /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

all inboxes | Powered by JetHome®