https://redmine.pfsense.org/
https://redmine.pfsense.org/favicon.ico?1678052116
2018-10-30T09:22:24Z
pfSense bugtracker
pfSense Packages - Bug #9079: High CPU usage of ntopng even during IDLE and no network traffic
https://redmine.pfsense.org/issues/9079?journal_id=39085
2018-10-30T09:22:24Z
Hannes W.
<ul></ul><p>TOP shows that the ntopng process is in the only one in nanslp (nanosleep) mode if this helps.</p>
pfSense Packages - Bug #9079: High CPU usage of ntopng even during IDLE and no network traffic
https://redmine.pfsense.org/issues/9079?journal_id=39086
2018-10-30T09:23:54Z
Jim Pingle
<ul><li><strong>Target version</strong> deleted (<del><i>2.4.4-p1</i></del>)</li></ul><p>It's not clear there is anything we can do at all here. This is most likely an issue in ntopng itself, not something specific to pfSense or the package.</p>
<p>Try to reproduce it on a stock FreeBSD 11.2 setup with ntopng. If it's still a problem there, report it to ntopng and maybe the FreeBSD port maintainer.</p>
pfSense Packages - Bug #9079: High CPU usage of ntopng even during IDLE and no network traffic
https://redmine.pfsense.org/issues/9079?journal_id=39585
2018-12-15T09:24:57Z
Joshua Sign
<ul></ul><p>I use ntop and didn't notice this problem.<br />Maybe some ntop options can cause more cpu usage...</p>
<p>I use Pfsense 2.4.4-RELEASE-p1 (amd64) <br />on Intel(R) Xeon(R) CPU E5606 @ 2.13GHz - 4 CPUs: 1 package(s) x 4 core(s)<br />with 16Go RAM</p>
<p>Here is un exemple of CPU usage by top during 30 seconds (1 line by second) for my ntopng process :<br /><pre>
72614 root 24 20 0 167M 121M nanslp 3 21:49 1.27% ntopng
72614 root 24 20 0 167M 121M nanslp 3 21:49 0.98% ntopng
72614 root 24 20 0 167M 121M nanslp 3 21:49 0.78% ntopng
72614 root 24 20 0 167M 121M nanslp 3 21:49 0.88% ntopng
72614 root 24 20 0 167M 121M nanslp 1 21:49 0.88% ntopng
72614 root 24 20 0 167M 121M nanslp 1 21:49 0.78% ntopng
72614 root 24 20 0 167M 121M nanslp 1 21:49 0.88% ntopng
72614 root 24 20 0 167M 121M nanslp 1 21:49 0.78% ntopng
72614 root 24 20 0 167M 121M nanslp 1 21:49 0.68% ntopng
72614 root 24 20 0 167M 121M nanslp 1 21:49 0.98% ntopng
72614 root 24 20 0 167M 121M nanslp 1 21:49 0.78% ntopng
72614 root 24 20 0 167M 121M nanslp 1 21:49 0.68% ntopng
72614 root 24 20 0 167M 121M nanslp 1 21:49 0.88% ntopng
72614 root 24 20 0 167M 121M nanslp 1 21:49 0.78% ntopng
72614 root 24 20 0 168M 122M nanslp 1 21:49 0.78% ntopng
72614 root 24 20 0 167M 121M nanslp 1 21:49 0.88% ntopng
72614 root 24 20 0 167M 121M nanslp 1 21:49 0.68% ntopng
72614 root 24 20 0 167M 121M nanslp 1 21:49 0.68% ntopng
72614 root 24 20 0 167M 121M nanslp 1 21:49 0.88% ntopng
72614 root 24 20 0 167M 121M nanslp 1 21:50 0.78% ntopng
72614 root 24 20 0 167M 121M nanslp 1 21:50 0.68% ntopng
72614 root 24 20 0 167M 121M nanslp 1 21:50 0.88% ntopng
72614 root 24 20 0 167M 121M nanslp 1 21:50 0.68% ntopng
72614 root 24 20 0 167M 121M nanslp 1 21:50 0.68% ntopng
72614 root 24 20 0 167M 121M nanslp 2 21:50 0.98% ntopng
72614 root 24 20 0 167M 121M nanslp 2 21:50 0.68% ntopng
72614 root 24 20 0 167M 121M nanslp 2 21:50 0.59% ntopng
72614 root 24 20 0 167M 121M nanslp 2 21:50 0.78% ntopng
72614 root 24 20 0 167M 121M nanslp 0 21:50 0.68% ntopng
72614 root 24 20 0 167M 121M nanslp 0 21:50 0.78% ntopng
</pre></p>
<p>You can try to check your cpu usage with this little script i just wrote :</p>
<pre>
#!/bin/sh
if [ -z $1 ]; then
echo "Usage : $0 process_name [duration]"
echo " Default duration is 30 seconds"
exit 1
fi
duration=30
if [ -z $2 ]; then
duration=30
else
duration=$2
fi
echo "Create new log_process.txt file"
echo -n > log_process.txt
echo "Recording usage of process $1 for $duration seconds, please wait..."
for i in `seq 1 $duration`; do
top -b | grep $1 >> log_process.txt
sleep 1
done
echo "You can check the log_process.txt file"
</pre>
<p>Put it in the /root directory and dont forget to chmod 755.</p>
pfSense Packages - Bug #9079: High CPU usage of ntopng even during IDLE and no network traffic
https://redmine.pfsense.org/issues/9079?journal_id=39593
2018-12-16T14:40:46Z
Hannes W.
<ul></ul><p>Thanks for the script. Since version 2.4.4-p1 with the new version of ntopng the CPU idle usage did improve:<br />(weaker CPU than your Xeon so almost the same):</p>
<p>25551 root 24 20 0 163M 120M nanslp 2 60:15 5.32% ntopng<br />25551 root 24 20 0 163M 120M nanslp 2 60:15 4.54% ntopng<br />25551 root 24 20 0 163M 120M nanslp 2 60:15 4.15% ntopng<br />25551 root 24 20 0 163M 120M nanslp 2 60:15 4.54% ntopng<br />25551 root 24 20 0 163M 120M nanslp 1 60:15 3.96% ntopng<br />25551 root 24 20 0 163M 120M nanslp 1 60:15 4.25% ntopng<br />25551 root 24 20 0 163M 120M nanslp 1 60:15 4.64% ntopng<br />25551 root 24 20 0 163M 120M nanslp 1 60:15 4.15% ntopng<br />25551 root 24 20 0 163M 120M nanslp 3 60:15 3.66% ntopng<br />25551 root 24 20 0 163M 120M nanslp 3 60:15 5.13% ntopng<br />25551 root 24 20 0 163M 120M nanslp 3 60:15 4.44% ntopng<br />25551 root 24 20 0 163M 120M nanslp 3 60:15 3.96% ntopng<br />25551 root 24 20 0 163M 120M nanslp 3 60:15 4.35% ntopng<br />25551 root 24 20 0 163M 120M nanslp 0 60:15 3.76% ntopng<br />25551 root 24 20 0 163M 120M nanslp 0 60:16 4.15% ntopng<br />25551 root 24 20 0 163M 120M nanslp 0 60:16 4.54% ntopng<br />25551 root 24 20 0 163M 120M nanslp 0 60:16 4.15% ntopng<br />25551 root 24 20 0 163M 120M nanslp 0 60:16 3.56% ntopng<br />25551 root 24 20 0 163M 120M nanslp 1 60:16 4.15% ntopng<br />25551 root 24 20 0 163M 120M nanslp 1 60:16 4.35% ntopng<br />25551 root 24 20 0 163M 120M nanslp 1 60:16 3.76% ntopng<br />25551 root 24 20 0 163M 120M nanslp 1 60:16 4.35% ntopng<br />25551 root 24 20 0 163M 120M nanslp 1 60:16 3.86% ntopng<br />25551 root 24 20 0 163M 120M nanslp 3 60:16 3.27% ntopng<br />25551 root 24 20 0 163M 120M nanslp 3 60:16 4.64% ntopng<br />25551 root 24 20 0 163M 120M nanslp 3 60:16 4.05% ntopng<br />25551 root 24 20 0 163M 121M nanslp 3 60:16 3.56% ntopng<br />25551 root 24 20 0 163M 120M nanslp 0 60:16 3.96% ntopng<br />25551 root 24 20 0 163M 120M nanslp 0 60:16 3.37% ntopng<br />25551 root 24 20 0 164M 122M nanslp 0 60:17 4.64% ntopng</p>