Hello, 

After my non-published mail I added virtual servers memory from 6GB->12GB and 
noted that after 24 hours of letting one switch to run against PF v13 Web UI 
reports that total of 11.8GB RAM is used and about 40% of swap is used.... 
Any idea what's going on there in system? Current top ordered by MEM% included 
below... Seems that pfperl-api processes using about 38% of memory and apache 
takes around 30%... Is there a way to tune memory usage or is there problems 
there in current version of PF?

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
   5508 root      20   0  811852 681788   8176 S   0.0   5.7   0:44.44 
pfperl-api
   5503 root      20   0  759356 632244   6824 S   0.0   5.3   0:33.21 
pfperl-api
   5500 root      20   0  855724 624988   9172 S   0.0   5.2   0:39.85 
pfperl-api
   5507 root      20   0  796272 587552   8048 S   0.0   4.9   0:38.88 
pfperl-api
   5498 root      20   0  755116 565864   6868 S   0.0   4.7   0:32.95 
pfperl-api
   5505 root      20   0  744924 530180   7252 S   0.0   4.4   0:29.03 
pfperl-api
   5501 root      20   0  568492 474812   9808 S   0.0   4.0   0:32.94 
pfperl-api
   5502 root      20   0  512516 396584   9052 S   0.0   3.3   0:19.12 
pfperl-api
 160256 polkitd   20   0  340820 310004  12320 S   0.0   2.6   0:03.63 
/usr/sbin/apach
 160602 polkitd   20   0  339724 308836  12264 S   0.0   2.6   0:03.17 
/usr/sbin/apach
 163204 polkitd   20   0  334900 299880  12264 S   0.0   2.5   0:00.22 
/usr/sbin/apach
   2818 root      20   0  384156 274624  11296 S   0.3   2.3   0:38.65 
pfperl-api
    657 root      20   0  428664 268564 233280 S   0.0   2.2   1:28.69 
systemd-journal
   5082 root      20   0  334336 260332  14532 S   0.0   2.2   0:14.71 
/usr/sbin/apach
  11888 pf        20   0  266612 221148   9984 S   0.0   1.8   0:02.70 
/usr/sbin/apach
  11886 pf        20   0  266600 215648  10096 S   0.0   1.8   0:02.71 
/usr/sbin/apach
   6350 polkitd   20   0  267904 213024   8272 S   0.0   1.8   0:27.41 
/usr/sbin/apach
  11884 pf        20   0  266468 208736   9600 S   0.0   1.7   0:02.76 
/usr/sbin/apach
  11887 pf        20   0  266468 197348   9592 S   0.0   1.6   0:02.65 
/usr/sbin/apach
   6356 polkitd   20   0  267900 196344   8244 S   0.0   1.6   0:27.27 
/usr/sbin/apach
   6352 polkitd   20   0  267772 193228   8044 S   0.0   1.6   0:27.32 
/usr/sbin/apach
   1796 root      20   0  255540 188116  10852 S   0.3   1.6  12:39.16 pfconfig
  16081 polkitd   20   0  267116 177668   8072 S   0.0   1.5   0:26.70 
/usr/sbin/apach
   6354 polkitd   20   0  266296 174788   7492 S   0.0   1.5   0:27.67 
/usr/sbin/apach
   4310 root      20   0  264716 165616  13744 S   0.0   1.4   0:11.69 
/usr/sbin/apach
 161177 root      20   0  521216 155484  10328 S   0.3   1.3   0:01.98 pfqueue 
- worke
 161196 root      20   0  521212 155424  10264 S   0.0   1.3   0:01.95 pfqueue 
- worke
 161494 root      20   0  521080 155268  10328 S   0.0   1.3   0:01.68 pfqueue 
- worke
 161663 root      20   0  520964 154964  10264 S   0.0   1.3   0:01.57 pfqueue 
- worke
  11854 root      20   0  264700 150184  13772 S   0.0   1.3   0:09.41 
/usr/sbin/apach
   3049 root      20   0  510504 143088   9916 S   0.7   1.2  17:21.37 pfqueue
 160751 root      20   0  510656 138972   3528 S   0.0   1.2   0:01.98 pfqueue 
- Queue
 160787 root      20   0  510656 138964   3528 S   0.3   1.2   0:01.93 pfqueue 
- Queue
 161664 root      20   0  510656 138696   3528 S   0.0   1.2   0:01.31 pfqueue 
