Amount of free mem decreasing..

From: nntp (asf_at_sadfkj.cosdf)
Date: 12/30/04


Date: Thu, 30 Dec 2004 03:56:45 -0500

I cant really seam to figure this out. I am monitoring several aspects of my
freebsd 5.3 system using cacti.
The part that seems odd to me is the memory. I have 1G (2x 512 ddr) of ram.

it started graphing at about 800M of free memory. Gradually (and pretty
evenly) it has been decreasing. After about 1 1/2 to 2 weeks I am currently
at 365M free. I don't know of anything that would be doing this.. I didn't
really install all my apps yet, just the basics.

I dont' see any zombie processes.. Any ideas what could be causing this? Is
there a command I can run to free unused memory?

Thanks!

here is some current stuff...

ws1-hr# top -b
last pid: 44717; load averages: 0.00, 0.00, 0.00 up 8+22:13:21
03:53:19
45 processes: 1 running, 44 sleeping

Mem: 242M Active, 258M Inact, 128M Wired, 111M Buf, 367M Free
Swap: 1024M Total, 20K Used, 1024M Free

  PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
45884 root 96 0 123M 121M select 1:18 0.00% 0.00% snmpd
14699 mysql 20 0 65792K 27152K kserel 0:55 0.00% 0.00% mysqld
  486 www 4 0 23764K 18708K select 0:46 0.00% 0.00% httpd
  484 www 20 0 17324K 12256K lockf 0:46 0.00% 0.00% httpd
  483 www 20 0 23752K 18684K lockf 0:45 0.00% 0.00% httpd
  485 www 20 0 23748K 18692K lockf 0:44 0.00% 0.00% httpd
  688 www 20 0 17364K 12280K lockf 0:44 0.00% 0.00% httpd
  482 www 20 0 23992K 18940K lockf 0:44 0.00% 0.00% httpd
  693 www 20 0 23124K 18056K lockf 0:41 0.00% 0.00% httpd
  448 root 96 0 2024K 964K select 0:23 0.00% 0.00% hptsvr
  337 _pflogd -58 0 1548K 1004K bpf 0:14 0.00% 0.00% pflogd
  428 root 96 0 12092K 6532K select 0:11 0.00% 0.00% httpd
34837 root 96 0 2756K 1596K select 0:06 0.00% 0.00% master
34880 postfix 4 0 3036K 1708K select 0:04 0.00% 0.00% qmgr
  271 bind 20 0 5172K 3468K kserel 0:03 0.00% 0.00% named
  413 root 8 0 1368K 948K nanslp 0:03 0.00% 0.00% cron
42374 www 20 0 16068K 10860K lockf 0:00 0.00% 0.00% httpd
  233 root 4 0 516K 224K select 0:00 0.00% 0.00% devd

