OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 19.7 Legacy Series »
  • High CPU Usage since upgrade from 19.1.10 to 19.7
« previous next »
  • Print
Pages: [1] 2

Author Topic: High CPU Usage since upgrade from 19.1.10 to 19.7  (Read 14748 times)

cguilford

  • Full Member
  • ***
  • Posts: 130
  • Karma: 15
    • View Profile
High CPU Usage since upgrade from 19.1.10 to 19.7
« on: July 17, 2019, 07:46:24 pm »
Has anyone else noticed almost double high cpu usage compared from 19.1 to 19.7?  As a general rule, my CPU would max about 50% most of the time.. I RARELY saw it peek above that mark, I upgraded to 19.7 this morning and I'm peaking 70-80% frequently.   I've even spiked as high as 91%. 
Logged

pyrodex

  • Newbie
  • *
  • Posts: 45
  • Karma: 0
    • View Profile
Re: High CPU Usage since upgrade from 19.1.10 to 19.7
« Reply #1 on: July 17, 2019, 10:29:02 pm »
I am seeing a change as well.

Logged

payback007

  • Newbie
  • *
  • Posts: 20
  • Karma: 1
    • View Profile
Re: High CPU Usage since upgrade from 19.1.10 to 19.7
« Reply #2 on: July 18, 2019, 12:30:13 am »
I also see the same issue, increased work load and also in combination with a very slow WebUI... any ideas?

It also seems traffic is abnormally high too.
Logged

cguilford

  • Full Member
  • ***
  • Posts: 130
  • Karma: 15
    • View Profile
Re: High CPU Usage since upgrade from 19.1.10 to 19.7
« Reply #3 on: July 18, 2019, 12:31:57 am »
Yeah I noticed that the webgui was extremely laggy.
Logged

Steven

  • Newbie
  • *
  • Posts: 46
  • Karma: 4
    • View Profile
Re: High CPU Usage since upgrade from 19.1.10 to 19.7
« Reply #4 on: July 18, 2019, 02:00:24 am »
What does System: Diagnostics: Activity or top command say are highest CPU usage processes?
« Last Edit: July 18, 2019, 02:02:29 am by Steven »
Logged

cguilford

  • Full Member
  • ***
  • Posts: 130
  • Karma: 15
    • View Profile
Re: High CPU Usage since upgrade from 19.1.10 to 19.7
« Reply #5 on: July 18, 2019, 02:05:02 am »
This is what it says currently
« Last Edit: July 18, 2019, 02:09:30 am by cguilford »
Logged

cguilford

  • Full Member
  • ***
  • Posts: 130
  • Karma: 15
    • View Profile
Re: High CPU Usage since upgrade from 19.1.10 to 19.7
« Reply #6 on: July 18, 2019, 02:58:08 am »
   
PID
STATE
WCPU
COMMAND
   11   RUN   61.08%   [idle{idle: cpu3}]
   21721   CPU3   52.69%   /usr/local/bin/python3 /usr/local/opnsense/scripts/netflow/flowd_aggregate.py (python3.7)
   13223   wait   8.40%   /usr/local/bin/python3 /usr/local/opnsense/scripts/systemhealth/activity.py json (python3.7)
   53112   piperd   2.98%   /usr/local/bin/python3 /usr/local/opnsense/scripts/filter/update_tables.py (python3.7)
Logged

nivek1612

  • Full Member
  • ***
  • Posts: 214
  • Karma: 26
    • View Profile
Re: High CPU Usage since upgrade from 19.1.10 to 19.7
« Reply #7 on: July 18, 2019, 03:58:48 am »
yes I'm seeing higher CPI than normal

usually no more than 20% peek but now upto 35% (i7 chip)
Logged
OPNsense 24.7.* on Qotom i5-5250U with AAISP FTTP 900/120
OPNsense 24.7.* on Qotom i7-4500U with Orange FR FTTP 1000/400

Team Rebellion Member
One of Marjohns TESTERS :-)

Steven

  • Newbie
  • *
  • Posts: 46
  • Karma: 4
    • View Profile
Re: High CPU Usage since upgrade from 19.1.10 to 19.7
« Reply #8 on: July 18, 2019, 05:37:28 am »
netflow is using way more CPU cycles than what I would consider normal. In last release it was using python 2.7, I wonder if new python 3.0 usage is causing issue.

