Re: [RFC] [Patch 7/8] statistics infrastructure - exploitation prerequisite



Andrew Morton wrote:
Martin Peschke <mp3@xxxxxxxxxx> wrote:
need sched_clock for latency statistics

sched_clock() probably isn't suitable for this application. It's a
scheduler thing and has a number of accuracy problems.

But I thought we discussed this last time around? Maybe not.

I have been too obsessed with the other issues to remember.

> Maybe you've considered sched_clock()'s drawbacks and you've decided
> they're all acceptable.

Admittedly, I didn't, but merely believed the comment above the function.

http://marc.theaimsgroup.com/?l=linux-kernel&m=114657675408686&w=2
sheds some light.

I would be happy to exploit an API that may result from that discussion.
I would plead for exporting such an API to modules. I don't see how
to implement statistics for latencies, otherwise.

Any other hints on how to replace my sched_clock() calls are welcome.
(I want to measure elapsed times in units that are understandable to
users without hardware manuals and calculator, such as milliseconds.)

Martin

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Add wakeup_with() before 7.0?
    ... >> I propose to add a new api for wakeup before 7.0. ... >> accept a wait channel and a flags argument. ... >> This allows wakeup callers to hint the scheduler about various ...
    (freebsd-arch)
  • Re: Win32_ScheduledJob
    ... >>When i am trying to list scheduled jobs via Win32_ScheduledJob ... >>should i use something else than WMI? ... > support to use these API, you need to write some COM Interop in your .NET ... > Wrapper Classes for the Windows Task Scheduler ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: [PATCH] net/rxrpc: Convert to kthread API.
    ... Andrew Morton wrote: ... API? ... Because it seems that a conversion would be straightforward, ... They delete all that code entirely and use workqueues instead. ...
    (Linux-Kernel)
  • Re: posix scheduler
    ... I'm confused about scheduling pthreads in RTP when using posix scheduler. ... and pthread_getconcurrencyAPI. ...
    (comp.os.vxworks)
  • Re: NetScheduleJobAdd
    ... > I am trying to use this api call to schedule an archiving program I ... I've heard very good reveiws of the task scheduler code here: ... [Microsoft Basic: 1976-2001, RIP] ...
    (microsoft.public.vb.winapi)