public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RT Sigio broken on 2.4.19-pre8
@ 2002-05-25  8:40 Aaron Sethman
  2002-05-25  8:56 ` Aaron Sethman
  2002-05-27  8:25 ` Peter Wächtler
  0 siblings, 2 replies; 10+ messages in thread
From: Aaron Sethman @ 2002-05-25  8:40 UTC (permalink / raw)
  To: linux-kernel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Using the Dan Kegel's Poller_bench utility I noticed that RT SIGIO is not
working on 2.4.19-pre8.  Basically sigtimedwait() is always returning
SIGIO.  Note that 2.4.18 works fine.

Regards,

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8703wbNIhrdTeJVMRAlcgAJ9Bga4Y9Dj+YP1jGq6iQAtWHsTo7gCfYtC0
MrGouDbev2gSs2nymlXNVuw=
=R0yb
-----END PGP SIGNATURE-----


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

* Re: RT Sigio broken on 2.4.19-pre8
  2002-05-25  8:40 RT Sigio broken on 2.4.19-pre8 Aaron Sethman
@ 2002-05-25  8:56 ` Aaron Sethman
  2002-05-27  8:25 ` Peter Wächtler
  1 sibling, 0 replies; 10+ messages in thread
From: Aaron Sethman @ 2002-05-25  8:56 UTC (permalink / raw)
  To: linux-kernel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Actually looking at it closer... It seems rtsig-nr keeping rising slowly
as the system runs.

Regards,

Aaron

On Sat, 25 May 2002, Aaron Sethman wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> Using the Dan Kegel's Poller_bench utility I noticed that RT SIGIO is not
> working on 2.4.19-pre8.  Basically sigtimedwait() is always returning
> SIGIO.  Note that 2.4.18 works fine.
>
> Regards,
>
> Aaron
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
>
> iD8DBQE8703wbNIhrdTeJVMRAlcgAJ9Bga4Y9Dj+YP1jGq6iQAtWHsTo7gCfYtC0
> MrGouDbev2gSs2nymlXNVuw=
> =R0yb
> -----END PGP SIGNATURE-----
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE871HLbNIhrdTeJVMRAubwAJ0a+Skpxx/88pdYKaqDkBjhR70ZRQCgqhz8
DBRtW8/9eCfzN/RkGOul+uU=
=L1qT
-----END PGP SIGNATURE-----


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

* Re: RT Sigio broken on 2.4.19-pre8
  2002-05-25  8:40 RT Sigio broken on 2.4.19-pre8 Aaron Sethman
  2002-05-25  8:56 ` Aaron Sethman
@ 2002-05-27  8:25 ` Peter Wächtler
  2002-05-27  8:34   ` Austin Gonyou
  2002-05-27 17:51   ` Aaron Sethman
  1 sibling, 2 replies; 10+ messages in thread
From: Peter Wächtler @ 2002-05-27  8:25 UTC (permalink / raw)
  To: Aaron Sethman; +Cc: linux-kernel

Aaron Sethman wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> Using the Dan Kegel's Poller_bench utility I noticed that RT SIGIO is not
> working on 2.4.19-pre8.  Basically sigtimedwait() is always returning
> SIGIO.  Note that 2.4.18 works fine.
> 

What is this Poller_bench and where do I get it?



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

* Re: RT Sigio broken on 2.4.19-pre8
  2002-05-27  8:25 ` Peter Wächtler
@ 2002-05-27  8:34   ` Austin Gonyou
  2002-05-27 17:51   ` Aaron Sethman
  1 sibling, 0 replies; 10+ messages in thread
From: Austin Gonyou @ 2002-05-27  8:34 UTC (permalink / raw)
  To: Peter Wächtler; +Cc: Aaron Sethman, linux-kernel

Ahh...yes..I see a few apps exhibiting bad behaviour because of RT Sigio
not working. :(

Anyone know if it's fixed in -aa3?(i'm using -aa2)

RedCarpet seems to be a primary exhibitor on my desktop box.

On Mon, 2002-05-27 at 03:25, Peter Wächtler wrote:
> Aaron Sethman wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > 
> > Using the Dan Kegel's Poller_bench utility I noticed that RT SIGIO is not
> > working on 2.4.19-pre8.  Basically sigtimedwait() is always returning
> > SIGIO.  Note that 2.4.18 works fine.
> > 
> 
> What is this Poller_bench and where do I get it?
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

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

* Re: RT Sigio broken on 2.4.19-pre8
  2002-05-27  8:25 ` Peter Wächtler
  2002-05-27  8:34   ` Austin Gonyou
@ 2002-05-27 17:51   ` Aaron Sethman
  1 sibling, 0 replies; 10+ messages in thread