- Queue
 162659 root      20   0  510656 138640   3528 S   0.0   1.2   0:00.54 pfqueue 
- Queue
 162372 root      20   0  510656 138636   3528 S   0.0   1.2   0:00.76 pfqueue 
- Queue
 163053 root      20   0  510656 138632   3528 S   0.3   1.2   0:00.22 pfqueue 
- Queue
 163132 root      20   0  510656 138632   3528 S   0.0   1.2   0:00.17 pfqueue 
- Queue
  17638 root      20   0  439988 130796   9388 S   0.0   1.1   0:14.76 perl
   2236 mysql     20   0 4092396  99452  13624 S   0.3   0.8   6:04.05 mariadbd
   4584 root      20   0  520376  92952   7392 S   0.0   0.8   0:02.02 pfqueue 
- worke
   5185 netdata   20   0  283908  83960   4296 S   0.7   0.7  21:12.68 netdata
   4831 root      20   0  421060  80280   6112 S   0.0   0.7   0:00.39 
pfdhcplistener
  18790 root      20   0 1605876  79056   5348 S   0.0   0.7   1:52.12 pfcron
   7107 root      20   0  815764  67220  11012 S   0.0   0.6   0:07.22 radiusd
   2434 root      20   0 2313012  66016  23440 S  17.7   0.6 387:55.87 
fingerbank-coll


Regs.
-Jori Luoto-

Lähetetty: keskiviikko 25. lokakuuta 2023 9.59
Vastaanottaja: [email protected] 
<[email protected]>
Aihe: PF memory usage causes high CPU utilization... 
 
Hello,


After debugging my previous problem where Radius seemed to not send proper 
attributes to switch I noticed that problem was more in server where cpu usage 
was >100 and memory & swap had 100% full (For reason unknown this morning 
system worked well with full swap too... Except now after 10mins of use and 
raddebug I got another meltdown)

After rebooting PF server everything works really fine for about half a day but 
bit by bit swap space is filling up and when swap is full cpu utilization 
explodes from "normal" (1min avg around 0.8->2) to 100-200 which causes total 
freeze in Radius and of corse webUI too.

Any idea is this some kind of bug if PF, compatibility issue while using 
VirtualBox or  6GB of ram for one switch having one port to test mac auth is 
just not enough and 16GB is really needed? 


My test system is running on AMD Rhyzen 7 having 8 cores/16 threads and 16G of 
physical memory. PF 13.0 is installed to Centos 8 Stream which is installed to  
VirtualBox instance allocating 6 cpu cores and 6GB of ram to PF...

********* TOP DATA ****

top - 09:14:39 up 4 days, 21:16,  1 user,  load average: 0.15, 0.29, 0.30
Tasks: 360 total,   2 running, 357 sleeping,   0 stopped,   1 zombie
%Cpu(s):  1.1 us,  0.9 sy,  0.0 ni, 96.9 id,  0.1 wa,  0.8 hi,  0.3 si,  0.0 st
MiB Mem :   5668.6 total,    117.0 free,   5277.5 used,    274.1 buff/cache
MiB Swap:   4052.0 total,      0.0 free,   4052.0 used.    145.8 avail Mem

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
 338699 root      20   0  718424 482696   1340 S   0.0   8.3   0:37.33 
pfperl-api
 338700 root      20   0  706928 438328   1336 S   0.0   7.6   0:35.92 
pfperl-api
 338701 root      20   0  692636 435892   1540 S   0.0   7.5   0:43.80 
pfperl-api
 338702 root      20   0  682104 349364   2272 S   0.0   6.0   0:36.18 
pfperl-api
 338705 root      20   0  471964 304400   2212 S   0.0   5.2   0:26.88 
pfperl-api
 338704 root      20   0  462852 287584   1404 S   0.0   5.0   0:24.00 
pfperl-api
 338703 root      20   0  454212 279320   2076 S   0.0   4.8   0:31.32 
pfperl-api
 338698 root      20   0  477828 221312   2144 S   0.0   3.8   0:31.69 
pfperl-api
 338670 root      20   0  384332 181592      0 S   0.0   3.1   0:46.31 
pfperl-api
   3723 root      20   0 1742512 170492      0 S   0.0   2.9  10:43.97 pfcron
 362529 root      20   0  258244 155680      0 S   0.0   2.7   0:15.33 
