-1

I have SunOS 5.10 sparc server. I want to calculate buffer memory. I can easily find this in Linux using /usr/bin/free command.

             total       used       free     shared    buffers     cached
Mem:      8004388    7427228     577160          0     472196    3336544
-/+ buffers/cache:   3618488    4385900
Swap:     11534628          0   11534628

Can anyone please suggest me if there is any equivalent command in SunOS. It would be better if anyone can give me any Perl script to find the same in below format.

user9517
  • 115,471
  • 20
  • 215
  • 297

1 Answers1

0

if you are root then this command

echo ::memstat | mdb -k

will display what you need

Page Summary                Pages                MB  %Tot
------------     ----------------  ----------------  ----
Kernel                    1362300             10642   17%
ZFS File Data             1705895             13327   21%
Anon                       559950              4374    7%
Exec and libs               51818               404    1%
Page cache                  17100               133    0%
Free (cachelist)            73855               576    1%
Free (freelist)           4400754             34380   54%

Total                     8171672             63841
Physical                  8154670             63708
Fegnoid
  • 540
  • 2
  • 4