Visit Our UNIX and Linux User Community


Number of CPU and Memory information in SunOS server?


 
Thread Tools Search this Thread
Operating Systems Solaris Number of CPU and Memory information in SunOS server?
# 1  
Old 01-28-2010
Number of CPU and Memory information in SunOS server?

I have SunOS and here is the version details

Code:
SunOS chfdalsun003 5.10 Generic_138888-03 sun4u sparc SUNW,Sun-Fire-V890

I have couple of questions.

How do i see number of CPU's in the server?

How can i see the Server memory(RAM)? The detail memory information like(total, used, free etc). In Linux, we have free command... but what is the equal command here?

Any help is highly appreciated...

Last edited by DukeNuke2; 01-28-2010 at 05:14 PM..
# 2  
Old 01-28-2010
You can use "prtdiag" to display the installed CPUs and memory. This is from a Sunfire V490 with 4 CPUs and 32 GB memory:

Code:
# prtdiag
System Configuration:  Sun Microsystems  sun4u Sun Fire V490
System clock frequency: 150 MHz
Memory size: 32768 Megabytes

========================= CPUs ===============================================

          Run   E$  CPU     CPU
Brd  CPU  MHz   MB  Impl.   Mask
--- ----- ---- ---- ------- ----
 A  0, 16 1800 32.0 US-IV+   2.2
 B  1, 17 1800 32.0 US-IV+   2.2
 A  2, 18 1800 32.0 US-IV+   2.2
 B  3, 19 1800 32.0 US-IV+   2.2

========================= Memory Configuration ===============================

          Logical  Logical  Logical
     MC   Bank     Bank     Bank         DIMM    Interleave  Interleaved
Brd  ID   num      size     Status       Size    Factor      with
---  ---  ----     ------   -----------  ------  ----------  -----------
 A    0     0      2048MB   no_status    1024MB     8-way        0
 A    0     1      2048MB   no_status    1024MB     8-way        0
 A    0     2      2048MB   no_status    1024MB     8-way        0
 A    0     3      2048MB   no_status    1024MB     8-way        0
 A    2     0      2048MB   no_status    1024MB     8-way        0
 A    2     1      2048MB   no_status    1024MB     8-way        0
 A    2     2      2048MB   no_status    1024MB     8-way        0
 A    2     3      2048MB   no_status    1024MB     8-way        0
 B    1     0      2048MB   no_status    1024MB     8-way        1
 B    1     1      2048MB   no_status    1024MB     8-way        1
 B    1     2      2048MB   no_status    1024MB     8-way        1
 B    1     3      2048MB   no_status    1024MB     8-way        1
 B    3     0      2048MB   no_status    1024MB     8-way        1
 B    3     1      2048MB   no_status    1024MB     8-way        1
 B    3     2      2048MB   no_status    1024MB     8-way        1
 B    3     3      2048MB   no_status    1024MB     8-way        1

"vmstat" shows you the free memory. Or you install SMCtop from sunfreeware.com which brings you the familiar "top" command.
# 3  
Old 01-28-2010
Thank you!!!
# 4  
Old 01-29-2010
Please note it is common for CPUs here (in prtdiag) to be cores/strands.
# 5  
Old 01-29-2010
I'm not sure if it's made it into Solaris 10 yet, but Open Solaris has "lgrpinfo", which gives not only the number of CPUs and memory but also a lot of information regarding their configuration, which can be important on a NUMA host.
# 6  
Old 01-29-2010
Quote:
Originally Posted by govindts
How do i see number of CPU's in the server?
This command give the number of virtuals CPUs (can be larger than the number of chips with multi-core/threads):
Code:
psrinfo

Quote:
How can i see the Server memory(RAM)?
That one is the usual answer and works with system lacking prtdiag:
Code:
prtconf | grep Memory

Quote:
The detail memory information like(total, used, free etc). In Linux, we have free command... but what is the equal command here?
The closer would be
Code:
echo ::memstat|mdb -k

, as root.
# 7  
Old 02-03-2010
Memory or Disk size info can be got using

iostat -E | grep Size

This command should list the no. of hard disks and their capacity

Previous Thread | Next Thread
Test Your Knowledge in Computers #524
Difficulty: Medium
The ASCII table was designed to enforce a lexicographic ordering: letters are in alphabetic order, uppercase precede lowercase versions, and numbers come after both.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Cpu information

hi unix expert is there any program in terminal to show cpu and ram information? and usage of this? Many thanks samad (3 Replies)
Discussion started by: abdossamad2003
3 Replies

2. Red Hat

CPU and Cores information

Hi all. I have a question about linux command to find number of CPU and Core. I usually use the command dmidecode -t processor to find cpu and core numbers . On this machine with Red Hat 4. 0 when I try to insert the command is returned the error -bash: dmidecode: command not found I try to... (8 Replies)
Discussion started by: piccolinomax
8 Replies

3. UNIX for Dummies Questions & Answers

Is it possible to combine multiple CPU to act as a single CPU on the same server?

We have a single threaded application which is restricted by CPU usage even though there are multiple CPUs on the server, hence leading to significant performance issues. Is it possible to merge / combine multiple CPUs at OS level so it appear as a single CPU for the application? (6 Replies)
Discussion started by: Dissa
6 Replies

4. Shell Programming and Scripting

Solaris 5.10 CPU Information With Timestamp

Hi, In Solaris 5.10, can I run a command or a small script that will output CPU% user, system, wait and idle (The output from iostat or vmstat) along with a date/timestamp. The date/timestamp can be in any format that is easy to understand. I intend to use crontab to call the script once... (2 Replies)
Discussion started by: QZ1
2 Replies

5. Shell Programming and Scripting

Memory Usage Monitor on Linux/SunOS Servers

ok, so i'm trying to write a shell script (not perl) that monitors memory usage on a server. but i'm confused as to what fields exactly determines that yes, memory is low on a particular server. it sounds simple enough, but it really isn't. what do I look for in the field below? ... (1 Reply)
Discussion started by: SkySmart
1 Replies

6. Red Hat

Number of CPU in LINUX server

I want to find number of CPU and number NIC card in Linux server. I have below content in /proc/cpuinfo. I have from processor 0 - 15. It means, i have 15 similar entries in that file. How many CPU we have on this server? also how do find how many NIC card on this? processor : 0... (5 Replies)
Discussion started by: govindts
5 Replies

7. Red Hat

Number of CPU in linux server

I am using linux server.. how do i see number of CPU's in the server? TOP command is not providing result.. Any help is highly appreciated. (8 Replies)
Discussion started by: govindts
8 Replies

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

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

10. UNIX for Advanced & Expert Users

CPU Usage Information

how would I list the high end of CPU utilization for the previous hours of the day. I don't need to know the averages. I'm wanting to know the high and low, etc. for what ever time interval that is avaliable? Thank you. (2 Replies)
Discussion started by: cubs0729
2 Replies

Featured Tech Videos