CPU always at 0%



  • Please help me figure out why the cpu is always at idle.

    $ top -aSH
    last pid: 86019;  load averages:  0.28,  0.17,  0.07  up 0+02:35:28    05:30:49
    128 processes: 3 running, 107 sleeping, 18 waiting

    Mem: 62M Active, 21M Inact, 128M Wired, 380K Cache, 22M Buf, 7527M Free
    Swap: 16G Total, 16G Free

    PID USERNAME PRI NICE  SIZE    RES STATE  C  TIME  WCPU COMMAND
      11 root    171 ki31    0K    32K RUN    0 154:47 100.00% [idle{idle: cpu0}]
      11 root    171 ki31    0K    32K CPU1    1 153:45 100.00% [idle{idle: cpu1}]
    33825 root      44    0  152M 45868K piperd  0  0:02  0.10% /usr/local/bin/php{php}
      258 root      76  20  6908K  1384K kqread  1  1:24  0.00% /usr/local/sbin/check_reload_status
        0 root    -16    0    0K  240K sched  1  0:46  0.00% [kernel{swapper}]
        0 root    -68    0    0K  240K -      1  0:09  0.00% [kernel{em2 que}]
        0 root    -68    0    0K  240K -      0  0:06  0.00% [kernel{em1 que}]
      12 root    -32    -    0K  288K WAIT    0  0:03  0.00% [intr{swi4: clock}]
    22049 root      44    0  5784K  1468K select  1  0:02  0.00% /usr/local/sbin/apinger -c /var/etc/apinger.conf
      14 root    -16    -    0K    16K -      1  0:01  0.00% [yarrow]
    60817 root      76  20  8296K  1844K wait    0  0:00  0.00% /bin/sh /var/db/rrd/updaterrd.sh
    2399 nobody    64  20 16040K  4996K select  0  0:00  0.00% /usr/local/sbin/dnsmasq –all-servers --rebind-localhost-ok -
        0 root    -68    0    0K  240K -      1  0:00  0.00% [kernel{em0 que}]
      12 root    -32    -    0K  288K WAIT    0  0:00  0.00% [intr{swi4: clock}]
    97154 root      64  20 12160K  7120K select  1  0:00  0.00% /usr/local/sbin/ntpd -g -c /var/etc/ntpd.conf -p /var/run/ntp
    80689 root      44    0  6960K  1656K select  1  0:00  0.00% /usr/sbin/syslogd -s -c -c -l /var/dhcpd/var/run/log -f /var/
    6598 dhcpd    64  20 19148K 12904K select  0  0:00  0.00% /usr/local/sbin/dhcpd -user dhcpd -group _dhcp -chroot /var/d
      21 root      20    -    0K    16K syncer  1  0:00  0.00% [syncer]

    This is my Hardware information:

    Name pfsense.localdomain
    Version 2.1.5-RELEASE (amd64)
    built on Mon Aug 25 07:44:45 EDT 2014
    FreeBSD 8.3-RELEASE-p16

    You are on the latest version.
    Platform pfSense
    CPU Type Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz
    2 CPUs: 1 package(s) x 2 core(s)



  • Not much load?  I use a virtualized dual-CPU config, and CPU1 is always at 100% idle, CPU2 is usually at 96-98% idle.  And this is a corporate network, albeit with only about a dozen users.



  • Being at idle is a good thing, much better than being too busy to do other things.

    You should look at the RRD graphs -> System -> Processor to see what kind of utilization you have. This is a better indicator.

    If you aren't running packages or shaping traffic, then there isn't much for your CPUs to do besides route traffic.


  • Netgate Administrator

    Exactly.
    Because your box is over-powered for your requirements?
    What is your WAN bandwidth? What packages are you running?

    The only problem you may have is that you're consuming more power than is necessary.  ;)

    Steve