OPNsense Forum

Archive => 15.7 Legacy Series => Topic started by: Solaris17 on September 24, 2015, 03:26:00 am

Title: [SOLVED] New build CPU usage constantly at 25%?
Post by: Solaris17 on September 24, 2015, 03:26:00 am
Updated today and now running

OPNsense 15.7_1018-amd64   
FreeBSD 10.2-RELEASE-p1   
LibreSSL 2.2.3

however after the initial and subsequent (2) reboots of the router the CPU usage is sitting at 25% the router itself is running an i3-4130 but it is running warm now with the constant usage. Unfortunetely I am unable to find the process doing it?

Code: [Select]
last pid: 46927;  load averages:  1.21,  1.16,  1.10  up 0+04:47:08    21:25:47
127 processes: 6 running, 101 sleeping, 20 waiting

Mem: 134M Active, 248M Inact, 232M Wired, 308K Cache, 125M Buf, 7211M Free
Swap:


  PID USERNAME   PRI NICE   SIZE    RES STATE   C   TIME    WCPU COMMAND
   19 root       -16 ki-1     0K    16K CPU2    2 286:23 100.00% [idlepoll]
   11 root       155 ki31     0K    64K CPU1    1 174:53  77.98% [idle{idle: cp
   11 root       155 ki31     0K    64K CPU3    3 172:00  73.88% [idle{idle: cp
   11 root       155 ki31     0K    64K RUN     2 170:11  73.88% [idle{idle: cp
   11 root       155 ki31     0K    64K RUN     0 163:23  72.85% [idle{idle: cp
40278 root        20    0   389M   260M uwait   0  20:56   1.66% /usr/local/bin
40278 root        20    0   389M   260M uwait   2  46:23   1.46% /usr/local/bin
19426 root        52    0   130M 30512K piperd  0   0:02   0.98% /usr/local/bin
 2691 root        20    0 56708K  7164K kqread  3   0:01   0.68% /usr/local/sbi
40278 root        20    0   389M   260M uwait   1   1:09   0.10% /usr/local/bin
40278 root        20    0   389M   260M uwait   0  39:37   0.00% /usr/local/bin
40278 root        20    0   389M   260M uwait   2  19:20   0.00% /usr/local/bin
40278 root        20    0   389M   260M uwait   3  18:24   0.00% /usr/local/bin
40278 root        20    0   389M   260M uwait   2  12:54   0.00% /usr/local/bin
40278 root        20    0   389M   260M bpf     2   7:18   0.00% /usr/local/bin
40278 root        20    0   389M   260M bpf     2   7:16   0.00% /usr/local/bin
   12 root       -72    -     0K   320K WAIT    2   4:59   0.00% [intr{swi1: ne
   15 root       -16    -     0K    16K -       3   1:37   0.00% [rand_harvestq


The cores show the usage but the processes dont represent the missing %?
Title: Re: New build CPU usage constantly at 25%?
Post by: AdSchellevis on September 24, 2015, 01:35:39 pm
can you try to run top with a bit more info?

Code: [Select]
top -S -P

It's probably system or interrupt time being spend, if your machine is busy with network traffic that could be normal, if it's not routing/firewalling anything that looks odd.
Title: Re: New build CPU usage constantly at 25%?
Post by: Solaris17 on September 24, 2015, 03:32:28 pm
yeah currently no one is home im pulling no bandwidth. before this would generally indicate a very low CPU usage .4 .3 etc on the avg load graph. but im talking consistently at 25% the read out via putty is

Code: [Select]

root@Chronos:~ # top -S -P                                                      last pid: 97901;  load averages:  1.02,  1.03,  1.00    up 0+16:46:12  09:24:51
65 processes:  4 running, 60 sleeping, 1 waiting
CPU 0:  2.5% user,  0.0% nice, 23.3% system,  0.6% interrupt, 73.6% idle
CPU 1:  0.0% user,  0.0% nice, 33.1% system,  0.0% interrupt, 66.9% idle
CPU 2:  0.0% user,  0.0% nice, 23.9% system,  0.0% interrupt, 76.1% idle
CPU 3:  0.6% user,  0.0% nice, 27.6% system,  0.6% interrupt, 71.2% idle
Mem: 6228K Active, 128M Inact, 293M Wired, 5700K Cache, 656M Buf, 7393M Free
Swap:

  PID USERNAME    THR PRI NICE   SIZE    RES STATE   C   TIME    WCPU COMMAND
   11 root          4 155 ki31     0K    64K CPU3    3  46.1H 308.74% idle
   19 root          1 -16 ki-1     0K    16K CPU1    1  16.7H  99.56% idlepoll
33926 root          1  72    0   126M 30936K CPU0    0   0:07   0.39% php-cgi
   12 root         20 -72    -     0K   320K WAIT    2  17:41   0.00% intr
   15 root          1 -16    -     0K    16K -       0   5:04   0.00% rand_harv
 7442 root          1  21    0   126M 28396K accept  1   0:07   0.00% php-cgi
    5 root          1 -16    -     0K    16K pftm    0   0:05   0.00% pf purge
 2691 root          1  20    0 56708K  7216K kqread  3   0:05   0.00% lighttpd
64916 nobody        1  20    0 19604K  4996K select  3   0:05   0.00% dnsmasq
   16 root         12 -68    -     0K   192K -       0   0:03   0.00% usb
36994 root          1  20    0 16660K  2184K bpf     2   0:02   0.00% filterlog
46710 root          1  20    0 14392K  1952K select  0   0:02   0.00% powerd
 4111 root          1  52    0 16988K  2488K wait    1   0:02   0.00% sh


Do you see anything? If the system is constantly under load thats w/e I can understand if their is overhead or something. What is blowing my mind is that the 25% atleast to me isnt represented in the CPU usage stats. the cores themselves show idle states on ly in the 60's and mid 70's However the actual task list doesnt show me what is loading the system. Maybe im missing something simple since im not  used to tops print outs but thats atleast what it appears like to me?
Title: Re: New build CPU usage constantly at 25%?
Post by: AdSchellevis on September 24, 2015, 03:42:39 pm
idlepoll seems to be using 25% of your system, is your machine running in polling mode?
(System -> Networking -> Device polling)
Title: Re: New build CPU usage constantly at 25%?
Post by: Solaris17 on September 24, 2015, 04:37:51 pm
That was it! Sorry I guess it didn't click for me on the list. I just thought it was some BSD specific watchdog I guess. Still haven't figured out how I managed to check that box. Thanks a ton! CPU is running much cooler! (these embedded heatsinks are not fantastic. and the thermal paste is terrible too even after re-apply)