freeradius
   2212 mysql     20   0 4097316  81144      0 S   0.0   1.4  20:57.45 mariadbd
 367143 netdata   20   0  280556  76420      0 S   1.0   1.3   8:44.09 netdata
   1738 root      20   0  223308  75196      0 S   0.7   1.3  70:07.59 pfconfig
 367390 root      20   0   94208  41784  39724 S   0.0   0.7   0:24.15 radsniff
 423035 polkitd   20   0  334672  41300   2040 S   0.0   0.7   0:01.41 
/usr/sbin/apach
 423036 polkitd   20   0  334672  41104   1980 S   0.0   0.7   0:01.38 
/usr/sbin/apach
 423037 polkitd   20   0  334672  41080   1980 S   0.0   0.7   0:01.38 
/usr/sbin/apach
 405467 polkitd   20   0  270116  40564   2096 S   0.0   0.7   0:08.60 
/usr/sbin/apach
 405347 polkitd   20   0  270116  40336   2008 S   0.0   0.7   0:09.00 
/usr/sbin/apach
 405881 polkitd   20   0  270116  40092   2044 S   0.0   0.7   0:08.17 
/usr/sbin/apach
   1062 root      20   0 2908136  32640      0 S   0.0   0.6   2:48.34 dockerd
 373369 pf        20   0  270176  31272   2252 S   0.0   0.5   0:02.21 
/usr/sbin/apach
 346074 pf        20   0  270176  31116   3956 S   0.0   0.5   0:03.29 
/usr/sbin/apach
 422305 root      20   0 1506196  30868   2084 S   0.0   0.5   0:00.40 docker
 346729 pf        20   0  270176  29420   2960 S   0.0   0.5   0:03.59 
/usr/sbin/apach
 320900 pf        20   0  270176  29288   3116 S   0.0   0.5   0:10.85 
/usr/sbin/apach
 422417 root      20   0 1550472  28524      0 S   0.0   0.5   0:10.81 pfhttpd
 393353 root      20   0  244088  26128  16576 S   0.0   0.5   0:21.64 
systemd-journal
   5697 root      20   0  334340  24572    192 S   0.0   0.4   0:47.70 
/usr/sbin/apach
    834 root      20   0 1646336  23256      0 S   0.0   0.4   4:08.45 
containerd
 423621 root      20   0  515536  22684   2076 S   0.0   0.4   0:02.48 pfqueue 
- Queue
 423684 root      20   0  515536  22672   2076 S   0.0   0.4   0:02.49 pfqueue 
- worke
 423664 root      20   0  515536  22416   2076 S   0.0   0.4   0:02.35 pfqueue 
- Queue
 423708 root      20   0  515536  22400   2076 S   0.0   0.4   0:02.47 pfqueue 
- worke
 367130 root      20   0 1612528  22028      0 S   0.7   0.4   4:21.17 pfstats
 423941 root      20   0  515536  21644   2076 S   0.0   0.4   0:01.88 pfqueue 
- Queue
 423955 root      20   0  515536  21616   2076 S   0.3   0.4   0:02.07 pfqueue 
- worke
 424030 root      20   0  515536  21376   2076 S   0.0   0.4   0:01.82 pfqueue 
- Queue
 393617 root      20   0 1580184  21288      0 S   0.0   0.4   0:01.89 docker
 424276 root      20   0  515536  20592   2076 S   0.0   0.4   0:01.47 pfqueue 
- Queue
 424391 root      20   0  515536  20588   2076 S   0.7   0.4   0:01.23 pfqueue 
- Queue
 424347 root      20   0  515536  20564   2076 S   0.3   0.4   0:01.39 pfqueue 
- worke
 424412 root      20   0  515536  20332   2076 S   0.3   0.4   0:01.17 pfqueue 
- Queue
 424460 root      20   0  515536  20332   2076 S   0.3   0.4   0:01.09 pfqueue 
- Queue
 424817 root      20   0  515536  20068   2076 S   0.0   0.3   0:00.56 pfqueue 
- worke
 424892 root      20   0  515536  19952   2080 S   0.3   0.3   0:00.41 pfqueue 
- worke
 424905 root      20   0  515536  19952   2080 S   0.3   0.3   0:00.41 pfqueue 
- worke
 425053 root      20   0  515536  19952   2228 S   0.3   0.3   0:00.14 pfqueue 
- Queue
 424888 root      20   0  515536  19940   2080 S   0.0   0.3   0:00.44 pfqueue 
- worke






Terveisin

-jori






_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to