Memory or CPU size


 
Thread Tools Search this Thread
Operating Systems Solaris Memory or CPU size
# 1  
Old 11-22-2010
Memory or CPU size

Is there a command or file I can look at that tells me how much real memory a machine has? A little background. In my shop we run a bunch of java programs, sometimes some of these jobs have config definitions that call for 2G. I would like to know how many I can run before I exhaust rescources. Any feed back would be most helpful

Thanks
Harleyrci
# 2  
Old 11-22-2010
sysinfo() often has page size and RAM page count. However, in the age of VM, you can push that a bit, but not so hard that you start the system thrashing.

You exhaust VM when swap is consumed, which df can tell you of. Sometimes swap and /tmp drink from the same disk!

However, if you mmap() files, you can use RAM and address space without exhausting swap. If you munmap() and later mmap() the same pages, they can still be in RAM, so a 32 bit program can use this to access more than 4GB still at RAM speed. A 64 bit program can mmap64() every file on the machine and wander in them as if in RAM.

Dynamic libraries are loaded using mmap/mmap64(), so everyone is executing the same RAM pages. This can sometimes be true of the JAVA JVM and application VM footprint.
# 3  
Old 11-23-2010
Quote:
Originally Posted by Harleyrci
Is there a command or file I can look at that tells me how much real memory a machine has?
If by real memory, you mean RAM, then the simpler way would be:
Code:
prtconf|head

This User Gave Thanks to jlliagre For This Post:
# 4  
Old 11-23-2010
PHP Code:
prtdiag  grep "Memory size" 
If you have "top" utility. you will have similar output ( rest output omitted).

PHP Code:
Memory64G phys mem19G free mem48G total swap48G free swap 
# 5  
Old 11-23-2010
Greetings, I tried to execut the command prtdiag but received the following error:
prtdiag can only be run in the global zone

The prtconf worked very well. Any ideas?
Harleyrci
# 6  
Old 11-23-2010
You are running that command inside non-global zone. That is why you can't use prtdiag.
# 7  
Old 11-23-2010
I am not sure I know the difference between the two. I am not an adminer, i monitor batch and machine resources and stuff like that. Can you point me to some reference on the topic?

Thanks.
Harleyrci
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Get the memory and cpu usage

what is the best way to get the memory and cpu usage of a process on any system? this is relatively simple. however, i'm looking for a unified method that would work on linux, sunos, hpux, aix. ps -ef | egrep myprocess | awk '{print $4}' ---> there could be several instances of 'myprocess'... (3 Replies)
Discussion started by: SkySmart
3 Replies

2. Emergency UNIX and Linux Support

High CPU+Memory comsumption

Hi All, I have Solaris-9, Sun Fire V1280 with uptime of 501 Days. My Big brother monitoring showing me 90% + memory utilization on this box. Since this is production box, I can not reboot it. Is there way to know, what is consuming so much ? It is affecting my other environment on the box.... (16 Replies)
Discussion started by: solaris_1977
16 Replies

3. Solaris

CPU size

Hi, We had 3 slots of cpu. How do we check the size or capacity of the cpu for each one and how many cpu's inside the slots we had. Please help any one on this. thanks. (3 Replies)
Discussion started by: vijill
3 Replies

4. UNIX for Advanced & Expert Users

Out of Memory error when free memory size is large

I was running a program and it stopped and showed "Out of Memory!". at that time, the RAM used by this process is around 4G and the free memory size of the machine is around 30G. Does anybody know what maybe the reason? this program is written with Perl. the OS of the machine is Solaris U8. And I... (1 Reply)
Discussion started by: lilili07
1 Replies

5. Solaris

OS is not detected CPU and memory

Hi, Server AIBVRFCC failed POST while booting on 06/28/2009. Server is up, but OS cannot see two CPUs (CPU 0 and CPU 2) and half of the installed system memory (8 GB is physically installed but only 4 GB is seen by OS now). bld00016:root psrinfo 1 on-line since 06/28/09 05:51:36 3 on-line... (1 Reply)
Discussion started by: arumsun
1 Replies

6. UNIX for Dummies Questions & Answers

snmptrapd uses all the CPU and 4 Go memory

Hello all, Below what I saw on my solaris 10 box : $ prstat PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP 683 root 4082M 91M run 10 0 41:45:39 96% snmptrapd/1 syslog gives a lot of : snmptrapd: illegal data attempted to be added to table nlmLogVariableTable... (0 Replies)
Discussion started by: Gino_75
0 Replies

7. UNIX for Dummies Questions & Answers

CPU/Memory utilization

hi guys I just want to know how to get the cpu/memory utilization of a running script? Well i know that I can use the sar command but it shows the whole system's statistics. Is it possible to get the stats of a single scirpt or a single running service? (6 Replies)
Discussion started by: khestoi
6 Replies

8. 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

9. AIX

Utilization for memory and cpu

Hi all I need command to give me the utilization for memory and cpu,and how can I know if the utilization ok or no? for example in hp unix #top it is give me utilize for cpu and memory and also I can know if utilize ok or no. thanks (2 Replies)
Discussion started by: magasem
2 Replies

10. UNIX for Advanced & Expert Users

What's the easiest way to display system cpu, memory, # drives/size ??

I am looking for the easiest and most generic way to determine: System model/class Number of cpu's Clock speed of cpu's (ie 550 MHz) Total Physical Memory (not virtual) Number of Drives/Drive Size Thanks in advance, (4 Replies)
Discussion started by: eyounes
4 Replies
Login or Register to Ask a Question