Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How can I free-up the cache/memory in Solaris 11?

Eldho VargheseFeb 13 2016 — edited Feb 26 2016

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

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 25 2016
Added on Feb 13 2016
5 comments
30,548 views