From: Jan Kiszka <jan.kiszka@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] [PATCH] Use tsc for implementation of clock_gettime.
Date: Thu, 17 May 2007 15:00:39 +0200 [thread overview]
Message-ID: <464C51F7.3000407@domain.hid> (raw)
In-Reply-To: <17996.20586.564091.503622@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1404 bytes --]
Gilles Chanteperdrix wrote:
> Jan Kiszka wrote:
> > Gilles Chanteperdrix wrote:
> > > Hi,
> > >
> > > here comes, for review, a patch which reduces the overhead of
> > > clock_gettime by directly reading the tsc in user-space for
> > > architectures that support it.
> >
> > Highly welcome. But I have one concern: How and when do you propagate
> > wallclock_offset changes to user space?
>
> Since clock_settime is not implemented, never, but if clock_settime was
> implemented, clock_settime would re-issue the __xn_sys_info syscall.
This excludes automatic clock adjustment, something I'm convinced we
will have to provide in the future.
>
> >
> > I think we need some vsyscall-alike approach for this, some read-only
> > page that is mapped into every RT process, containing things like a
> > regularly updated offset (seqlock fashioned) or other read-only
> > information (shadow mode? cpu id?).
>
> As I said yesterday, having a page mapped at a different address in
> kernel-space and user-space is not an option on ARM, because each
> mapping of this page would have a separated cache.
>
Hmm, what about the kernel writing directly to the (current) user
address? We then only need to keep track of the per-mm address and have
not fixed kernel equivalent. At least on arm, other archs may handle
this differently at compile time.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]
next prev parent reply other threads:[~2007-05-17 13:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-17 11:29 [Xenomai-core] [PATCH] Use tsc for implementation of clock_gettime Gilles Chanteperdrix
2007-05-17 12:43 ` Jan Kiszka
2007-05-17 12:54 ` Gilles Chanteperdrix
2007-05-17 13:00 ` Jan Kiszka [this message]
2007-05-17 13:10 ` Gilles Chanteperdrix
2007-05-17 13:31 ` Jan Kiszka
2007-05-17 15:21 ` Gilles Chanteperdrix
2007-05-17 15:56 ` Gilles Chanteperdrix
2007-05-18 5:52 ` Jan Kiszka
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=464C51F7.3000407@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=gilles.chanteperdrix@xenomai.org \
--cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.