Memory space


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Memory space
# 1  
Old 06-04-2015
Memory space

It would be great if you tell me how to check the ram memory size in unix machine[HP unix]

Code:
RAM memory size check

# 2  
Old 06-04-2015
You mean something like this?
Code:
free

This User Gave Thanks to sea For This Post:
# 3  
Old 06-04-2015
total memory allocation for the unix server.
# 4  
Old 06-04-2015
Check out swapinfo -tam .

For deeper inspection, there is vmstat, glance and ps ofc and more, depending on the specific need.
This User Gave Thanks to Peasant For This Post:
# 5  
Old 06-04-2015
Thanks a lot for your inputs.
# 6  
Old 06-04-2015
Hello Arun888,

I have prepared a command for BASH, for checking the memory. May help you sometime.
Code:
free | awk '/Mem/{printf("used: %.2f%"), $3/$2*100} /buffers\/cache/{printf(", buffers: %.2f%"), $4/($3+$4)*100} /Swap/{printf(", swap: %.2f%\n"), $3/$2*100}'

Output will be as follows.
Code:
used: 77.46%, buffers: 54.08%, swap: 0.00%


Thanks,
R. Singh
This User Gave Thanks to RavinderSingh13 For This Post:
# 7  
Old 06-04-2015
This is HP-UX, right? The free command is for Linux only.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

FTP server Memory space

Is there any command to check Memory space of FTP server using FTP command (3 Replies)
Discussion started by: elango963
3 Replies

2. Programming

Write to a specific memory space.

Hello all. I need a simple way to write to a specific memory space (/dev/mem). In a bash script if possible. (I am using dd to read the changes) Thanks in advace. (4 Replies)
Discussion started by: King_Richee
4 Replies

3. BSD

Write to a specific memory space.

Hello all. I need a simple way to write to a specific memory space (/dev/mem). In a bash script if possible. (I am using dd to read the changes) Thanks in advace. (0 Replies)
Discussion started by: King_Richee
0 Replies

4. Solaris

No Space Left - Memory/Swap issue

:wall:I'm having a bit of a problem with Solaris 10u8 and one of our applications requesting memory and being told, "no space left". The break down: 24GB Physical Memory 8GB swap at the time of occurance, here's what a memory breakdown looks like: Page Summary Pages ... (21 Replies)
Discussion started by: aychbee45
21 Replies

5. AIX

AIX 6.1: Releasing Memory and Page Space

Hi everyone, i have a question about the Memory Management in AIX 6.1. I have - 128 GB RAM and - 70 GB Page Space. The application i am running on this machine is doing some operations in perl. These are done only once a day and uses both memory and paging space. My problem... (1 Reply)
Discussion started by: Haichao
1 Replies

6. Red Hat

about shared memory space in Linux !

Dear Friends , I am confused about shared memory in Linux . plz look @ the below output : $ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 126G 61G 59G 52% / tmpfs 1.7G 0 1.7G 0% /dev/shm Here , I see that every time... (1 Reply)
Discussion started by: shipon_97
1 Replies

7. Shell Programming and Scripting

Issue with insufficient swap or memory space

Hi, When I execute one of my shellscript I am getting the below mentioned error message .This application takes 2input files which have the records counts 26463 and 1178046 exec(2): insufficient swap or memory available. exec(2): insufficient swap or memory available. exec(2):... (2 Replies)
Discussion started by: kavithakuttyk
2 Replies

8. Solaris

how to get the more memory free space (see memory free column)

Hi all, Could please let me know how to get the more memory free space (not added the RAM) in local zone. -bash-3.00# vmstat 2 5 kthr memory page disk faults cpu r b w swap free re mf pi po fr de sr s0 s1 s1 s1 in sy cs us sy... (3 Replies)
Discussion started by: murthy76
3 Replies

9. HP-UX

swap space (lvol2) is not using when physical memory is 98% used

Dear all I have rp7620 sever with hp-ux 11.23 this swap space is not yet used when the physical memory usage of 98 %. through openview it's shows memory bottleneck . how to resolve the problem. Rajesh (1 Reply)
Discussion started by: rajeshtt32
1 Replies

10. Shell Programming and Scripting

Memory/virtual space

HP UNIX version 10.20 I have been using system variable names in some shell scripts in order to automate execution of some test software. I have recently found that there appears to be a restriction with the 'ls' command when listing specific files (e.g. ls *.c). If I pipe the output into wc, I... (5 Replies)
Discussion started by: degwright
5 Replies
Login or Register to Ask a Question