ws1-hr# ps aux
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
root 11 98.3 0.0 0 12 ?? RL 21Dec04 11429:42.25 [idle]
root 0 0.0 0.0 0 4 ?? DLs 21Dec04 0:00.73 [swapper]
root 1 0.0 0.0 740 244 ?? ILs 21Dec04 0:00.16
/sbin/init --
root 2 0.0 0.0 0 12 ?? DL 21Dec04 0:17.60 [g_event]
root 3 0.0 0.0 0 12 ?? DL 21Dec04 3:08.10 [g_up]
root 4 0.0 0.0 0 12 ?? DL 21Dec04 5:06.95 [g_down]
root 5 0.0 0.0 0 12 ?? DL 21Dec04 0:00.00 [kqueue
taskq]
root 6 0.0 0.0 0 12 ?? DL 21Dec04 0:00.00 [thread
taskq]
root 7 0.0 0.0 0 12 ?? IL 21Dec04 0:00.00 [acpi_task0]
root 8 0.0 0.0 0 12 ?? IL 21Dec04 0:00.00 [acpi_task1]
root 9 0.0 0.0 0 12 ?? IL 21Dec04 0:00.00 [acpi_task2]
root 10 0.0 0.0 0 12 ?? DL 21Dec04 0:00.00 [ktrace]
root 12 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [irq1:
atkbd0]
root 13 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [irq3:]
root 14 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [irq4: sio0]
root 15 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [irq5:]
root 16 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [irq6: fdc0]
root 17 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [irq7: ppc0]
root 18 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [irq8: rtc]
root 19 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [irq9:
acpi0]
root 20 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [irq10:]
root 21 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [irq11:]
root 22 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [irq12:]
root 23 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [irq13:]
root 24 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [irq14:
ata0]
root 25 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [irq15:
ata1]
root 26 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [irq16:]
root 27 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [irq17:]
root 28 0.0 0.0 0 12 ?? WL 21Dec04 3:29.21 [irq18:
atapci1]
root 29 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [irq19:]
root 30 0.0 0.0 0 12 ?? WL 21Dec04 0:09.67 [irq20:
fxp0]
root 31 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [irq21:]
root 32 0.0 0.0 0 12 ?? WL 21Dec04 0:00.14 [irq22:
hpt3740]
root 33 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [irq23:]
root 34 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [irq0: clk]
root 35 0.0 0.0 0 12 ?? WL 21Dec04 5:36.86 [swi5: clock
sio]
root 36 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [swi4: vm]
root 37 0.0 0.0 0 12 ?? WL 21Dec04 0:10.03 [swi1: net]
root 38 0.0 0.0 0 12 ?? DL 21Dec04 0:42.15 [yarrow]
root 39 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [swi6: task
queue]
root 40 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [swi6:+]
root 41 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [swi6:+]
root 42 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [swi6:
acpitaskq]
root 43 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [swi2:
camnet]
root 44 0.0 0.0 0 12 ?? WL 21Dec04 0:00.52 [swi3:
cambio]
root 45 0.0 0.0 0 12 ?? DL 21Dec04 0:02.26 [fdc0]
root 46 0.0 0.0 0 12 ?? WL 21Dec04 0:00.00 [swi0: sio]
root 47 0.0 0.0 0 12 ?? DL 21Dec04 0:03.07 [pagedaemon]
root 48 0.0 0.0 0 12 ?? DL 21Dec04 0:00.00 [vmdaemon]
root 49 0.0 0.0 0 12 ?? DL 21Dec04 0:27.99 [pagezero]
root 50 0.0 0.0 0 12 ?? DL 21Dec04 0:03.85 [bufdaemon]
root 51 0.0 0.0 0 12 ?? DL 21Dec04 0:02.14 [vnlru]
root 52 0.0 0.0 0 12 ?? DL 21Dec04 5:38.08 [syncer]
root 53 0.0 0.0 0 12 ?? DL 21Dec04 0:01.11 [hpt_wt]
root 54 0.0 0.0 0 12 ?? DL 21Dec04 0:00.94 [hpt_wt]
root 55 0.0 0.0 0 12 ?? IL 21Dec04 0:00.00 [nfsiod 0]
root 56 0.0 0.0 0 12 ?? IL 21Dec04 0:00.00 [nfsiod 1]
root 57 0.0 0.0 0 12 ?? IL 21Dec04 0:00.00 [nfsiod 2]
root 58 0.0 0.0 0 12 ?? IL 21Dec04 0:00.00 [nfsiod 3]
root 59 0.0 0.0 0 12 ?? DL 21Dec04 0:23.33 [schedcpu]
root 177 0.0 0.1 1184 580 ?? Is 21Dec04 0:00.00 adjkerntz -i
root 233 0.0 0.0 516 224 ?? Is 21Dec04 0:00.16 /sbin/devd
bind 271 0.0 0.3 5172 3468 ?? Ss 21Dec04 0:02.86
/usr/sbin/named -u bind -t /var/named
root 335 0.0 0.1 1484 992 ?? Is 21Dec04 0:00.00 pflogd:
[priv] (pflogd)
_pflogd 337 0.0 0.1 1548 1004 ?? S 21Dec04 0:13.85 pflogd:
[running] -s 116 -f /var/log/pflog (pflogd)
root 395 0.0 0.2 3360 1948 ?? Is 21Dec04 0:00.15
/usr/sbin/sshd
root 413 0.0 0.1 1368 948 ?? Is 21Dec04 0:02.55
/usr/sbin/cron -s
root 428 0.0 0.6 12092 6532 ?? Ss 21Dec04 0:11.35
/usr/local/sbin/httpd -DSSL
root 448 0.0 0.1 2024 964 ?? S 21Dec04 0:22.86
/usr/bin/hptsvr
www 482 0.0 1.8 23992 18940 ?? I 21Dec04 0:43.78
/usr/local/sbin/httpd -DSSL
www 483 0.0 1.8 23752 18684 ?? I 21Dec04 0:44.88
/usr/local/sbin/httpd -DSSL
www 484 0.0 1.2 17324 12256 ?? S 21Dec04 0:45.82
/usr/local/sbin/httpd -DSSL
www 485 0.0 1.8 23748 18692 ?? I 21Dec04 0:44.37
/usr/local/sbin/httpd -DSSL
www 486 0.0 1.8 23764 18708 ?? S 21Dec04 0:45.93
/usr/local/sbin/httpd -DSSL
www 688 0.0 1.2 17364 12280 ?? I 21Dec04 0:44.28
/usr/local/sbin/httpd -DSSL
www 693 0.0 1.7 23124 18056 ?? I 21Dec04 0:41.41
/usr/local/sbin/httpd -DSSL
root 34837 0.0 0.2 2756 1596 ?? Is 22Dec04 0:06.04
/usr/local/libexec/postfix/master
postfix 34880 0.0 0.2 3036 1708 ?? I 22Dec04 0:04.26 qmgr -l -t
fifo -u
root 42319 0.0 0.2 6112 2392 ?? Is 12:34AM 0:00.01 sshd:
dancasey [priv] (sshd)
dancasey 42322 0.0 0.2 6092 2420 ?? S 12:34AM 0:00.11 sshd:
dancasey@ttyp0 (sshd)
www 42374 0.0 1.0 16068 10860 ?? I 12:37AM 0:00.19
/usr/local/sbin/httpd -DSSL
root 42466 0.0 0.1 1320 804 ?? Ss 12:43AM 0:00.04
/usr/sbin/syslogd -l /var/run/log -l /var/named/var/run/log -
postfix 43848 0.0 0.2 2992 1684 ?? I 2:56AM 0:00.02 pickup -l -t
fifo -u
root 45884 0.0 11.9 125804 123980 ?? S Thu06AM 1:17.98
/usr/local/sbin/snmpd -p /var/run/snmpd.pid
mysql 14674 0.0 0.1 1652 1084 p0- I Tue01AM 0:00.01 /bin/sh
/usr/local/bin/mysqld_safe --user=mysql --datadir=/ra
mysql 14699 0.0 2.6 65792 27152 p0- S Tue01AM 0:54.81
/usr/local/libexec/mysqld --basedir=/usr/local --datadir=/rai
dancasey 42323 0.0 0.2 2288 1656 p0 Is 12:34AM 0:00.01 -tcsh (tcsh)
root 42326 0.0 0.1 1600 1188 p0 I 12:34AM 0:00.02 su
root 42327 0.0 0.2 2296 1756 p0 S 12:34AM 0:00.04 _su (csh)
root 44729 0.0 0.1 1424 784 p0 R+ 3:54AM 0:00.00 ps aux
root 538 0.0 0.1 1280 824 v0 Is+ 21Dec04 0:00.00
/usr/libexec/getty Pc ttyv0
root 539 0.0 0.1 1280 824 v1 Is+ 21Dec04 0:00.00
/usr/libexec/getty Pc ttyv1
root 540 0.0 0.1 1280 824 v2 Is+ 21Dec04 0:00.00
/usr/libexec/getty Pc ttyv2
root 541 0.0 0.1 1280 824 v3 Is+ 21Dec04 0:00.00
/usr/libexec/getty Pc ttyv3
root 542 0.0 0.1 1280 824 v4 Is+ 21Dec04 0:00.00
/usr/libexec/getty Pc ttyv4
root 543 0.0 0.1 1280 824 v5 Is+ 21Dec04 0:00.00
/usr/libexec/getty Pc ttyv5
root 544 0.0 0.1 1280 824 v6 Is+ 21Dec04 0:00.00
/usr/libexec/getty Pc ttyv6
root 545 0.0 0.1 1280 824 v7 Is+ 21Dec04 0:00.00
/usr/libexec/getty Pc ttyv7
ws1-hr#

