Hi all,
I'm running Solaris 11 in my virtual box and it is configured with 6 GB RAM. While I was performing Zone migration ( gzipping the zone using zfs send command) it consumed 4 GB memory. However after execution of the command still system didn't release the memory back to system. Finally I had to reboot the host.
How I can clear the cache/Memory in such situation ? In Linux, I use sync ; echo 3 > /proc/sys/vm/drop_cache to release the cache.
How can I release the cache in Solaris without rebooting
root@solaris11:/proc# echo ::memstat | mdb -k
Page Summary Pages Bytes %Tot
----------------- ---------------- ---------------- ----
Kernel 258207 1008.6M 16%
Guest 0 0 0%
ZFS Metadata 38080 148.7M 2%
ZFS File Data 1050249 4.0G 67%
Anon 61004 238.2M 4%
Exec and libs 3863 15.0M 0%
Page cache 4569 17.8M 0%
Free (cachelist) 1585 6.1M 0%
Free (freelist) 150586 588.2M 10%
Total 1568143 5.9G
root@solaris11:/proc# kstat zfs::arcstats:size
module: zfs instance: 0
name: arcstats class: misc
size 2497018160 <------2.5G
I would appreciate if someone can clarify this in details.
Thanks in Advance
Eldho Varghese