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

    stress-ng install

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 2 Posters 2.0k Views
    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.
    • T
      tquade
      last edited by tquade

      I would like to install stress-ng on my pfsense appliance. From a post by luckman212 some years ago I have the following to work from:

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

      I need someone to provide the appropriate x and xx values and any other corrections.

      Thanks in advance.
      Ted

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        It's 0.13.12. See: https://www.freshports.org/benchmarks/stress-ng/

        But it has missing dependencies:

        [2.6.0-RELEASE][admin@cedev-4.stevew.lan]/root: pkg add http://pkg.freebsd.org/FreeBSD:12:amd64/latest/All/stress-ng-0.13.12.txz
        Fetching stress-ng-0.13.12.txz: 100%  363 KiB 372.1kB/s    00:01    
        Installing stress-ng-0.13.12...
        pkg: Missing dependency 'Judy'
        
        Failed to install the following 1 package(s): http://pkg.freebsd.org/FreeBSD:12:amd64/latest/All/stress-ng-0.13.12.txz
        

        Steve

        T 1 Reply Last reply Reply Quote 0
        • T
          tquade @stephenw10
          last edited by

          @stephenw10 Missing dependency seems to indicate I'm stuck.

          Ted

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Yes, it's hard to recommend going down the road of installing all the dependencies from a different repo.

            When I want to test a system I usually just run:

            yes > /dev/null &
            

            Run it once for each cpu core and it will result in 100% CPU use:

            last pid: 70314;  load averages:  2.90,  0.94,  0.42    up 0+00:20:25  13:12:10
            178 threads:   11 running, 147 sleeping, 20 waiting
            CPU: 26.0% user,  0.1% nice, 73.9% system,  0.0% interrupt,  0.0% idle
            Mem: 73M Active, 5536K Inact, 204M Wired, 78M Buf, 3559M Free
            
              PID USERNAME    PRI NICE   SIZE    RES STATE    C   TIME    WCPU COMMAND
            21329 root        103    0    10M  2024K CPU3     3   1:25  99.09% yes
            47661 root        103    0    10M  2024K RUN      0   0:50  98.95% yes
            49993 root        103    0    10M  2024K CPU2     2   0:49  98.71% yes
            47846 root        103    0    10M  2024K CPU1     1   0:50  97.68% yes
              354 root         52    0   132M    41M accept   3   0:01   0.22% php-fpm: poo
                0 root        -76    -     0B   592K -        3   0:01   0.12% [kernel{if_c
            

            Not perhaps as good as stress-ng but good enough IMO.

            You can kill those with: killall yes

            Steve

            T 1 Reply Last reply Reply Quote 0
            • T
              tquade @stephenw10
              last edited by

              @stephenw10 That served the purpose.

              Thanks
              Ted

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