Memory Usage
-
Hi all,
My pfsense used 90% of memory (Total 32G). I disconnect it from my network for few days ago (No Traffic, NO connection, low state table 7 records only, low CPU). I still see the 90% memory usage in PFsense. How can I free the inactive/unuse memory? . I don't want to reboot the pfsnese to solve the issue.
Please advise.
-
That's a ton of memory usage. What does Diag>System Activity show?
-
last pid: 49136; load averages: 0.02, 0.11, 0.22 up 0+17:57:36 02:43:18
183 processes: 13 running, 113 sleeping, 57 waitingMem: 21M Active, 67M Inact, 31G Wired, 322M Buf, 467M Free
Swap: 64G Total, 64G FreePID USERNAME PRI NICE SIZE RES STATE C TIME WCPU COMMAND
11 root 155 ki31 0K 192K CPU8 8 17.9H 100.00% [idle{idle: cpu8}]
11 root 155 ki31 0K 192K CPU7 7 17.9H 100.00% [idle{idle: cpu7}]
11 root 155 ki31 0K 192K CPU2 2 17.8H 100.00% [idle{idle: cpu2}]
11 root 155 ki31 0K 192K CPU3 3 17.8H 100.00% [idle{idle: cpu3}]
11 root 155 ki31 0K 192K CPU10 10 17.8H 100.00% [idle{idle: cpu10}]
11 root 155 ki31 0K 192K CPU11 11 17.8H 100.00% [idle{idle: cpu11}]
11 root 155 ki31 0K 192K CPU0 0 17.8H 100.00% [idle{idle: cpu0}]
11 root 155 ki31 0K 192K CPU9 9 812:51 100.00% [idle{idle: cpu9}]
11 root 155 ki31 0K 192K CPU4 4 613:28 100.00% [idle{idle: cpu4}]
11 root 155 ki31 0K 192K CPU1 1 17.9H 99.76% [idle{idle: cpu1}]
11 root 155 ki31 0K 192K CPU5 5 17.9H 99.27% [idle{idle: cpu5}]
11 root 155 ki31 0K 192K RUN 6 17.9H 99.27% [idle{idle: cpu6}]
47144 root 21 0 233M 38180K piperd 1 0:00 0.10% php-fpm: pool lighty (php-fpm)
0 root -16 0 0K 544K swapin 8 53.5H 0.00% [kernel{swapper}]
12 root -92 - 0K 912K WAIT 4 464:36 0.00% [intr{irq16: bge0}]
0 root -92 0 0K 544K - 9 264:32 0.00% [kernel{em0 que}]
0 root -92 0 0K 544K - 11 5:38 0.00% [kernel{em2 que}]
0 root -92 0 0K 544K - 10 5:38 0.00% [kernel{em1 que}] -
Hm, most all in wired. Doesn't show the process(es) there responsible for any significant memory usage. Via SSH, run:
top -o res -SH
and post that output, that should show the culprit.
-
Hi,
$ top -o res -SH
last pid: 93452; load averages: 2.46, 2.03, 1.05 up 0+01:33:06 05:41:19
181 processes: 13 running, 111 sleeping, 57 waitingMem: 30M Active, 54M Inact, 30G Wired, 152M Buf, 696M Free
Swap: 64G Total, 64G FreePID USERNAME PRI NICE SIZE RES STATE C TIME WCPU COMMAND
27968 root 23 0 238M 39592K uwrlck 8 0:00 0.00% php-fpm{php-fpm}
27968 root 20 0 238M 39592K kqread 10 0:00 0.00% php-fpm{php-fpm}
71376 root 21 0 233M 37552K piperd 5 0:01 0.49% php-fpm
240 root 20 0 229M 21884K kqread 0 0:00 0.00% php-fpm
8996 root 20 0 28344K 18120K select 5 0:41 3.56% ntpd{ntpd}
8996 root 20 0 28344K 18120K kqread 8 0:00 0.00% ntpd{ntpd}
28501 root 20 0 62848K 17036K select 6 0:39 2.39% bsnmpd
18813 root 20 0 85556K 5708K kqread 3 0:00 0.00% lighttpd
6052 root 52 0 32424K 5196K select 9 0:00 0.00% sshd
273 root 20 0 13160K 4448K select 4 0:00 0.00% devd
28825 root 20 0 17476K 3368K ttyin 5 0:00 0.00% tcsh
93452 root 21 0 21988K 2948K CPU10 10 0:00 0.00% top
11467 root 20 0 16804K 2788K bpf 6 1:01 2.59% filterlog
26420 root 21 0 43568K 2660K wait 8 0:00 0.00% login
26522 root 21 0 17136K 2628K wait 8 0:00 0.00% sh
26830 root 52 0 17136K 2516K wait 4 0:00 0.00% sh
256 root 41 20 19024K 2492K kqread 4 0:00 0.00% check_reload_status
30428 root 52 20 17136K 2408K wait 2 0:00 0.00% sh