From: Matthew Wilcox <Matthew.Wilcox@genedata.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Matthew Wilcox <Matthew.Wilcox@genedata.com>,
law@cygnus.com, grundler@cup.hp.com,
parisc-linux@thepuffingroup.com
Subject: Re: [parisc-linux] Anyone got a few moments?
Date: Mon, 28 Jun 1999 21:00:05 +0200 [thread overview]
Message-ID: <19990628210005.K30362@mencheca.ch.genedata.com> (raw)
In-Reply-To: <E10ygHD-0005V7-00@the-village.bc.nu>; from Alan Cox on Mon, Jun 28, 1999 at 07:37:05PM +0100
On Mon, Jun 28, 1999 at 07:37:05PM +0100, Alan Cox wrote:
> > > Yes. Major pain since the only useful atomic operations are load & clear
> > > word/double as you noted.
> >
> > and that's it. That's only 31 uses where xchg couldn't be replaced
> > with get_and_zero. I suspect most of these are using this mechanism to
> > walk a list without using a spinlock. The slab uses are debug code only
> > (so they aren't performance critical by any means). I bet most of these
> > uses could be removed without _too_ many problems. I wonder what Linus'
> > opinion is on this.
>
> The sparc only has swap byte with 0xFF. They also have to use a small spinlock
> for doing 32/64bit xchg ops. Thats ok. Xchg is only hopefully fast - since
> on most machines xchg is a bus locker or pushes to ram the difference will
> be minimal.
Okay. Do you think we stand a chance of pushing a new call past linux
-- get_and_zero(*ptr), as this will make most of the calls efficient
on PA-RISC? Or would a better idea be to check if the argument to be
swapped is zero; if it is use the special instructions; if not fall back
to a spinlock?
--
Matthew Wilcox <willy@bofh.ai>
"Windows and MacOS are products, contrived by engineers in the service of
specific companies. Unix, by contrast, is not so much a product as it is a
painstakingly compiled oral history of the hacker subculture." - N Stephenson
next prev parent reply other threads:[~1999-06-28 18:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-28 15:21 [parisc-linux] Anyone got a few moments? Matthew Wilcox
1999-06-28 17:09 ` Grant Grundler
1999-06-28 17:34 ` Matthew Wilcox
1999-06-28 17:47 ` Jeffrey A Law
1999-06-28 18:10 ` Matthew Wilcox
1999-06-28 18:37 ` Alan Cox
1999-06-28 19:00 ` Matthew Wilcox [this message]
1999-06-28 19:12 ` Alan Cox
1999-06-28 18:39 ` Alan Cox
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=19990628210005.K30362@mencheca.ch.genedata.com \
--to=matthew.wilcox@genedata.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=grundler@cup.hp.com \
--cc=law@cygnus.com \
--cc=parisc-linux@thepuffingroup.com \
/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.