Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    [solved] CPU Stress Test

    General pfSense Questions
    5
    7
    7.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      creiss
      last edited by

      Hey folks,

      just a quicky. I need to stress test the CPU inside a pfsense appliance. It's not productive at the moment; something like cpuburn for Linux. Any recommendation? I just need to spike all cores (testing thermal/ cooling).

      Cheers!
      -Chris.

      1 Reply Last reply Reply Quote 0
      • H
        heper
        last edited by

        if its not in production, use a livecd that includes the right tools

        1 Reply Last reply Reply Quote 0
        • luckman212L
          luckman212 LAYER 8
          last edited by

          Not necessarily recommended but, in case you want to run the stress test right from your pfSense unit…some options... (from ssh / console)

          stress-ng

          fetch http://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/stress-ng-0.08.14.txz
          pkg install stress-ng-0.08.14.txz
          rehash
          stress-ng --metrics-brief --cpu [# of cores] --timeout 1h
          

          more info http://kernel.ubuntu.com/~cking/stress-ng/

          cpuburn (older tool)

          fetch http://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/cpuburn-1.4_3.txz
          pkg install cpuburn-1.4_3.txz
          rehash
          burnMMX
          

          good luck, let us know results  ;)

          1 Reply Last reply Reply Quote 0
          • C
            creiss
            last edited by

            @luckman212:

            Not necessarily recommended but, in case you want to run the stress test right from your pfSense unit…some options... (from ssh / console)

            stress-ng

            fetch http://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/stress-ng-0.08.14.txz
            pkg install stress-ng-0.08.14.txz
            stress-ng --metrics-brief --cpu [# of cores] --timeout 1h
            

            more info http://kernel.ubuntu.com/~cking/stress-ng/

            cpuburn (older tool)

            fetch http://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/cpuburn-1.4_3.txz
            pkg install cpuburn-1.4_3.txz
            burnMMX
            

            good luck, let us know results  ;)

            That worked like a charm! Besides a missing re-hash that solution worked out of the box!
            Kudos and thanks!

            -Chris.

            1 Reply Last reply Reply Quote 0
            • luckman212L
              luckman212 LAYER 8
              last edited by

              Glad to hear :) I added the rehash command to my earlier post…

              1 Reply Last reply Reply Quote 0
              • S
                sparkman123
                last edited by

                @heper:

                if its not in production, use a livecd that includes the right tools

                Any suggestions as to what would be a good livecd environment that's being actively maintained? Several like Ultimate Boot CD, Hiren's BootCD and StressLinux are years out of date.

                1 Reply Last reply Reply Quote 0
                • M
                  michael_samer
                  last edited by

                  Hi sparkman123
                  I prefer partedMagic (solution for all things I need to do) or kali linux. I rarely stresstest my systems, I often need to test the performance, so openvpn/openssl is good to test the stress as well
                  e.g.: iperf -c IP -t 60
                  or
                  openssl speed -elapsed -evp aes-256-cbc              [if your CPU/OS supports aes-xyz then you choose some it doesn't so the CPU has to work, not the crypto part alone]
                  As openssl is often preinstalled it's my first choice for seeking CPU limits
                  Cheers
                  Michael

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.