httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralf S. Engelschall" <...@engelschall.com>
Subject Re: Apache/pthread and locking problem
Date Wed, 11 Aug 1999 10:26:03 GMT

In article <Pine.BSF.4.05.9908111131430.13706-100000@kim.ispra.webweaving.org> you wrote:
> 
> 
> On Wed, 11 Aug 1999, Ralf S. Engelschall wrote:
> 
>> > I recall there is some if-then-else statement in kern_generic.c which has
>> > some funny policy choises depending on a small/large maxfd (cut off in the
>> > 100-erds) which used to interact with the userland threads.
>> 
>> Hmmm... I cannot see any magic for uthread in
>> /usr/src/sys/kern/sys_generic.c:select()...
> 
> It is something (I am on my laptop now - no kernel sources :-) like
>   
>   select...
>       declare *p, somebuff[XXX]
>       if maxfd*S > XXX
>           p = malloc
>       else
>           p = somebuff 
> 
> followed by some other fun. I'll try to find the series of commits against
> that in CVS and send them private.

Ok, yes, there is:

        fd_mask s_selbits[howmany(2048, NFDBITS)];
        ...
        if (nbufbytes <= sizeof s_selbits)
                selbits = &s_selbits[0];
        else
                selbits = malloc(nbufbytes, M_SELECT, M_WAITOK);
        ...

And now?
                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com

Mime
View raw message