Most of freelist memory went to ZFS file data
Hi
i was doing some testing and i noticed this weird behaviour.
Initial memstat right after reboot
there was 1.1G in freelist
root@solaris11:~# echo ::memstat | mdb -k
Page Summary Pages Bytes %Tot
----------------- ---------------- ---------------- ----
Kernel 116363 454.5M 18%
ZFS Metadata 25338 98.9M 4%
ZFS File Data 105229 411.0M 16%
Anon 50361 196.7M 8%
Exec and libs 3276 12.7M 1%
Page cache 11965 46.7M 2%
Free (cachelist) 390 1.5M 0%
Free (freelist) 306492 1.1G 48%
Total 639887 2.4G
I tried to perform a make file operation in order to make the system "busy"
root@solaris11:~# mkfile 5g /export/home/testfile
-rw------- 1 root root 5368709120 May 23 18:34 testfile
Once the mkfile operation has completed, most of the memory from freelist went to ZFS file data and it never came back to freelist.