memory usage


 
Thread Tools Search this Thread
Operating Systems Solaris memory usage
# 1  
Old 09-15-2006
memory usage

How do you tell how much system memory is free on a solaris 9 box?

I can run prstat but it is like all the processes and stuff seperate,
is there somewhere i can get a reading on the box as a whole?
# 2  
Old 09-15-2006
man vmstat
# 3  
Old 09-15-2006
By the way, in most cases free memory means absolutely nothing on a Solaris box.
# 4  
Old 09-16-2006
use vmstat and look at the column under sr.
If it is ZERO, you have enough memory on the server
# 5  
Old 09-21-2006
Hi pal.. go out for 'vmstat'

# vmstat 1

this will give u the status of ur memory for 1 sec in that you can see the swap space present. Bye..
# 6  
Old 10-18-2006
may be you can use
sar -r 2 100 ( 2 is inteval time and 100 is polling number)

you must see like this

10:10:40 freemem freeswap
10:10:42 54903 4945408
10:10:44 54903 4945408


the result show you in pages , that mean now this system has freemem 54903 pages

if you want to calculate it to kbyte you use command

pagesize

that will show you like this

root@sol9_e250 # pagesize
8192

that mean 1 pagesize = 8k , if your system has 54903 pages , your system has freemem = (54903 *8)/1024 ~429 MB

+++++++++++++++++++++++
Second solution ( easy)

you use
vmstat 3 you shuold see like this

kthr memory
r b w swap free
0 0 0 2476904 447520
0 0 0 2473032 439552
0 0 0 2473032 439552

The memory tab , it shows

memory/swap: Free, unreserved swap space (Kb).
memory/free: Free memory (Kb). (Note that this will grow until it reaches lotsfree, at which point the page scanner is started. See "Paging" for more details.) ( lotsfree is one parameter in kernel that you can set it by mdb -kw )

Smilie

PS: Sorry about my weak english
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Memory usage per user,percent usage,sytem time in ksh

Let's say i have 20 users logged on Server. How can I know how much memory percent used each of them is using with system time in each user? (2 Replies)
Discussion started by: roy1912
2 Replies

2. UNIX for Dummies Questions & Answers

Command to display the space usage (memory usage) of a specific directory.

Hi all, Can you please tell me the command, with which one can know the amount of space a specific directory has used. df -k . ---> Displays, the amount of space allocated, and used for a directory. du -k <dir name> - gives me the memory used of all the files inside <dir> But i... (2 Replies)
Discussion started by: abhisheksunkari
2 Replies

3. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

4. Solaris

Memory usage in Solaris - memory not freed?

Hi, I'm running a multi-process software system on a Solaris 8 machine. When I monitor the memory usage, I see that the free memory is dropping rapidly, but I can't detect a process that uses this memory. I'm using "top" to get the free memory and the memory usage of processes. Thanks. (3 Replies)
Discussion started by: gewurtz
3 Replies

5. Solaris

current CPU usage, memory usage, disk I/O oid(snmp)

Hi, I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP. I want the oids for above tasks. can you please tell me that Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies

6. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

7. UNIX for Dummies Questions & Answers

cpu, memory and virtual memory usage

Hi All, Does anyone know what the best commands in the UNIX command line are for obtaining this info: current CPU usage memory usage virtual memory usage preferably with date and time parameters too? thanks ocelot (4 Replies)
Discussion started by: ocelot
4 Replies

8. HP-UX

How can I get memory usage or anything that show memory used from sar file?

Refer from title: How can i get memory used or anything that can show memory from sar file example on solaris:- we can use sar with option to show memory used at time that sar crontab run. on HP-UX, it not has option to see memory used. But i think it may be have some parameter or some... (1 Reply)
Discussion started by: panithat
1 Replies

9. Programming

CPU usage and memory usage

Please tell me solaris functions/api for getting following information 1- Function that tells how much memory used by current process 2- Function that tells how much memory used by all running processes 3- Function that tells how much CPU is used by current process 4- Function that tells how... (1 Reply)
Discussion started by: mansoorulhaq
1 Replies

10. Programming

Monitor CPU usage and Memory Usage

how can i monitor usages of CPU, Memory, Hard disk etc. under SUN Solaries through a c program or java program i want to store that data into database so i can show it graphically thanks in advance (2 Replies)
Discussion started by: Gajanad Bihani
2 Replies
Login or Register to Ask a Question