Re: Variable timer tick rate?

From: David Schultz (das_at_FreeBSD.ORG)
Date: 10/18/03

  • Next message: Bruce Evans: "Re: Variable timer tick rate?"
    Date: Sat, 18 Oct 2003 14:17:33 -0700
    To: Nate Lawson <nate@root.org>
    
    

    On Sat, Oct 18, 2003, Nate Lawson wrote:
    > This is an interesting approach. If there are no upcoming timeouts,
    > decrease the tick rate. Of course, you have to amortize the cost of
    > resetting the timer over the period of no ticks.
    >
    > http://kerneltrap.org/node/view/1006

    For the last couple of years, Solaris has had a 'cyclic' system
    that automatically schedules the next clock interrupt to match the
    next timeout. This allows for arbitrarily high or low resolution
    timers. Even if we presently have subsystems that poll every
    tick, high-resolution timers would be a neat thing to have, and it
    should be possible to implement on all supported architectures
    except pre-PPro i386's that don't have TSCs.
    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"


  • Next message: Bruce Evans: "Re: Variable timer tick rate?"

    Relevant Pages

    • Re: posix-cpu-timers revamp
      ... Where "interesting tick" means "tick in which a process timer has ... The thread CPU timers track the thread CPU clocks, ... The process CPU timers track the process CPU clocks. ...
      (Linux-Kernel)
    • Re: posix-cpu-timers revamp
      ... Where "interesting tick" means "tick in which a process timer has ... and the versions in the task struct for the thread-only timers. ... place) any timers it might have will never expire. ...
      (Linux-Kernel)
    • Re: [Bugme-new] [Bug 9906] New: Weird hang with NPTL and SIGPROF.
      ... were to provide cumulative totals that are updated on every tick, ... When a cumulative total is on hand in the tick handler, ... clock accumulators and the timers' expiry times. ...
      (Linux-Kernel)
    • Re: [PATCH] Dynamic tick, version 050127-1
      ... I was wondering how Windows handles high res timers, ... how do they implement 1ms timers with a 10ms tick rate? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: How many timers?
      ... I currently have 25 different timers running for various purposes ... I don't think you actually consume system timer resources when you add VB timers to your app -- IIRC, all timers on a form are backed by a single system timer. ... the usual advice is to use one timer and dispatch different activities based on the current tick count. ...
      (microsoft.public.vb.general.discussion)