lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <edng6u$kcc$1@sea.gmane.org>
Date:	Wed, 06 Sep 2006 23:56:42 +0200
From:	Sven Köhler <skoehler@....de>
To:	linux-kernel@...r.kernel.org
Subject:  alternatives to getrusage() ?

Hi,

first, if this is the wrong place to ask, then i'm sorry and please
recomm a better place to me.


My goal is to do some precise benchmarking/profiling.

I am looking for (Linux specific) alternatives to getrusage().
As far as i understand, the precision of getrusage() is given by the
timer frequency that can be adjusted in recent kernel-versions. I think
i have the choice between 100Hz, 250Hz and 1000Hz. By chosing 1000Hz, i
get a precision of 1ms, right?

On the other hand, there are things like rdtsc() which reads the clock
counter of the CPU. So does the linux kernel currently provide a
process-specific value which counts the CPU clocks "consumed" by a
process? Maybe there are some patches?

Are there other alternatives that i didn't think about yet?

Are there maybe some kernel-unrelated alternatives?


Thanks,

  Sven


Download attachment "signature.asc" of type "application/pgp-signature" (252 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