linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE:  [patch] generic-pidhash-2.5.36-D4, BK-curr
@ 2002-09-20 13:12 Hanumanthu. H
  2002-09-20 13:09 ` Oleg Drokin
  2002-09-20 16:47 ` Ingo Molnar
  0 siblings, 2 replies; 22+ messages in thread
From: Hanumanthu. H @ 2002-09-20 13:12 UTC (permalink / raw)
  To: linux-kernel



On Fri, Sep 20, 2002 at 11:40:16AM +0200, Ingo Molnar wrote:
> > > +			if (cmpxchg(&map->page, NULL, page))
> > > +				free_page(page);
> > Note that this piece breaks compilation for every arch that does not
> > have cmpxchg implementation.
> > This is the case with x86 (with CONFIG_X86_CMPXCHG undefined, e.g.
i386),
> > ARM, CRIS, m68k, MIPS, MIPS64, PARISC, s390, SH, sparc32, UML (for
x86).
> we need a cmpxchg() function in the generic library, using a spinlock.

>But this is not safe for arches that provides SMP but does not provide
>cmpxchg in hadware, right?
>I mean it is only safe to use such spinlock-based function if
>all other places read and write this value via special functions that are
>also taking this spinlock.
>Do you think we can count on this?

> Bye,
   > Oleg

First of all, using bitmap is not that good as exposed in this
mailing list (I think some good guys at IBM already implememted
bitmap for pids as part of Linux scalability enhancements & I
remember they discussed pros & cons too) & atomic operations
are not that cheap anyway. However it is good to have something
better than the previous one.

~Hanu



^ permalink raw reply	[flat|nested] 22+ messages in thread
* RE:  [patch] generic-pidhash-2.5.36-D4, BK-curr
@ 2002-09-20 13:03 Hanumanthu. H
  0 siblings, 0 replies; 22+ messages in thread
From: Hanumanthu. H @ 2002-09-20 13:03 UTC (permalink / raw)
  To: linux-kernel; +Cc: jw

Let me first say thanks to jw schultz <jw@pegasys.ws>
who suggested this idea already (as a modification to
one of my earlier proposal). It is good that someone
finally did not wait till someone stands-up asks for it
(well, I did not wait, I was busy in doing my earning
work :-)).



^ permalink raw reply	[flat|nested] 22+ messages in thread
[parent not found: <Pine.LNX.4.44.0209182101150.27697-100000@localhost.localdomain>]

end of thread, other threads:[~2002-09-20 17:07 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-20 13:12 [patch] generic-pidhash-2.5.36-D4, BK-curr Hanumanthu. H
2002-09-20 13:09 ` Oleg Drokin
2002-09-20 16:47 ` Ingo Molnar
  -- strict thread matches above, loose matches on Subject: below --
2002-09-20 13:03 Hanumanthu. H
     [not found] <Pine.LNX.4.44.0209182101150.27697-100000@localhost.localdomain>
2002-09-19  2:54 ` Ingo Molnar
2002-09-19  6:10   ` Linus Torvalds
2002-09-19  9:25     ` Ingo Molnar
2002-09-19 10:59       ` William Lee Irwin III
2002-09-19 15:12         ` Linus Torvalds
2002-09-19 15:21           ` Ingo Molnar
2002-09-19 16:35           ` Andries Brouwer
2002-09-19 16:43             ` Linus Torvalds
2002-09-19 18:54               ` Miquel van Smoorenburg
2002-09-19 19:10               ` Kai Henningsen
2002-09-19 20:32                 ` Linus Torvalds
2002-09-19 22:29                   ` Miquel van Smoorenburg
2002-09-20  8:27   ` Oleg Drokin
2002-09-20  9:40     ` Ingo Molnar
2002-09-20 11:43       ` Oleg Drokin
2002-09-20 12:15         ` Russell King
2002-09-20 16:34         ` Ingo Molnar
2002-09-20 17:11       ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).