Re: 2.6.X, NPTL, SCHED_FIFO and JACK

From: Jakub Jelinek (jakub_at_redhat.com)
Date: 06/30/04

  • Next message: Bartlomiej Zolnierkiewicz: "[PATCH] ide-taskfile.c fixups/cleanups part #2 [3/9]"
    Date:	Wed, 30 Jun 2004 11:26:52 -0400
    To: Ingo Molnar <mingo@elte.hu>
    
    

    On Wed, Jun 30, 2004 at 05:04:30PM +0200, Ingo Molnar wrote:
    > > Are there known issues with the implementation of NPTL that might give
    > > rise to this behaviour? What can we do to help understand and debug
    > > it?
    >
    > there's nothing special about NPTL, scheduling-wise. But if SCHED_FIFO
    > is not properly set for all JACK threads that could explain the
    > symptoms. You talked about kludges that are necessary to make all
    > threads SCHED_FIFO - are you 100% sure that all JACK threads are indeed
    > SCHED_FIFO after these kludges are applied? If yes and you are running a
    > later kernel then it's something new and probably NPTL-unrelated.

    One thing to note is that NPTL defaults to PTHREAD_INHERIT_SCHED
    while LinuxThreads defaults to PTHREAD_EXPLICIT_SCHED.
    So, if you care about what scheduling created threads will have
    and want it to work with both NPTL and LinuxThreads, you want
    pthread_attr_setinheritsched (&attr, PTHREAD_*_SCHED);
    explicitely.

            Jakub
    -
    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/


  • Next message: Bartlomiej Zolnierkiewicz: "[PATCH] ide-taskfile.c fixups/cleanups part #2 [3/9]"

    Relevant Pages

    • Re: Thread and process dentifiers (CPU affinity, kill)
      ... > This is a clever way to enable some existing applications that rely on ... > benefits provided by NPTL, you should update the code for any existing ... Applications that rely on linuxthreads, heh, that's a good one. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: NPTL v userland v LT (RH9+custom kernel problem)
      ... > without going to NPTL, ... > knows the kernel has LinuxThreads, ... RHL9 ships with BOTH LinuxThreads and NPTL and will switch ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 382 linux threads
      ... This is not the max per prozess. ... a kernel header file, don't know the exact location right now. ... Means that nptl is available on this machine - a kernel that supports it. ... glibc was compiled with linuxthreads. ...
      (comp.programming.threads)
    • Re: Suse 9.3 Threads (Linux or NPTL) question
      ... dyrmak wrote: ... >>and compile I still get that it is using the linuxthreads and not nptl. ...
      (alt.os.linux.suse)
    • Re: Linux and Threads
      ... EDT 2002 i686) and LinuxThreads, can one safely upgrade to NPTL? ... real world, real life testimonies? ... > - Not fully POSIX compliant ...
      (comp.os.linux.development.apps)