[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nptl] Re: SuSe SLES 9 vs. test_schedRR



Hi!  

> The configuration here is the following:
> -> Installed SLES 9
> -> Added a vanilla kernel 2.6.8.1, booted this one.
> -> Compiled & installed a fresh glibc (cvs checkout) in some directory,
> e.g. /home/cvs/root
>
> Then the testcase is linked to use this one library. This is achieved
> with the -B and -L flags to gcc. The result is:
> # ldd test_schedrr
>         linux-gate.so.1 =>  (0xffffe000)
>         libc.so.6 => /home/cvs/root/lib/libc.so.6 (0x4001a000)
>         libpthread.so.0 => /home/cvs/root/lib/libpthread.so.0
> (0x40131000)
>         librt.so.1 => /home/cvs/root/lib/librt.so.1 (0x40143000)
>         /home/cvs/root/lib/ld-linux.so.2 =>
> /home/cvs/root/lib/ld-linux.so.2 (0x40000000)

[snip] 

> As this libc is used far less frequently as the standard libc
> (/lib/tls/libc.so.6), I thought it is normal that the loading of the
> test is slower than with the standard glibc.

Yes, I agree.


> > > I think the delay and change in bug frequency could be related to a
> > > different behavior of the loader ld-linux. 
> > 
> > I do not see why ld would play a role here ? 
> 
> It can induce a delay in the test startup. Anyway, you're right it
> should not have any influence on the bug occurence frequency...

Yeah, but it doesn't matter IMHO.

Look at the code. The timeout for the test is fired-up in 
[i]testdrv_thread()[/i] with the line:
[code]
FIRE_TIMEOUT(TEST_TIMEOUT);
[/code]

The timer really starts at that line, not before. Hence, the eventual 
delays due to the loading of the DLs,  the creation of 
[i]testdrv_thread()[/i] resp. [i]alarm_thread()[/i] threads etc. 
isn't taken into account in the timeout. As it should.  

Or Did I missed something? 


Cheers,
Loic. 

-- 
--
// Sender address goes to /dev/null (!!) 
// Use my 32/64 bits, ANSI C89, compliant email-address instead:   

unsigned y[]=
{0,34432,26811,16721,41866,63119,61007,48155,26147,10986};
void x(z){putchar(z);}; unsigned t; 
main(i){if(i<10){t=(y[i]*47560)%65521;x(t>>8);x(t&255);main(++i);}}

GMX ProMail mit bestem Virenschutz http://www.gmx.net/de/go/mail
+++ Empfehlung der Redaktion +++ Internet Professionell 10/04 +++

Liste de diffusion nptl
Pour se désinscrire : mailto:nptl_request@bullopensource.org?subject=unsubscribe