[Scottish] CPU Testing
Paul Millar
scottish at mailman.lug.org.uk
Thu Feb 27 15:26:02 2003
For an interesting IO/cpu job:
find /usr -type f -print|while read f; do md5sum "$f" >/dev/null 2>&1; done
For CPU bound, do
md5sum /dev/zero
For IO bound, do
dd if=/dev/hda of=/dev/null
Torturing your computer in three lines ;^)
Paul.
On Thu, 27 Feb 2003, Ian Drake, IT, CIR, SE Dunbartonshire wrote:
> I'm currently setting up MRTG to graph my CPU usage, but I need something to
> help prove what I've done works, anyone got a short piece of C code that'll
> push the gas peddle on my Linux box and keep the cpu cycles high for a few
> mins?
>
> Rgds,
>
> Ian
>
> PS I'm basically doing :-
>
> cat /proc/stat | /usr/bin/awk '/cpu /{print $2+$3; print $2+$3+$4; print
> "quite some time"; print "home"}
> in my MRTG conf file
>
>
>
> _______________________________________________
> Scottish mailing list
> Scottish@mailman.lug.org.uk
> http://mailman.lug.org.uk/mailman/listinfo/scottish
>
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Particle Physics (Theory & Experimental) Groups Dr Paul Millar
Department of Physics and Astronomy paulm@astro.gla.ac.uk
University of Glasgow paulm@physics.gla.ac.uk
Glasgow, G12 8QQ, Scotland http://www.astro.gla.ac.uk/users/paulm
+44 (0)141 330 4717 A54C A9FC 6A77 1664 2E4E 90E3 FFD2 704B BF0F 03E9
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --