+ Reply to Thread
Results 1 to 3 of 3
  1. #1

    Load testing a linux machine

    Simple trick I use all the time to check system stability.
    open up a terminal and type

    cat /dev/urandom > /dev/null

    to stop, hit ctrl + c

    This is a single threaded application so you need a separate instance of it for each processor core. You'll find it loads up a single core to nearly 100% cpu usage. What is actually happening here is you're running the cat command which reads from a file, in this case instead of a file we use /dev/urandom which is a random number generator in the linux world. Then instead of having it display all that crap in your terminal(the default) we use the redirection character, > to send it somewhere else. In this case /dev/null which is basically a black hole for dumping unwanted data.

    Note that this really does load a system down. It won't crash it(unless it's got hardware issues or other problems) but it will slow the system wayyy down if you run an instance for each CPU core.

    2012 Mustang GT Premium 6-speed

  2. #2
    Administrator TDSP's Avatar
    Join Date
    Dec 2011
    Location
    Bronie Town USA
    Posts
    518
    I use this all the damn time, it's one of the things in my PXE folder. It's super useful if you are trying to track down bad hardware or see how well a cooler works. It's a fork off Knoppix.

  3. #3
    Yeah I know there are some good testing suites out there. The nice thing about this is you don't need anything, you type the command and go.

    2012 Mustang GT Premium 6-speed

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts