pi85
pi85

Reputation: 1

Buffered and Cache memory in Solaris

how to get the Buffer, Cache memory and Block in-out in Solaris ? For Example: In Linux I can get it using vmstat. vmstat in Linux gives

procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st

Where as vmstat in Solaris doesn't give buff and cache under ------memory----. Also there is no -----io----. How to get these fields on Solaris ?

Upvotes: 0

Views: 2755

Answers (1)

jim mcnamara
jim mcnamara

Reputation: 16389

Kernel memory:

kstat -p > /var/tmp/kstat-p

more details kernel memory statistics:

 kstat -p -c kmem_cache
 kstat -p -m vmem
 kstat -p -c vmem

alternative:

 echo “::kmastat” | mdb -k > /var/tmp/kmastat

Do not use iostat that way,

try to show busy disks with realtime sampling (you want this to start with):

iostat -xmz 2 4  # -> 2 seconds sampling time,  4 sampling intervals

show historical average data:

iostat -xm 

Upvotes: 1

Related Questions