All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Dmitry Adamushko <dmitry.adamushko@domain.hid>
Cc: xenomai@xenomai.org
Subject: [Xenomai-core] Re: [patch] memory barriers in intr.c :: xnintr_lock/unlock()
Date: Tue, 21 Nov 2006 12:28:44 +0100	[thread overview]
Message-ID: <4562E2EC.7060205@domain.hid> (raw)
In-Reply-To: <b647ffbd0611210132r3002191bj2cca5df3dcd5b861@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 1277 bytes --]

Dmitry Adamushko wrote:
>> Ok, I'm stopping further speculations here... Back to practice, so do we
>> go
>> > for smp_mb__before/after_atomic_* counterparts or live it as is? I
>> guess,
>> > those would be more optimal.
>> >
>>
>> As I said, I'm still not sure if we finally need it when we may use
>> per-cpu counters for efficiency reasons on the long-term. If this will
>> add code or - even more important - an interface (of the system layer)
>> that will soon be removed again...
> 
> 
> So could you reveal your vision of per-cpu counters in this scenario (or
> something in linux does use it under similar circumstances.. RCU?) At the
> first glance, it doesn't seem to be much better. Although, I haven't
> elaborated more thoroughly yet...

I was thinking about some SRCU-like mechanism with clear optimisation
focus on the reader-side. See this article for SRCU:

http://lwn.net/Articles/202847/

Having per-cpu counter would let SMP readers benefit - no need for
atomic ops then.

There is currently some discussion going on about refining the
implementation:

http://www.ussg.iu.edu/hypermail/linux/kernel/0611.2/0227.html

It looks to me that we are in the comfortable situation of being able to
avoid such extensions.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

  reply	other threads:[~2006-11-21 11:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-11 23:59 [Xenomai-core] [patch] memory barriers in intr.c :: xnintr_lock/unlock() Dmitry Adamushko
2006-11-17 18:40 ` [Xenomai-core] " Jan Kiszka
2006-11-19 10:55   ` Dmitry Adamushko
2006-11-20  9:13     ` Jan Kiszka
2006-11-20 20:09       ` Dmitry Adamushko
2006-11-20 23:40         ` Jan Kiszka
2006-11-21  9:32           ` Dmitry Adamushko
2006-11-21 11:28             ` Jan Kiszka [this message]
2006-12-06 23:03 ` Jan Kiszka
2006-12-08 17:54   ` Philippe Gerum

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=4562E2EC.7060205@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=dmitry.adamushko@domain.hid \
    --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.