linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* POSIX message queues
@ 2003-10-05  9:13 Krzysztof Benedyczak
  2003-10-05 10:11 ` Manfred Spraul
  2003-10-05 16:35 ` Ulrich Drepper
  0 siblings, 2 replies; 11+ messages in thread
From: Krzysztof Benedyczak @ 2003-10-05  9:13 UTC (permalink / raw)
  To: linux-kernel; +Cc: Manfred Spraul, pwaechtler, Michal Wronski

Hello

For quite a long time there are two implementations of posix mqueues
around. I think it is time to decide at least if both of them have
chances of beeing applied to official kernel. So I would
like to know if Peter Waechtler's implementations is considered superior
or there is possible some discussion and further work on our
implementation is worthwhile.

There are a lot of differencies but if the most important one is use of
ioctl vs syscalls it can be changed (in fact our implementation loong time
ago used syscalls).

In another words: is our implementation in the position
of NGPT or better? ;-)

Regards
Krzysiek

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: POSIX message queues
@ 2003-10-07  7:50 Peter Waechtler
  2003-10-07  8:11 ` Jakub Jelinek
  0 siblings, 1 reply; 11+ messages in thread
From: Peter Waechtler @ 2003-10-07  7:50 UTC (permalink / raw)
  To: Jakub Jelinek
  Cc: Jamie Lokier, Ulrich Drepper, Krzysztof Benedyczak, linux-kernel,
	Manfred Spraul, Michal Wronski

 
On Sunday, October 05, 2003, at 08:32PM, Jakub Jelinek <jakub@redhat.com> wrote:

>> Speaking of librt - I should not have to link in pthreads and the
>> run-time overhead associated with it (locking stdio etc.) just so I
>> can use shm_open().  Any chance of fixing this?
>
>That overhead is mostly gone in current glibcs (when using NPTL):
>a) e.g. locking is done unconditionally even when libpthread is not present
>   (it is just lock cmpxchgl, inlined)


a "lock cmpxchg" is > 100 cycles (according to a recent Linux Journal article
from Paul McKenney: 107ns on 700MHz PentiumIII)

But I think you will have benchmarked the alternatives?
BTW, what are they?

you suggested naming the syscall number symbols NR_mq_open instead of
NR_sys_mq_open. In the stub I want to overload some syscalls (e.g. mq_open)
but others not (e.g. mq_timedsend).

How to deal with that?


^ permalink raw reply	[flat|nested] 11+ messages in thread
* POSIX message queues
@ 2002-10-02 10:35 Krzysztof Benedyczak
  0 siblings, 0 replies; 11+ messages in thread
From: Krzysztof Benedyczak @ 2002-10-02 10:35 UTC (permalink / raw)
  To: linux-kernel

 Hello

After getting some response from lkml we are ready for
work on new version of POSIX message queues.

Main difference (as Christoph Hellwig suggested) would be
implementing it as a virtual filesystem (based on tmpfs and
parts of Jakub Jelinek code).
I think that we can agree that idea of moving whole stuff to
user space isn't good. There is still a problem with SIGEV_THREAD
version of notification but after (brief) looking into NPTL it
should be possible to implement (in difference to NGPT)


So our question is:
Is above version acceptable for Linux kernel?

Main advantages of such approach are: no need for new
system call and no mess in fork/exit.


 Krzysztof Benedyczak


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-10-07  8:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-05  9:13 POSIX message queues Krzysztof Benedyczak
2003-10-05 10:11 ` Manfred Spraul
2003-10-06 19:04   ` Krzysztof Benedyczak
2003-10-05 16:35 ` Ulrich Drepper
2003-10-05 18:16   ` Jamie Lokier
2003-10-05 18:32     ` Jakub Jelinek
2003-10-05 19:18       ` Jamie Lokier
2003-10-05 21:52         ` Ulrich Drepper
  -- strict thread matches above, loose matches on Subject: below --
2003-10-07  7:50 Peter Waechtler
2003-10-07  8:11 ` Jakub Jelinek
2002-10-02 10:35 Krzysztof Benedyczak

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).