DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th August 2008
chavez243 chavez243 is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Leamington, ON
Posts: 50
Thanked 2 Times in 2 Posts
Default dwindling memory

got a Fbsd 6.3 server that I monitor with Cacti - starting last wednesday, free memory started a downward slide. I've restarted the basic services that the server runs - squid / apache.


top output

Code:
last pid: 13246;  load averages:  0.00,  0.00,  0.00   up 128+18:17:09 09:28:02
92 processes:  1 running, 91 sleeping
CPU states:  0.0% user,  0.0% nice,  1.1% system,  0.0% interrupt, 98.9% idle
Mem: 52M Active, 663M Inact, 155M Wired, 111M Buf, 126M Free
Swap: 2012M Total, 2012M Free
any tips on finding where the memory is going?

I can't think of anything that changed as of last wednesday that would have starting this ball rolling...
Reply With Quote
  #2   (View Single Post)  
Old 25th August 2008
Weaseal's Avatar
Weaseal Weaseal is offline
Package Pilot
 
Join Date: May 2008
Location: East Coast, US
Posts: 177
Thanked 7 Times in 7 Posts
Default

Try
Code:
top
and
Code:
ps maxu
__________________
FreeBSD addict since 4.2-RELEASE.
My FreeBSD wiki.
Reply With Quote
  #3   (View Single Post)  
Old 25th August 2008
chavez243 chavez243 is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Leamington, ON
Posts: 50
Thanked 2 Times in 2 Posts
Default

