Re: Slow pthread_create() under high load

From: Ulrich Drepper (drepper@redhat.com)
Date: Sat Mar 25 2000 - 13:33:40 EST

  • Next message: Jeff Garzik: "Re: Slow pthread_create() under high load"

    sasha@mysql.com writes:

    > My guess is that clone() should return very fast to the original thread, but
    > might take a while to return to the newly created thread, which is what is
    > causing the problem.

    The kernel does not allow using clone() directly because some
    additional functionality required to implement the correct POSIX
    threads behaviour is missing. Do you think we make these things slow
    on purpose?

    If you want to see this changes get the kernel changes in place.
    There are various patches floating around which combined will allow a
    correct and fast implementation. But they were not added.

    -- 
    ---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
    Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
    Red Hat          `--' drepper at redhat.com   `------------------------
    

    - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Sat Mar 25 2000 - 13:37:54 EST