Re: Slow pthread_create() under high load

From: sinisa@mysql.com
Date: Sun Mar 26 2000 - 05:33:43 EST


sasha@mysql.com writes:
> Alan Cox wrote:
>
> So what you are saying is that the scheduler changed after 2.3.9 to make the
> forks faster under high load? Will those changes make it to 2.4 ?
>
> Could somebody also elaborate on "the scheduler penalizes across forks" for
> those who are not as familiar with the kernel internals/jargon? Does that mean
> that a process that has called fork()/clone() automatically gets punished for
> this great sin by getting its priority lowered?
>
> If the above is correct, how long does the punishment last?
>
> --
> Sasha Pachev
>

I understood (or misunderstood) Mr. Cox notes that when a new thread
is created, scheduler goes through all existing threads and changes
their time slice / priority , in order to accomodate a new thread in a
fair manner. I do not know what Mr. Ingo suggested, but what I
learned from reading various CPU cookbooks is that most CPU's or MMU's
have better methods for this 'fairness' approach.

Regarding POSIX threads being "braindamaged pile of crap", it is
unfortunately the only available standard for writing relatively
platform - independent multithreaded servers.

Regards,

Sinisa

+----------------------------------------------------------------------+
| TcX ____ __ _____ _____ ___ == mysql@tcx.se |
| /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Sinisa Milivojevic |
| /*/ /*/ /*/ \*\_ |*| |*||*| mailto:sinisa@mysql.com |
| /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Larnaka, Cyprus |
| /*/ /*/ /*/\*\_/*/ \*\_/*/ |*|____ |
| ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^ |
| /*/ \*\ Developers Team |
+----------------------------------------------------------------------+

-
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 : Fri Mar 31 2000 - 21:00:17 EST