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

[nptl] Re: NPTL Issue getrusage() / times



> Hello,

Hi again, Loïc :)

> 
> accordingly to SUSv3, getrusage() and times() should return the timing 
> (user and system time) information for the *process*. That is the sum 
> over all thread's time.
> 
> With NPTL, the timing is thread-wise only. That is, the timing is given 
> only for the thread that calls getrusage(), resp. times(). This deviates 
> from SUSv3.

According to this message:
http://sources.redhat.com/ml/libc-alpha/2004-10/msg00013.html
the glibc is claimed to return the usage for the process. So, if it
appears that it is not the case, there surely is a bug!


> I would definitively keep that neat feature of obtaining timing 
> thread-wise, but not with the standard getrusage(), resp. times().

Yeah, the POSIX function have to conform to the POSIX spec; otherwise it
makes no sense :)

> 
> If you like, I can devise a test program proving my claim.

It would be great. If you have no time for this, please let me know,
I'll try to figure out a way to check this. Anyway, at the moment, I
don't really can imagine how to prove this... Can you give me some more
information on a design for such a test?

Thanks, 
Seb.

-------------------------------
Sebastien DECUGIS
NPTL Test & Trace Project
http://nptl.bullopensource.org/

"You may fail if you try.
You -will- fail if you don't."


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