Code:
p1-p42-b63x86# ps maxu
USER    PID %CPU %MEM   VSZ   RSS  TT  STAT STARTED      TIME COMMAND
root     10 99.0  0.0     0     8  ??  RL   18Apr08 181724:58.50 [idle]
root      0  0.0  0.0     0     0  ??  WLs  18Apr08   0:00.00 [swapper]
root      1  0.0  0.0   768   388  ??  ILs  18Apr08   0:00.13 /sbin/init --
root      2  0.0  0.0     0     8  ??  DL   18Apr08   3:22.36 [g_event]
root      3  0.0  0.0     0     8  ??  DL   18Apr08   4:17.51 [g_up]
root      4  0.0  0.0     0     8  ??  DL   18Apr08   4:16.71 [g_down]
root      5  0.0  0.0     0     8  ??  DL   18Apr08   0:00.00 [thread taskq]
root      6  0.0  0.0     0     8  ??  DL   18Apr08   0:00.00 [acpi_task_0]
root      7  0.0  0.0     0     8  ??  DL   18Apr08   0:00.00 [acpi_task_1]
root      8  0.0  0.0     0     8  ??  DL   18Apr08   0:00.00 [acpi_task_2]
root      9  0.0  0.0     0     8  ??  DL   18Apr08   0:00.00 [kqueue taskq]
root     11  0.0  0.0     0     8  ??  WL   18Apr08 237:00.43 [swi4: clock sio]
root     12  0.0  0.0     0     8  ??  WL   18Apr08   0:00.00 [swi3: vm]
root     13  0.0  0.0     0     8  ??  WL   18Apr08   1:45.53 [swi1: net]
root     14  0.0  0.0     0     8  ??  DL   18Apr08   3:33.54 [yarrow]
root     15  0.0  0.0     0     8  ??  WL   18Apr08   0:00.00 [swi6: task queue
root     16  0.0  0.0     0     8  ??  WL   18Apr08   0:00.00 [swi6: Giant task
root     17  0.0  0.0     0     8  ??  WL   18Apr08   0:00.00 [swi5: +]
root     18  0.0  0.0     0     8  ??  DL   18Apr08   0:00.00 [xpt_thrd]
root     19  0.0  0.0     0     8  ??  WL   18Apr08   0:00.00 [swi2: cambio]
root     20  0.0  0.0     0     8  ??  WL   18Apr08   0:00.00 [irq9: acpi0]
root     21  0.0  0.0     0     8  ??  WL   18Apr08   0:55.47 [irq6: atapci0]
root     22  0.0  0.0     0     8  ??  WL   18Apr08   0:00.00 [irq14: ata0]
root     23  0.0  0.0     0     8  ??  WL   18Apr08   0:00.00 [irq15: ata1]
root     24  0.0  0.0     0     8  ??  WL   18Apr08   0:00.00 [irq11: ohci0 ohc
root     25  0.0  0.0     0     8  ??  DL   18Apr08   0:00.53 [usb0]
root     26  0.0  0.0     0     8  ??  DL   18Apr08   0:00.00 [usbtask]
root     27  0.0  0.0     0     8  ??  DL   18Apr08   0:00.46 [usb1]
root     28  0.0  0.0     0     8  ??  DL   18Apr08   0:00.46 [usb2]
root     29  0.0  0.0     0     8  ??  WL   18Apr08   0:50.65 [irq33: bge0]
root     30  0.0  0.0     0     8  ??  WL   18Apr08   0:00.00 [irq37: bge1]
root     31  0.0  0.0     0     8  ??  WL   18Apr08   0:00.00 [swi0: sio]
root     32  0.0  0.0     0     8  ??  WL   18Apr08   0:00.00 [irq1: atkbd0]
root     33  0.0  0.0     0     8  ??  DL   18Apr08   0:05.87 [pagedaemon]
root     34  0.0  0.0     0     8  ??  DL   18Apr08   0:00.00 [vmdaemon]
root     35  0.0  0.0     0     8  ??  DL   18Apr08   0:42.90 [pagezero]
root     36  0.0  0.0     0     8  ??  DL   18Apr08   0:27.20 [bufdaemon]
root     37  0.0  0.0     0     8  ??  DL   18Apr08 153:00.87 [syncer]
root     38  0.0  0.0     0     8  ??  DL   18Apr08   0:24.66 [vnlru]
root     39  0.0  0.0     0     8  ??  DL   18Apr08   0:36.91 [softdepflush]
root     40  0.0  0.0     0     8  ??  DL   18Apr08   2:50.33 [schedcpu]
root    121  0.0  0.1  1260   716  ??  Is   18Apr08   0:00.00 adjkerntz -i
root    432  0.0  0.0   528   380  ??  Is   18Apr08   0:00.00 /sbin/devd
root    560  0.0  0.1  1404  1072  ??  Ss   18Apr08   1:30.82 /usr/sbin/syslogd
bind    635  0.0  1.8 19768 18452  ??  Is   18Apr08   0:47.27 /usr/sbin/named -
root    713  0.0  0.2  3008  1852  ??  Ss   18Apr08   1:33.77 /usr/sbin/ntpd -c
root    733  0.0  0.1  1296   824  ??  Ss   18Apr08   0:06.42 /usr/sbin/usbd
root    755  0.0  0.5  8108  5688  ??  Ss   18Apr08   1:25.58 /usr/local/sbin/h
root    776  0.0  0.3  3552  2688  ??  Is   18Apr08   0:00.02 /usr/sbin/sshd
root    782  0.0  0.3  3508  2932  ??  Ss   18Apr08   1:19.87 sendmail: accepti
smmsp   786  0.0  0.3  3408  2792  ??  Is   18Apr08   0:01.78 sendmail: Queue r
root    792  0.0  0.1  1396  1104  ??  Is   18Apr08   0:17.95 /usr/sbin/cron -s
root    822  0.0  0.1  1732  1260  ??  Is   18Apr08   0:00.00 /usr/libexec/ftpd
root  11514  0.0  0.1  1724  1212  ??  I    10:32PM   0:00.00 /bin/sh -c /usr/l
root  11515  0.0  0.1  1404   680  ??  I    10:32PM   0:00.00 /usr/local/sbin/c
root  11516  0.0  0.1  1724  1212  ??  I    10:32PM   0:00.00 /bin/sh -c /usr/l
www   11517  0.0  0.6  8204  5816  ??  I    10:32PM   0:00.00 /usr/local/sbin/h
www   11518  0.0  0.6  8168  5744  ??  I    10:32PM   0:00.00 /usr/local/sbin/h
www   11519  0.0  0.6  8144  5716  ??  I    10:32PM   0:00.00 /usr/local/sbin/h
www   11520  0.0  0.6  8144  5716  ??  I    10:32PM   0:00.00 /usr/local/sbin/h
www   11521  0.0  0.6  8144  5716  ??  I    10:32PM   0:00.00 /usr/local/sbin/h
root  11522  0.0  0.1  1404   680  ??  I    10:32PM   0:00.00 /usr/local/sbin/c
www   11539  0.0  0.6  8148  5720  ??  I    10:34PM   0:00.00 /usr/local/sbin/h
squid 12011  0.0  0.1  2448  1540  ??  Is    2:00AM   0:00.00 (squidGuard) -c /
squid 12012  0.0  0.1  2448  1540  ??  Is    2:00AM   0:00.00 (squidGuard) -c /
squid 12013  0.0  0.1  2448  1540  ??  Is    2:00AM   0:00.00 (squidGuard) -c /
squid 12014  0.0  0.1  2448  1540  ??  Is    2:00AM   0:00.00 (squidGuard) -c /
squid 12015  0.0  0.1  2448  1540  ??  Is    2:00AM   0:00.00 (squidGuard) -c /
squid 12016  0.0  0.1  2448  1540  ??  Is    2:00AM   0:00.00 (squidGuard) -c /
squid 12017  0.0  0.1  2448  1540  ??  Is    2:00AM   0:00.00 (squidGuard) -c /
squid 12018  0.0  0.1  2448  1540  ??  Is    2:00AM   0:00.00 (squidGuard) -c /
squid 12019  0.0  0.1  2448  1540  ??  Is    2:00AM   0:00.00 (squidGuard) -c /
squid 12020  0.0  0.1  2448  1540  ??  Is    2:00AM   0:00.00 (squidGuard) -c /
squid 12021  0.0  0.1  2448  1540  ??  Is    2:00AM   0:00.00 (squidGuard) -c /
squid 12022  0.0  0.1  2448  1540  ??  Is    2:00AM   0:00.00 (squidGuard) -c /
squid 12023  0.0  0.1  1688   960  ??  Is    2:00AM   0:00.00 (ncsa_auth) /usr/
squid 12024  0.0  0.1  1688   960  ??  Is    2:00AM   0:00.00 (ncsa_auth) /usr/
squid 12025  0.0  0.1  1688   960  ??  Is    2:00AM   0:00.00 (ncsa_auth) /usr/
squid 12026  0.0  0.1  1688   960  ??  Is    2:00AM   0:00.00 (ncsa_auth) /usr/
squid 12027  0.0  0.1  1688   960  ??  Is    2:00AM   0:00.00 (ncsa_auth) /usr/
root  13167  0.0  0.3  6304  3332  ??  Is    8:56AM   0:00.02 sshd: xxxxx [priv
xxxxx 13170  0.0  0.3  6280  3340  ??  S     8:56AM   0:00.06 sshd: xxxxx@ttyp0
root  39563  0.0  0.5  7116  5364  ??  S     5Aug08  69:39.04 /usr/local/sbin/s
root  53022  0.0  0.2  3680  2208  ??  Is    9Aug08   0:00.00 squid
squid 53024  0.0  1.4 18456 14732  ??  S     9Aug08   1:37.27 (squid) (squid)
squid 53042  0.0  0.1  1256   580  ??  Is    9Aug08   0:00.00 (unlinkd) (unlink
root  57673  0.0  0.1  1404   680  ??  I    31Jul08   0:00.00 /usr/local/sbin/c
root  57696  0.0  0.1  1404   680  ??  I    31Jul08   0:00.00 /usr/local/sbin/c
root  57712  0.0  0.1  1404   680  ??  I    31Jul08   0:00.01 /usr/local/sbin/c
root    834  0.0  0.1  1352   932  v0  Is+  18Apr08   0:00.00 /usr/libexec/gett
root    835  0.0  0.1  1352   932  v1  Is+  18Apr08   0:00.00 /usr/libexec/gett
root    836  0.0  0.1  1352   932  v2  Is+  18Apr08   0:00.00 /usr/libexec/gett
root    837  0.0  0.1  1352   932  v3  Is+  18Apr08   0:00.00 /usr/libexec/gett
root    838  0.0  0.1  1352   932  v4  Is+  18Apr08   0:00.00 /usr/libexec/gett
root    839  0.0  0.1  1352   932  v5  Is+  18Apr08   0:00.00 /usr/libexec/gett
root    840  0.0  0.1  1352   932  v6  Is+  18Apr08   0:00.00 /usr/libexec/gett
root    841  0.0  0.1  1352   932  v7  Is+  18Apr08   0:00.00 /usr/libexec/gett
xxxx 13172  0.0  0.1  1764  1388  p0  Is    8:56AM   0:00.00 -sh (sh)
root  13173  0.0  0.1  1804  1424  p0  I     8:56AM   0:00.01 su
root  13174  0.0  0.3  4996  2960  p0  R     8:56AM   0:00.02 _su (csh)
root  13287  0.0  0.1  1508   984  p0  R+    9:48AM   0:00.00 ps maxu
both ps maxu and top don't seem to indicate the problem - other than top showing 52M of RAM and 600MB+ Inact
Reply With Quote
  #4   (View Single Post)  
Old 25th August 2008
Weaseal's Avatar
Weaseal Weaseal is offline
Package Pilot
 
Join Date: May 2008
Location: East Coast, US
Posts: 177
Thanked 7 Times in 7 Posts
Default

Here's the top of my top:
Code:
CPU states:  0.8% user,  0.0% nice,  0.0% system,  0.8% interrupt, 98.5% idle
Mem: 216M Active, 476M Inact, 256M Wired, 25M Cache, 111M Buf, 8320K Free
Swap: 2019M Total, 33M Used, 1986M Free, 1% Inuse
So I think what we're seeing here is fairly standard. I think it's just the way FreeBSD allocates memory. Note that while I only have ~8MB Free, I have 476MB Inactive. Look at yours, it's something similar too.
__________________
FreeBSD addict since 4.2-RELEASE.
My FreeBSD wiki.
Reply With Quote
  #5   (View Single Post)  
Old 25th August 2008
chavez243 chavez243 is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Leamington, ON
Posts: 50
Thanked 2 Times in 2 Posts
Default

That's why I mentioned Cacti - as this server is monitored 24/7 I have a good baseline and this trend is abnormal. Load on the server has not changed. At this rate in another 24hrs it will start swapping to disk.
Reply With Quote
  #6   (View Single Post)  
Old 25th August 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Thanked 25 Times in 24 Posts
Default

Quote:
Originally Posted by chavez243 View Post
got a Fbsd 6.3 server that I monitor with Cacti - starting last wednesday, free memory started a downward slide. I've restarted the basic services that the server runs - squid / apache.


top output

Code:
last pid: 13246;  load averages:  0.00,  0.00,  0.00   up 128+18:17:09 09:28:02
92 processes:  1 running, 91 sleeping
CPU states:  0.0% user,  0.0% nice,  1.1% system,  0.0% interrupt, 98.9% idle
Mem: 52M Active, 663M Inact, 155M Wired, 111M Buf, 126M Free
Swap: 2012M Total, 2012M Free
any tips on finding where the memory is going?
Only one top output for only small amount of time is not usefull.

Looks like Free memory becomes Buffered memory as time passes- this is fine (actually great).

This is also very logical because I bet your memory is faster than your harddisk.
Reply With Quote
  #7   (View Single Post)  
Old 25th August 2008
ninjatux's Avatar
ninjatux ninjatux is offline
Real Name: Baqir Majlisi
Spam Deminer
 
Join Date: May 2008
Location: Antarctica
Posts: 293
Thanked 15 Times in 15 Posts
Default

The following is my top output:

Code:
ninjasb ~ [2186] top | grep Mem                                                          
Mem: 1017M Active, 523M Inact, 345M Wired, 69M Cache, 214M Buf, 20M Free
ninjasb ~ [2187] top | grep Swap                                                         
Swap: 2048M Total, 13M Used, 2035M Free
The following is my ps auxm output:

Code:
USER         PID %CPU %MEM   VSZ   RSS  TT  STAT STARTED      TIME COMMAND
ninjasb    72270  0.0  9.6 403892 199684  ??  I    11:50AM   6:11.11 /usr/local/lib/firefox
root       56931  0.7  3.3 366088 69336  v0  R    17Aug08 299:33.70 X :0 (Xorg)
ninjasb    56959  0.0  2.4 164400 50644  v0  S    17Aug08   3:00.94 xfdesktop --sm-client-
ninjasb    56965  0.0  2.2 130980 46088  v0  S    17Aug08   2:06.41 /usr/local/libexec/xfc
ninjasb    75114  0.0  0.9 96548 18524  p1  RN+   1:13PM   1:06.97 mplayer -zoom -x 800 -
ninjasb    56964  0.0  1.8 206284 36688  v0  S    17Aug08   2:19.37 pidgin --session 11c0a
ninjasb    72378  0.0  1.2 111372 24168  ??  Ss   11:53AM   0:17.48 gvim (vim)
ninjasb    56962  0.0  0.9 124080 19728  ??  I    17Aug08   0:24.54 /usr/local/bin/Thunar 
ninjasb    56958  0.0  0.9 103144 18092  v0  S    17Aug08  27:59.74 xfwm4 --sm-client-id 1
ninjasb    56963  0.0  0.8 105380 16644  v0  S    17Aug08   1:08.53 xfce4-panel --sm-clien
ninjasb    72487  0.0  0.5 45344  9796  p8  SN+  11:56AM   0:07.44 irssi
ninjasb      662  0.0  0.1 33208  2612  ??  S    13Aug08   0:33.54 /usr/local/bin/mpd /us
ninjasb     2435  0.0  0.7 98440 13784  ??  Ss   Tue08PM   0:00.13 /usr/local/bin/xfrun4 
ninjasb    56967  0.0  0.7 102564 13592  v0  S    17Aug08  56:16.92 /usr/local/libexec/xfc
root         694  0.0  0.1 19632  2032  ??  Ss   13Aug08   0:06.81 /usr/local/sbin/cupsd
root         794  0.0  0.2 42224  3972  ??  Is   13Aug08   0:00.09 /usr/local/sbin/consol
root       72338  0.0  0.3 33124  6424  ??  S    11:52AM   0:01.80 /usr/local/bin/xterm
ninjasb    56968  0.0  0.7 106640 14024  v0  S    17Aug08   0:15.09 orage --sm-client-id 1
root        1089  0.0  0.1  9144  2640  ??  SNs  13Aug08   3:43.24 screen
ninjasb     3076  0.0  0.2 32184  3276  ??  R    13Aug08  13:57.35 /usr/local/bin/mpd /us
ninjasb     3077  0.0  0.2 32184  4252  ??  R    13Aug08  17:58.31 /usr/local/bin/mpd /us
ninjasb    56957  0.0  0.5 117476 11032  ??  Ss   17Aug08   0:09.69 xfce-mcs-manager
ninjasb    56953  0.0  0.5 91828 10324  v0  S    17Aug08   0:11.11 /usr/local/bin/xfce4-s
ninjasb    56966  0.0  0.6 86028 12000  v0  S    17Aug08  68:41.87 /usr/local/libexec/xfc
root           1  0.0  0.0  2180   120  ??  ILs  13Aug08   0:00.72 /sbin/init --
root         372  0.0  0.0  6772   748  ??  Ss   13Aug08   2:31.74 /usr/sbin/moused -p /d
root         420  0.0  0.0  2180   312  ??  Is   13Aug08   0:00.01 /sbin/devd
messagebus   671  0.0  0.1  6840  1536  ??  Is   13Aug08   0:00.76 /usr/local/bin/dbus-da
root         725  0.0  0.1 10600  1612  ??  Ss   13Aug08   0:13.51 sendmail: accepting co
smmsp        729  0.0  0.1 10600  1320  ??  Is   13Aug08   0:00.23 sendmail: Queue runner
root         735  0.0  0.0  6700   912  ??  Is   13Aug08   0:02.23 /usr/sbin/cron -s
root         795  0.0  0.1 35460  2964  ??  I    13Aug08   0:00.06 hald-runner
root         799  0.0  0.1 11240  1288  ??  S    13Aug08   0:25.10 hald-addon-storage: no
root         800  0.0  0.1 37296  2344  ??  S    13Aug08   8:28.94 hald-addon-mouse-sysmo
root         803  0.0  0.1 11240  1344  ??  S    13Aug08   2:11.30 hald-addon-storage: /d
root         806  0.0  0.1 11240  1344  ??  S    13Aug08   2:08.44 hald-addon-storage: /d
ninjasb    56945  0.0  0.1 17352  2140  ??  Is   17Aug08   0:00.00 /usr/bin/ssh-agent -s
ninjasb    56951  0.0  0.1  6840  1732  ??  Is   17Aug08   0:15.62 /usr/local/bin/dbus-da
ninjasb    72253  0.0  0.2 38856  4952  ??  S    11:50AM   0:00.34 /usr/local/libexec/gco
ninjasb    72254  0.0  0.1  7012  1412  ??  I    11:50AM   0:00.01 /bin/sh /usr/local/bin
ninjasb    72265  0.0  0.1  7012  1448  ??  I    11:50AM   0:00.00 /bin/sh /usr/local/lib
ninjasb    56930  0.0  0.1  9764  1488  v0  I+   17Aug08   0:00.01 xinit /usr/local/etc/x
ninjasb    56937  0.0  0.1  7012  1372  v0  I    17Aug08   0:00.01 sh /usr/local/etc/xdg/
ninjasb    56950  0.0  0.1 13060  1836  v0  I    17Aug08   0:00.00 /usr/local/bin/dbus-la
ninjasb     1094  0.0  0.1  5884  1700  p2  SNs+ 13Aug08  13:52.35 slurm -i bge0
root         545  0.0  0.0  5640   916  ??  Ss   13Aug08   0:01.52 /usr/sbin/syslogd -s
root         719  0.0  0.1 21652  1124  ??  Is   13Aug08   0:00.03 /usr/sbin/sshd
haldaemon    791  0.0  0.2 40432  4280  ??  Ss   13Aug08   6:36.14 /usr/local/sbin/hald
root       56331  0.0  0.1 11896  1444  ??  Is   17Aug08   0:00.01 /usr/local/kde4/bin/kd
ninjasb    56743  0.0  0.2 31692  3588  ??  S    17Aug08   1:10.52 /usr/local/libexec/gam
root         779  0.0  0.0 20388   716  v0  Is   13Aug08   0:00.02 login [pam] (login)
root         780  0.0  0.0  5640   652  v1  Is+  13Aug08   0:00.00 /usr/libexec/getty Pc 
root         781  0.0  0.0  5640   652  v2  Is+  13Aug08   0:00.00 /usr/libexec/getty Pc 
root         782  0.0  0.0  5640   652  v3  Is+  13Aug08   0:00.01 /usr/libexec/getty Pc 
root         783  0.0  0.0  5640   652  v4  Is+  13Aug08   0:00.00 /usr/libexec/getty Pc 
root         784  0.0  0.0  5640   652  v5  Is+  13Aug08   0:00.00 /usr/libexec/getty Pc 
root         785  0.0  0.0  5640   652  v6  Is+  13Aug08   0:00.00 /usr/libexec/getty Pc 
root         786  0.0  0.0  5640   652  v7  Is+  13Aug08   0:00.00 /usr/libexec/getty Pc 
ninjasb    72347  0.0  0.1  8120  1800  p0  S+   11:52AM   0:00.02 screen -r
ninjasb    75969  0.0  0.1  6740  1156  p3  RN+   1:39PM   0:00.00 ps auxm
ninjasb    46844  0.0  0.2 17900  3672  p6  INs+ 14Aug08   0:02.91 /usr/local/bin/zsh
ninjasb    72340  0.0  0.2 15200  3600  p0  Is   11:52AM   0:00.09 -zsh (zsh)
ninjasb      826  0.0  0.1 15188  2612  v0  I    13Aug08   0:00.17 -zsh (zsh)
ninjasb     1092  0.0  0.1 15188  2452  p1  INs  13Aug08   0:00.88 zsh
ninjasb    72884  0.0  0.1 15144  2588  p8  INs  15Aug08   0:00.09 /usr/local/bin/zsh
ninjasb    75858  0.0  0.2 15072  3568  p3  SNs   1:36PM   0:00.11 /usr/local/bin/zsh
root         185  0.0  0.0  2524   572  ??  Is   13Aug08   0:00.00 adjkerntz -i
root           0  0.0  0.0     0     0  ??  WLs  13Aug08   0:00.00 [swapper]
root           2  0.0  0.0     0    16  ??  DL   13Aug08   1:37.86 [g_event]
root           3  0.0  0.0     0    16  ??  DL   13Aug08   9:32.34 [g_up]
root           4  0.0  0.0     0    16  ??  DL   13Aug08   4:26.94 [g_down]
root           5  0.0  0.0     0    16  ??  DL   13Aug08   0:00.00 [xpt_thrd]
root           6  0.0  0.0     0    16  ??  DL   13Aug08   0:00.00 [acpi_task_0]
root           7  0.0  0.0     0    16  ??  DL   13Aug08   0:00.00 [acpi_task_1]
root           8  0.0  0.0     0    16  ??  DL   13Aug08   0:00.00 [acpi_task_2]
root           9  0.0  0.0     0    16  ??  DL   13Aug08   0:00.00 [kqueue taskq]
root          10  0.0  0.0     0    16  ??  DL   13Aug08   0:00.00 [audit]
root          11 99.2  0.0     0    16  ??  RL   13Aug08 15879:53.81 [idle: cpu1]
root          12 99.0  0.0     0    16  ??  RL   13Aug08 15828:52.27 [idle: cpu0]
root          13  0.0  0.0     0    16  ??  WL   13Aug08   0:10.33 [swi1: net]
root          14  0.0  0.0     0    16  ??  WL   13Aug08  44:52.56 [swi4: clock]
root          15  0.0  0.0     0    16  ??  WL   13Aug08   0:00.00 [swi3: vm]
root          16  0.0  0.0     0    16  ??  DL   13Aug08   1:36.14 [yarrow]
root          17  0.0  0.0     0    16  ??  WL   13Aug08   0:05.54 [swi6: Giant taskq]
root          18  0.0  0.0     0    16  ??  WL   13Aug08   1:24.95 [swi6: task queue]
root          19  0.0  0.0     0    16  ??  WL   13Aug08   0:17.11 [swi2: cambio]
root          20  0.0  0.0     0    16  ??  WL   13Aug08   0:00.00 [swi5: +]
root          21  0.0  0.0     0    16  ??  DL   13Aug08   0:00.00 [thread taskq]
root          22  0.0  0.0     0    16  ??  WL   13Aug08   0:00.00 [irq9: acpi0]
root          23  0.0  0.0     0    16  ??  WL   13Aug08  10:07.91 [irq16: bge0]
root          24  0.0  0.0     0    16  ??  WL   13Aug08   0:13.15 [irq21: uhci0 ehci0]
root          25  0.0  0.0     0    16  ??  DL   13Aug08   0:00.10 [usb0]
root          26  0.0  0.0     0    16  ??  DL   13Aug08   0:00.01 [usbtask-hc]
root          27  0.0  0.0     0    16  ??  DL   13Aug08   0:00.00 [usbtask-dr]
root          28  0.0  0.0     0    16  ??  WL   13Aug08   0:00.00 [irq22: uhci1]
root          29  0.0  0.0     0    16  ??  DL   13Aug08   0:00.10 [usb1]
root          30  0.0  0.0     0    16  ??  WL   13Aug08   0:24.68 [irq18: uhci2]
root          31  0.0  0.0     0    16  ??  DL   13Aug08   0:00.10 [usb2]
root          32  0.0  0.0     0    16  ??  WL   13Aug08   1:58.71 [irq23: pcm0 uhci3]
root          33  0.0  0.0     0    16  ??  DL   13Aug08   0:00.10 [usb3]
root          34  0.0  0.0     0    16  ??  DL   13Aug08   0:00.10 [usb4]
root          35  0.0  0.0     0    16  ??  WL   13Aug08   1:26.28 [irq14: ata0]
root          36  0.0  0.0     0    16  ??  WL   13Aug08   0:00.00 [irq15: ata1]
root          37  0.0  0.0     0    16  ??  WL   13Aug08   7:01.02 [irq20: atapci1]
root          38  0.0  0.0     0    16  ??  DL   13Aug08   0:05.44 [fdc0]
root          39  0.0  0.0     0    16  ??  WL   13Aug08   0:06.15 [irq1: atkbd0]
root          40  0.0  0.0     0    24  ??  DL   13Aug08   0:00.00 [sctp_iterator]
root          41  0.0  0.0     0    16  ??  DL   13Aug08   0:01.58 [g_journal switcher]
root          42  0.0  0.0     0    16  ??  DL   13Aug08   0:26.48 [pagedaemon]
root          43  0.0  0.0     0    16  ??  DL   13Aug08   0:00.00 [vmdaemon]
root          44  0.0  0.0     0    16  ??  DL   13Aug08   0:00.02 [pagezero]
root          45  0.0  0.0     0    16  ??  DL   13Aug08   0:07.92 [bufdaemon]
root          46  0.0  0.0     0    16  ??  DL   13Aug08   0:09.44 [vnlru]
root          47  0.0  0.0     0    16  ??  DL   13Aug08  21:51.27 [syncer]
root          48  0.0  0.0     0    16  ??  DL   13Aug08   0:23.38 [softdepflush]
root          49  0.0  0.0     0    16  ??  DL   13Aug08   3:39.60 [g_journal stripe/st]
Load has not changed and memory usage has remained steady over the 11 days that this system has been on. What you're seeing is nothing to worry about? It's just the way that FreeBSD handles memory. Technically, memory you have available is the sum of Inactive, Buffered, and Free memory. Also, you haven't touched Swap yet, which further confirms that everything is fine.
__________________
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
MacBook Pro (Darwin 9), iMac (Darwin 9), iPod Touch (Darwin 9), Dell Optiplex GX620 (FreeBSD 7.1-STABLE)
Reply With Quote
  #8   (View Single Post)  
Old 25th August 2008
chavez243 chavez243 is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Leamington, ON
Posts: 50
Thanked 2 Times in 2 Posts
Default

see attached graphs - problem is self-evident
Attached Images
File Type: jpg memleak.jpg (43.5 KB, 22 views)
Reply With Quote
  #9   (View Single Post)  
Old 25th August 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Thanked 25 Times in 24 Posts
Default

Quote:
Originally Posted by chavez243 View Post
see attached graphs - problem is self-evident
graphs are obviously broken, because cache (yellow) is not displayed. Which software did you used?

Until system starts using swap, there is no evidence of kernel(or any other application) memory leak.
Reply With Quote
Old 25th August 2008
chavez243 chavez243 is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Leamington, ON
Posts: 50
Thanked 2 Times in 2 Posts
Default

graphs not broken - look at OP top output - no "cache" element...

curious...
Reply With Quote
Old 25th August 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Thanked 25 Times in 24 Posts
Default

Negative ...
My top output:
Mem: 56M Active, 18M Inact, 155M Wired, 40K Cache, 28M Buf, 753M Free
Swap: 5120M Total, 5120M Free

Active + Inact + Wired + Cache + Buffered + Free = Total ~ 1GB

So correct graph should display more than 2 colors all the time.

Last edited by richardpl; 25th August 2008 at 07:02 PM.
Reply With Quote
Old 25th August 2008
chavez243 chavez243 is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Leamington, ON
Posts: 50
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by richardpl View Post
Negative ...
My top output:
Mem: 56M Active, 18M Inact, 155M Wired, 40K Cache, 28M Buf, 753M Free
Swap: 5120M Total, 5120M Free

Active + Inact + Wired + Cache + Buffered + Free = Total ~ 1GB

So correct graph should display more than 2 colors all the time.
My top - as per OP:

Mem: 52M Active, 663M Inact, 155M Wired, 111M Buf, 126M Free

Total: 1107M

What I am telling you is:
a) my top output is not showing a figure for CACHE
b) buffers and free mem are constantly declining

Please stay on topic, I'm not looking for a discourse on graph colours
Reply With Quote
Old 25th August 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Thanked 25 Times in 24 Posts
Default

Quote:
Originally Posted by chavez243 View Post
My top - as per OP:

Mem: 52M Active, 663M Inact, 155M Wired, 111M Buf, 126M Free

Total: 1107M

What I am telling you is:
a) my top output is not showing a figure for CACHE
b) buffers and free mem are constantly declining

Please stay on topic, I'm not looking for a discourse on graph colours
Free and Buffers memory constantly declining doesn't mean memory leak. Memory that is not accessed any more becomes inactive; and can become active again. For more info ask FreeBSD VM developers. FreeBSD is not Linux (at least in VM design).

But it's still possible that user programs (and not kernel) actually have memory leaks.
Reply With Quote
Old 25th August 2008
chavez243 chavez243 is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Leamington, ON
Posts: 50
Thanked 2 Times in 2 Posts
Default

will have to see if Inact converts to Cached as it ages... that's the real test.
Reply With Quote
Old 25th August 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

What's the trend for Active and Inactive memory during this time?

You can't look at just one or two of the values. You have to compare all of them, over the same time period. They will fluctuate. So long as the total always remains the same, and so long as swap is never touched, you do not have a problem. If the total of all the different mem types increases, and if you start hitting swap, then you have a memory leak you need to track down.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
Old 26th August 2008
chavez243 chavez243 is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Leamington, ON
Posts: 50
Thanked 2 Times in 2 Posts
Default

ran portsnap last night, just to force it to utilize the memory for something - seemed to work, Cacti is now showing Free, buffers and cache and has recovered somewhat.

going to keep my eye on it for a while.

Code:
last pid: 21065;  load averages:  0.00,  0.00,  0.00                up 129+20:47:18 11:58:11
92 processes:  1 running, 91 sleeping
CPU states:  0.0% user,  0.0% nice,  0.4% system,  0.0% interrupt, 99.6% idle
Mem: 60M Active, 650M Inact, 132M Wired, 33M Cache, 111M Buf, 120M Free
Swap: 2012M Total, 2012M Free
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory Not Detected jrs OpenBSD Installation and Upgrading 3 19th May 2009 05:50 PM
What's the difference between these two memory modules? Carpetsmoker General Hardware 2 25th November 2008 03:13 PM
KDE4 uses a lot of memory... mdh FreeBSD General 6 21st October 2008 06:21 AM
Memory cache graudeejs FreeBSD General 3 9th July 2008 03:27 AM
limit use memory by Apache mfaridi FreeBSD Security 4 8th July 2008 05:59 PM


All times are GMT. The time now is 06:58 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick