Copyright © 2008-2018, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.
Date: 2007apr17 OS: Linux Q. How can I "peg" (max out) the CPU on my Linux box (for testing)? A. Here are some good ways:cat /dev/zero >/dev/nullcat /dev/urandom >/dev/nullgrep hello /dev/urandomtail /dev/zeroNone of these need any disk access so just take as much CPU as they can get. On my box about 50%. If you are using these for purposes other than stress testing your own box... you didn't hear it here.
Add a commentSign in to add a comment