From: Aaron Sethman @ 2002-05-27 17:51 UTC (permalink / raw)
  To: Peter Wächtler; +Cc: linux-kernel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

http://www.kegel.com/dkftpbench/

Its part of dkftpbench.

Regards,

Aaron

On Mon, 27 May 2002, Peter Wächtler wrote:

> Aaron Sethman wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> >
> > Using the Dan Kegel's Poller_bench utility I noticed that RT SIGIO is not
> > working on 2.4.19-pre8.  Basically sigtimedwait() is always returning
> > SIGIO.  Note that 2.4.18 works fine.
> >
>
> What is this Poller_bench and where do I get it?
>
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE88nIabNIhrdTeJVMRArg+AKC2Tgc56ua7W1UkQpPPBjMLimcWswCeIb1W
41rOcPf1uliWmdrTPBq5j2k=
=WxjP
-----END PGP SIGNATURE-----


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

* Re: RT Sigio broken on 2.4.19-pre8
@ 2002-05-28  1:07 Dan Kegel
  2002-05-28  1:26 ` Dan Kegel
  2002-05-28  2:04 ` Aaron Sethman
  0 siblings, 2 replies; 10+ messages in thread
From: Dan Kegel @ 2002-05-28  1:07 UTC (permalink / raw)
  To: Aaron Sethman, linux-kernel@vger.kernel.org, pwaechtler, austin

Aaron Sethman wrote:
> > > Using the Dan Kegel's Poller_bench utility I noticed that RT SIGIO is not
> > > working on 2.4.19-pre8.  Basically sigtimedwait() is always returning
> > > SIGIO.  Note that 2.4.18 works fine.
> > > ... It seems rtsig-nr keeping rising slowly as the system runs.

That sounds like the way I'm clearing the signal queue is not working.
Here's a minimal test case for clearing the signal queue.  Could
you try it and tell me what it says?
- Dan

#include <stdio.h>
#include <signal.h>
#include <assert.h>

int main(int argc, char **argv)
{
        sigset_t sigset;
        siginfo_t info;
        static struct timespec timeout = {0,0};

        // block delivery of SIGRTMIN
        sigemptyset(&sigset);
        sigaddset(&sigset, SIGRTMIN);
        assert(0 == sigprocmask(SIG_BLOCK, &sigset, NULL));

        // clear signal queue
        assert(0 == signal(SIGRTMIN, SIG_IGN)); // POSIX says this clears the queue

        // Make sure that cleared the queue.  (Note that timeout is zero here.)
        assert(sigtimedwait(&sigset, &info, &timeout) != SIGRTMIN);

        printf("test passed\n");
        exit(0);
}

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

* Re: RT Sigio broken on 2.4.19-pre8
  2002-05-28  1:07 Dan Kegel
@ 2002-05-28  1:26 ` Dan Kegel
  2002-05-28  2:06   ` Aaron Sethman
  2002-05-28  3:25   ` Dan Kegel
  2002-05-28  2:04 ` Aaron Sethman
  1 sibling, 2 replies; 10+ messages in thread
From: Dan Kegel @ 2002-05-28  1:26 UTC (permalink / raw)
  To: Aaron Sethman, linux-kernel@vger.kernel.org, pwaechtler, austin

Dan Kegel wrote:
> 
> Aaron Sethman wrote:
> > > > Using the Dan Kegel's Poller_bench utility I noticed that RT SIGIO is not
> > > > working on 2.4.19-pre8.  Basically sigtimedwait() is always returning
> > > > SIGIO.  Note that 2.4.18 works fine.
> > > > ... It seems rtsig-nr keeping rising slowly as the system runs.
> 
> That sounds like the way I'm clearing the signal queue is not working.
> Here's a minimal test case for clearing the signal queue.  Could
> you try it and tell me what it says?

Er, forgot to send the signal.  Corrected test case:

#include <stdio.h>
#include <signal.h>
#include <assert.h>

int main(int argc, char **argv)
{
    sigset_t sigset;
    siginfo_t info;
    static struct timespec timeout = {0,0};

    // block delivery of SIGRTMIN
    sigemptyset(&sigset);
    sigaddset(&sigset, SIGRTMIN);
    assert(0 == sigprocmask(SIG_BLOCK, &sigset, NULL));

    raise(SIGRTMIN);

    // clear signal queue
    assert(0 == signal(SIGRTMIN, SIG_IGN)); // POSIX says this clears the queue

    // Make sure that cleared the queue.  (Note that timeout is zero here.)
    assert(sigtimedwait(&sigset, &info, &timeout) != SIGRTMIN);

    printf("test passed\n");
    exit(0);
}

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