ws1-hr# vmstat
 procs memory page disks faults cpu
 r b w avm fre flt re pi po fr sr ad4 da0 in sy cs us sy
id
 1 1 0 348384 374400 39 0 0 0 68 13 0 0 348 1291 3482 6 5
89



Relevant Pages

  • Re: New ARM Cortex Microcontroller Product Family from STMicroelectronics
    ... at zero waitstates due to its interleaved flash controller design. ... Each flash access done by the memory controller ... while eating from the instruction queue wihout any performance penalty. ... but that does not require a FIFO. ...
    (comp.arch.embedded)
  • Re: FSL or DMA w/ FIFO?
    ... I would use a FIFO on the FSL. ... I'm assuming I would get one interrupt per 200 ... random access to the BRAM via the local memory bus. ...
    (comp.arch.fpga)
  • Re: New ARM Cortex Microcontroller Product Family from STMicroelectronics
    ... at zero waitstates due to its interleaved flash controller design. ... Each flash access done by the memory controller ... while eating from the instruction queue wihout any performance penalty. ... but that does not require a FIFO. ...
    (comp.arch.embedded)
  • Debugging ideas.
    ... I am having problems debugging my memory controller. ... to capture a frame and display the same frame continuously. ... I think that the problem lies with an asynchronous fifo used to buffer ...
    (comp.arch.fpga)