nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Unix command to check memory usage

This is a discussion on Unix command to check memory usage within the HP-UX forums, part of the UNIX operating systems category; UNIX command to check free and used memory. Can anyone show me command for this task? TIA...

Register free or login to your existing account and remove all advertisements.


Go Back   nixCraft Linux Forum > UNIX operating systems > HP-UX

Linux answers from nixCraft.


HP-UX Discussions of HP-UX UNIX operating system.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-27-2007, 07:01 AM
sweta's Avatar
Contributors
User
 
Join Date: Feb 2005
Location: New Delhi
OS: Suse, RHEL, Vista
Posts: 199
Thanks: 12
Thanked 9 Times in 9 Posts
Rep Power: 7
sweta has a spectacular aura about sweta has a spectacular aura about
Default Unix command to check memory usage

UNIX command to check free and used memory. Can anyone show me command for this task?

TIA
__________________
Reply With Quote
  #2 (permalink)  
Old 12-06-2007, 09:10 PM
Junior Member
User
 
Join Date: Dec 2007
OS: Debian
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
calligraphy is on a distinguished road
Default check memory

$ vmstat
System configuration: lcpu=2 mem=8192MB
kthr memory page faults cpu
----- ----------- ------------------------ ------------ -----------
r b avm fre re pi po fr sr cy in sy cs us sy id wa
2 3 2336209 49400 0 11 8 227 157 0 234 8614 830 28 7 60 5
$ vmstat 5 5
System configuration: lcpu=2 mem=8192MB
kthr memory page faults cpu
----- ----------- ------------------------ ------------ -----------
r b avm fre re pi po fr sr cy in sy cs us sy id wa
2 0 2337381 48080 0 0 0 0 0 0 581 4301 1294 60 4 36 0
1 0 2336206 49193 0 1 0 0 0 0 650 3980 1417 57 5 36 1
3 0 2342415 42938 0 3 0 0 0 0 653 8710 1541 66 9 23 1
4 0 2359028 26293 0 3 0 0 0 0 678 41228 2382 61 19 19 1
9 1 2382768 2515 0 3 0 0 0 0 1213 69808 2459 65 33 1 0
Reply With Quote
  #3 (permalink)  
Old 12-07-2007, 10:07 AM
Junior Member
User
 
Join Date: Dec 2007
OS: Debian
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
virendra is on a distinguished road
Default

try using this commands

#free
or
#free -m
total used free shared buffers cached
Mem: 248 227 21 0 78 110
-/+ buffers/cache: 38 209
Swap: 572 0 572

or the best

#top

or

#vmstat
Reply With Quote
  #4 (permalink)  
Old 02-24-2010, 10:54 PM
raj's Avatar
raj raj is offline
Senior Member
User
 
Join Date: Jun 2005
Location: Hyderabad
OS: Fedora, Debian Linux
Posts: 307
Thanks: 42
Thanked 8 Times in 8 Posts
Rep Power: 6
raj will become famous soon enough raj will become famous soon enough
Default

top command will also give you idea.

Code:
dmesg | awk '/Physical:/ && /Kbytes/ {print $2}'
getconf KERNEL_BITS
echo "phys_mem_pages/D" | adb64 /stand/vmunix /dev/mem
__________________
Raj
Linux rulz.
I have never turned back in my life ; I shall not do so today.. haha
Reply With Quote
Reply

Tags
aix memory , free , hp-ux memory , memory , solaris memory , top , unix , vmstat


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
unix find out ram usage command charvi Solaris/OpenSolaris 4 04-10-2008 02:22 AM
command for knowing free memory in BSD ricc All about FreeBSD/OpenBSD/NetBSD 2 07-08-2007 01:28 PM
HP unix check filesystem for errors jerry HP-UX 0 06-09-2007 01:49 AM
Command to Check Linux File System lacloai Getting started tutorials 3 05-14-2007 05:45 PM
Use memory command to find details under Fedora Linux chiku Getting started tutorials 0 04-29-2007 08:35 PM


All times are GMT +5.5. The time now is 10:17 AM.


Powered by vBulletin® Version 3.8.4 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38