mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: evan@coolrunningconcepts.com
To: linux-kernel@vger.kernel.org
Subject: Timer idea
Date: Tue, 15 Nov 2005 10:24:25 -0700	[thread overview]
Message-ID: <20051115102425.0iln2874xjoc4g84@coolrunningconcepts.com> (raw)

I was thinking about benchmarking, profiling, and various other applications
that might need frequent access to the current time.  Polling timers or
frequent timer signal delivery both seem like there would be a lot of overhead.
 I was thinking it would be nice if you could just read the time information
without making an OS call.

I figure the kernel keeps accurate records of current time information and the
values of various timers.  I then had the idea that one could have a /dev or
maybe a /proc entry that would allow you to mmap() the kernel records (read
only) and then you could read this information right from the kernel without
any overhead.

Comments?  Please CC me on replies.

             reply	other threads:[~2005-11-15 17:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-15 17:24 evan [this message]
2005-11-15 18:20 ` Kenichi Okuyama
2005-11-15 18:58 ` George Anzinger
2005-11-15 19:12   ` john stultz
2005-11-15 19:13 ` linux-os (Dick Johnson)
2005-11-15 19:34   ` George Anzinger
2005-11-15 20:20   ` Christopher Friesen
2005-11-15 21:11     ` linux-os (Dick Johnson)

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=20051115102425.0iln2874xjoc4g84@coolrunningconcepts.com \
    --to=evan@coolrunningconcepts.com \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®