For example here is my System Diagnostic Activity while still on 19.1.10:
Code: [Select]
11 root 155 ki31 0 64K CPU0 0 835.0H 92.19% [idle{idle: cpu0}]
88347 root 25 0 1919M 325M select 1 135:00 8.89% /usr/local/bin/suricata -D --netmap --pidfile /var/run/suricata.pid -c /usr/local/etc/suricata/suricata.yaml{W#01-igb1}
27807 root 25 0 39M 32M select 1 73:28 6.49% /usr/local/bin/python2.7 /usr/local/opnsense/scripts/netflow/flowd_aggregate.py
18 root -16 - 0 16K - 3 107:38 2.10% [rand_harvestq]

As workaround to reduce CPU usage you could try to turn off NetFlow. I think you turn off netflow by going to Reporting: Netflow and clear all fields and uncheck capture local.

Or

Maybe try to "Reset Netflow Data" or "repair Netflow Data" at Reporting: Settings.
Logged

cguilford

  • Full Member
  • ***
  • Posts: 130
  • Karma: 15
    • View Profile
Re: High CPU Usage since upgrade from 19.1.10 to 19.7
« Reply #9 on: July 18, 2019, 12:15:56 pm »
I've already done the reset option thinking it will help resolve the problem.  Sadly it did not. I could try turning it off, but that has is open longer-term problem with no data capture.
Logged

cguilford

  • Full Member
  • ***
  • Posts: 130
  • Karma: 15
    • View Profile
Re: High CPU Usage since upgrade from 19.1.10 to 19.7
« Reply #10 on: July 18, 2019, 07:17:10 pm »
So I've turned off netflow completely by wiping out all settings under Netflow, reinstalled the package, ran  "Reset Netflow Data" or "repair Netflow Data" as well as turned off "Round-Robin-Database" the Webgui seems alot more "snappy" now I'm waiting on it to run to see how my processor load looks.


----######Update
So it was running great never spiked over 51% CPU usage with netflow completely wiped out and not running..  I've turned it back on with everything wiped clean including the package reinstall and currently it's running at attached...
« Last Edit: July 18, 2019, 07:31:15 pm by cguilford »
Logged

Steven

  • Newbie
  • *
  • Posts: 46
  • Karma: 4
    • View Profile
Re: High CPU Usage since upgrade from 19.1.10 to 19.7
« Reply #11 on: July 19, 2019, 06:26:39 am »
That seems much more normal now. Probably monitor it a few more times and see if it spikes again.
Logged

cguilford

  • Full Member
  • ***
  • Posts: 130
  • Karma: 15
    • View Profile
Re: High CPU Usage since upgrade from 19.1.10 to 19.7
« Reply #12 on: July 19, 2019, 04:18:21 pm »
After about 15 hrs of Running it is spiking again it seems...

   
22876   root   52   0   25M   22M   select   1   215:23   35.25%   /usr/local/bin/python3 /usr/local/opnsense/scripts/netflow/flowd_aggregate.py (python3.7)
Logged

gpb

  • Full Member
  • ***
  • Posts: 234
  • Karma: 13
    • View Profile
Re: High CPU Usage since upgrade from 19.1.10 to 19.7
« Reply #13 on: July 19, 2019, 04:28:49 pm »
Quote from: cguilford on July 19, 2019, 04:18:21 pm
After about 15 hrs of Running it is spiking again it seems...

Same results here.  It didn't take 15 hrs, about one hour.
Logged
HP T730/AMD  RX-427BB/8GB/500GB SSD
HP NC365T 4-PORT

cguilford

  • Full Member
  • ***
  • Posts: 130
  • Karma: 15
    • View Profile
Re: High CPU Usage since upgrade from 19.1.10 to 19.7
« Reply #14 on: July 19, 2019, 04:34:35 pm »
I was going to open an issue on github but seems someone did earlier this morning.
https://github.com/opnsense/core/issues/3587
Logged

  • Print
Pages: [1] 2
« previous next »
  • OPNsense Forum »
  • Archive »
  • 19.7 Legacy Series »
  • High CPU Usage since upgrade from 19.1.10 to 19.7
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2