* Re: RT Sigio broken on 2.4.19-pre8
  2002-05-28  1:07 Dan Kegel
  2002-05-28  1:26 ` Dan Kegel
@ 2002-05-28  2:04 ` Aaron Sethman
  1 sibling, 0 replies; 10+ messages in thread
From: Aaron Sethman @ 2002-05-28  2:04 UTC (permalink / raw)
  To: Dan Kegel; +Cc: linux-kernel@vger.kernel.org, pwaechtler, austin

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Mon, 27 May 2002, Dan Kegel wrote:
>
> That sounds like the way I'm clearing the signal queue is not working.
> Here's a minimal test case for clearing the signal queue.  Could
> you try it and tell me what it says?
> - Dan

The test passed.  What it looks like is, the kernel for some reason is not
decrementing the queued count for some reason.  I have a server doing RT
sigio and after a while, the rtsig-nr count goes up to 1024 and never
comes back down even if I kill that process.

Regards,

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE88uW7bNIhrdTeJVMRApXSAKCMolB/rzDvdin1byJo36ZYRw6mmACbBkLl
JGH5UDNRpg0AE0VK3lDaPGw=
=NUCR
-----END PGP SIGNATURE-----


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

* Re: RT Sigio broken on 2.4.19-pre8
  2002-05-28  1:26 ` Dan Kegel
@ 2002-05-28  2:06   ` Aaron Sethman
  2002-05-28  3:25   ` Dan Kegel
  1 sibling, 0 replies; 10+ messages in thread
From: Aaron Sethman @ 2002-05-28  2:06 UTC (permalink / raw)
  To: Dan Kegel; +Cc: linux-kernel@vger.kernel.org, pwaechtler, austin

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 27 May 2002, Dan Kegel wrote:
>
> Er, forgot to send the signal.  Corrected test case:

Just tried the corrected version, still passed.

Regards,

Aaron

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE88uY3bNIhrdTeJVMRAhAVAJ41B1bC7q++8FCgZf+NDKN9mOaY6QCg2XKe
EtuaFO1o403xHAP+KjY3VHs=
=PjcP
-----END PGP SIGNATURE-----


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

* Re: RT Sigio broken on 2.4.19-pre8
  2002-05-28  1:26 ` Dan Kegel
  2002-05-28  2:06   ` Aaron Sethman
@ 2002-05-28  3:25   ` Dan Kegel
  1 sibling, 0 replies; 10+ messages in thread
From: Dan Kegel @ 2002-05-28  3:25 UTC (permalink / raw)
  To: Aaron Sethman, linux-kernel@vger.kernel.org, pwaechtler, austin

Aaron Sethman wrote:
> > > > > > Using the Dan Kegel's Poller_bench utility I noticed that RT SIGIO is not
> > > > > > working on 2.4.19-pre8.  Basically sigtimedwait() is always returning
> > > > > > SIGIO.  Note that 2.4.18 works fine.
> > > > > > ... It seems rtsig-nr keeping rising slowly as the system runs.
> > >
> > > That sounds like the way I'm clearing the signal queue is not working.
> > > Here's a minimal test case for clearing the signal queue.  Could
> > > you try it and tell me what it says?
>
> Just tried the corrected version, still passed.

I can't reproduce the problem here.  

What version of dkftpbench are you using?  What parameters?
Can you send me your kernel .config file?

I did notice and fix an embarassing problem in Poller_bench of 
dkftpbench-0.42; it aborted when Poller_sigio sent its initial readiness
notification (it's spurious, but programs are supposed to
be able to handle that).  Fix is at 
http://www.kegel.com/dkftpbench/pb.patch

Thanks,
Dan

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

end of thread, other threads:[~2002-05-28  3:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-25  8:40 RT Sigio broken on 2.4.19-pre8 Aaron Sethman
2002-05-25  8:56 ` Aaron Sethman
2002-05-27  8:25 ` Peter Wächtler
2002-05-27  8:34   ` Austin Gonyou
2002-05-27 17:51   ` Aaron Sethman
  -- strict thread matches above, loose matches on Subject: below --
2002-05-28  1:07 Dan Kegel
2002-05-28  1:26 ` Dan Kegel
2002-05-28  2:06   ` Aaron Sethman
2002-05-28  3:25   ` Dan Kegel
2002-05-28  2:04 ` Aaron Sethman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox