tech-kern archive

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

Re: Is there a current known getrusage() problem (amd64)



kre%munnari.OZ.AU@localhost (Robert Elz) writes:

>pkcs5_pbkdf2_time(24, 64): -1017 us (0.1017 -> 0.0)

>Somehow, getrusage(RUSAGE_SELF, &end) has resulted in 0
>for the user time (which then results in negative consumed user
>time - or that's what is calculated.)

That's what you get with statistics.

User and system time are sampled very coarsely. The reported
times are interpolated from the total run time (which is measured
precisely) and the ratio of user vs. system time.

As a result, the user and system times reported by getrusage
are neither precise nor necessarily monotonic.

See bin/10201, kern/30115.


-- 
-- 
                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index