I understand the basics of ZFS and have had good luck with it so far, but I've got 16GB of RAM installed on my machine and it feels like it's not freeing unused blocks. I booted my system up this morning and after a half day of use my system is using 13.6GB of 15.5GB available and is swapping at 106MB. I do run a jail and some other memory applications such as www/tomcat7 and www/chromium. Even at idle I'm using 88% of my available RAM. I understand that ZFS is a memory hog (prefetch?) but
Stats from conky:
Stats from top:
I'm thinking it's a memory leak? How would I check this? Is there something else this could be or is this just the nature of ZFS? I read up on tuning ZFS but I couldn't find anything that seemed relevant.
top
and sysutils/conky tell another story.Stats from conky:
Code:
HIGEST CPU CPU % MEM %
GST-PLUGIN-SCANN 0.00 0.00
XORG 0.00 0.81
KDEINIT4 0.00 0.68
Code:
HIGHEST MEM CPU % MEM%
CHROME 0.00 0.82
XORG 0.00 0.81
KDEINIT4 0.00 0.68
Stats from top:
Code:
last pid: 95922; load averages: 0.17, 0.21, 0.28 up 1+18:22:46 15:14:43
182 processes: 2 running, 176 sleeping, 4 zombie
CPU: 10.4% user, 0.0% nice, 2.4% system, 0.2% interrupt, 87.1% idle
Mem: 469M Active, 1416M Inact, 13G Wired, 107M Cache, 406M Free
ARC: 12G Total, 3914M MFU, 7303M MRU, 637K Anon, 149M Header, 792M Other
Swap: 512M Total, 105M Used, 406M Free, 20% Inuse, 4K In
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
597 root 7 -21 r31 635M 146M uwait 0 52:39 17.97% Xorg
95863 kclark 2 41 0 357M 53960K select 1 0:00 1.95% kdeinit4
93464 kclark 16 20 0 1133M 109M uwait 2 9:19 0.98% kdeinit4
95889 kclark 1 20 0 16600K 2460K CPU4 4 0:00 0.98% top
95874 kclark 1 29 0 14540K 2212K wait 2 0:00 0.98% sh
24089 kclark 1 23 0 837M 50280K select 3 40:15 0.00% npviewer.bin
93586 kclark 9 20 0 65268K 4316K usem 5 20:50 0.00% conky
64065 kclark 32 20 0 558M 128M uwait 3 14:59 0.00% chrome
93459 kclark 4 20 0 592M 44088K kqread 2 8:58 0.00% kwin
24002 kclark 9 20 0 976M 99M uwait 2 4:45 0.00% chrome
24077 kclark 2 20 0 280M 42452K kqread 4 4:43 0.00% chrome
24103 kclark 1 20 0 837M 50280K futex 3 1:11 0.00% npviewer.bin
93518 kclark 6 39 19 129M 17024K uwait 1 1:04 0.00% virtuoso-t
24105 kclark 1 20 0 837M 50280K futex 4 1:04 0.00% npviewer.bin
24106 kclark 1 20 0 837M 50280K futex 0 1:04 0.00% npviewer.bin
24104 kclark 1 20 0 837M 50280K futex 5 1:03 0.00% npviewer.bin
93529 kclark 5 20 0 518M 51628K select 3 1:01 0.00% kopete
497 root 1 20 0 14268K 1040K select 0 0:59 0.00% moused
93525 kclark 1 20 0 369M 15988K select 3 0:49 0.00% ktorrent
93436 kclark 6 29 0 590M 22976K select 5 0:45 0.00% kdeinit4
64599 kclark 9 20 0 935M 44656K uwait 0 0:38 0.00% chrome
93521 kclark 2 52 0 531M 21336K kqread 4 0:38 0.00% kdeinit4
93479 kclark 35 20 0 282M 5728K sbwait 1 0:28 0.00% mysqld
529 haldaemon 2 39 0 57536K 2592K select 3 0:27 0.00% hald
64086 kclark 9 20 0 899M 42084K uwait 0 0:22 0.00% chrome
93462 kclark 8 20 0 518M 36364K uwait 5 0:20 0.00% knotify4
576 root 1 20 0 20924K 1252K select 1 0:16 0.00% hald-addon-storage
451 messagebus 1 20 0 18444K 2116K select 1 0:15 0.00% dbus-daemon
581 root 1 20 0 20924K 1252K select 0 0:14 0.00% hald-addon-storage
3416 root 1 35 10 9948K 1060K nanslp 5 0:14 0.00% swapexd
584 root 1 20 0 20924K 1252K select 0 0:14 0.00% hald-addon-storage
587 root 1 20 0 20924K 1284K select 2 0:14 0.00% hald-addon-storage
3324 root 1 30 10 12088K 996K select 2 0:13 0.00% powerd
590 root 1 20 0 20924K 1284K select 1 0:13 0.00% hald-addon-storage
93491 kclark 2 20 0 704M 23904K kqread 1 0:12 0.00% kdeinit4
99947 root 1 41 10 18632K 872K wait 0 0:12 0.00% sh
94954 kclark 9 20 0 905M 75428K uwait 3 0:11 0.00% chrome
95735 kclark 1 24 0 837M 50280K CPU2 2 0:10 0.00% npviewer.bin
93636 root 2 27 0 188M 10708K select 2 0:09 0.00% pc-mounttray
93375 kclark 5 52 0 206M 14492K select 3 0:08 0.00% pc-systemupdatertra
79288 kclark 9 20 0 923M 45172K uwait 3 0:07 0.00% chrome
93490 kclark 13 39 19 469M 18632K select 2 0:07 0.00% nepomukservicestub
93638 kclark 3 52 19 308M 13968K select 3 0:07 0.00% nepomukservicestub
93398 kclark 1 20 0 18444K 2576K select 5 0:07 0.00% dbus-daemon
3321 root 1 30 10 22264K 1580K select 1 0:06 0.00% ntpd
3436 root 1 52 20 18636K 1580K wait 2 0:06 0.00% sh
93578 kclark 3 20 0 81140K 2316K select 3 0:06 0.00% ibus-daemon
I'm thinking it's a memory leak? How would I check this? Is there something else this could be or is this just the nature of ZFS? I read up on tuning ZFS but I couldn't find anything that seemed relevant.