oops, clicked submit too fast... based on the results of the /usr/sbin/prtconf | grep Mem command, you also have 16 GB of memory...
Main Topics
Browse All Topicshi all,
sorry i am very very new to hardware stuff and solaris box, so pls be patient
i need to know how can i find out how many cpu's i have in my server and how much is the memory (RAM etc..) to process my programs..
i ran
/usr/sbin/prtconf | grep Mem
Memory size: 16384 Megabytes
does it mean i have 16GB of RAM?
what is swap memory? what is the value? what is it used for in processes?
if i run
psrinfo -v
i get
psrinfo -v
Status of processor 0 as of: 06/28/05 10:50:03
Processor has been on-line since 06/25/05 07:03:54.
The sparcv9 processor operates at 1200 MHz,
and has a sparcv9 floating point processor.
Status of processor 1 as of: 06/28/05 10:50:03
Processor has been on-line since 06/25/05 07:04:00.
The sparcv9 processor operates at 1200 MHz,
and has a sparcv9 floating point processor.
Status of processor 2 as of: 06/28/05 10:50:03
Processor has been on-line since 06/25/05 07:04:00.
The sparcv9 processor operates at 1200 MHz,
and has a sparcv9 floating point processor.
Status of processor 3 as of: 06/28/05 10:50:03
Processor has been on-line since 06/25/05 07:04:00.
The sparcv9 processor operates at 1200 MHz,
and has a sparcv9 floating point processor.
Status of processor 8 as of: 06/28/05 10:50:03
Processor has been on-line since 06/25/05 07:04:00.
The sparcv9 processor operates at 1200 MHz,
and has a sparcv9 floating point processor.
Status of processor 9 as of: 06/28/05 10:50:03
Processor has been on-line since 06/25/05 07:04:00.
The sparcv9 processor operates at 1200 MHz,
and has a sparcv9 floating point processor.
Status of processor 10 as of: 06/28/05 10:50:03
Processor has been on-line since 06/25/05 07:04:00.
The sparcv9 processor operates at 1200 MHz,
and has a sparcv9 floating point processor.
Status of processor 11 as of: 06/28/05 10:50:03
Processor has been on-line since 06/25/05 07:04:00.
The sparcv9 processor operates at 1200 MHz,
and has a sparcv9 floating point processor.
does this mean i have 11 cpu of speed 1200MHZ?
How exactly to intrepret it?
Basically, i need to know as much as possible of my hardware to improve my performance of the code..
would appreciate help pls
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
How can i determine how much memory and swap space my process is taking?
I guess if I understand it correcelty, if swap space is being taken by the process, it slows down the process right? more swap space .. more slow is the process?
so if i see that swap space is being taken by my process ... if i increase the RAM from 16G to say 24 G, should i expect increase in performance of code?
and what other factors from solaris stand-point can help me determine why my application is slow?
any ideas please
hmm,
so bascially that means that solaris server has not been configured correcetly right? sicne based on pshattuck
swap space ideally should be 24G, but it is 2G is a vast difference?
hmm, i know about prstat, but well, it shows cpu utilization .. say like 45% etc.. but where does it show how much RAM is being used? How much swap is being used? and finally after process ended, how much RAM it used finally and how much swap it used finally after everything
there are many processes running on the server, i just need to know about my process..
any way to do it?
you can also use sar (ie sar -g) or vmstat to measure usage... prstat shows the size of the process (once again, type man prstat)
you can also use pmap (ie pmap -x PID ) to look at details of process memory usage...
Use the man command to view how to use all of these commands as they would be rather large to paste into here...
/usr/platform/sun4u/sbin/p
will give you more detailes information regarding the hardware you have on your system.
swap -l
will give you all the swap files allocated on the system.
Basicallu swap -s tells how much swap you have on the system at any time.
this is physical ram + swap alloacated by you = 16 GB + swap file space.
-------
usr utility avaibable on the web called top will give you more information about how much each process is taking and all.
Also prstat also could give you more info on the same line.
shiv,
prtdiag is interesting to run, but it is giving me so much output.. and i don't know how to intrepret it..
it gives me
==========================
====
E$ CPU CPU Temperature Fan
CPU Freq Size Impl. Mask Die Ambient Speed Unit
------ -------- ---------- ------ ---- -------- -------- ----- ----
SB0/P0 1200 MHz 8MB US-III+ 6.0 45 C 27 C
SB0/P1 1200 MHz 8MB US-III+ 6.0 43 C 26 C
SB0/P2 1200 MHz 8MB US-III+ 6.0 45 C 26 C
SB0/P3 1200 MHz 8MB US-III+ 6.0 43 C 27 C
SB2/P0 1200 MHz 8MB US-III+ 6.0 43 C 25 C
SB2/P1 1200 MHz 8MB US-III+ 6.0 42 C 25 C
SB2/P2 1200 MHz 8MB US-III+ 6.0 43 C 25 C
SB2/P3 1200 MHz 8MB US-III+ 6.0 43 C 25 C
first, why is processor (or CPU) P1, P0 .. coming twice?? it probably shows that i have 4 processors correct??
but same m/c above (with psrinfo -v) shows 8 processors..not sure what is going on.. help pls
firther it shows
Bank Table:
--------------------------
Physical Location
ID ControllerID GroupID Size Interleave Way
--------------------------
0 0 0 1GB 0
2 0 0 1GB 4
4 1 0 1GB 1
.....
wat does this mean?
RevelationCS , pmap looks an interesting cmd too.. giving me lot of info..
not sure how to read it though.. i will read man pages.. in case you or anybody is aware of any URL which describes these commands and output in detail, please do let me know..
RevelationCS
WHEN I posted results of swap -s on my m/c..
as
swap -s
total: 2304576k bytes allocated + 918192k reserved = 3222768k used, 18599320k available
You said, it is
2 GB of swap space with 1.8 GB available...
firstly, isn't it 18GB available (18599320k = 18599MB = 18GB)..
RAM = 16G on my system..
I am unable to relate these results
allocated swap is 2.3 G (2304576k bytes ) what is allocated swap?? is it a total swap in the system? or is it a allocated swap for some process?
if 18G is available -- why is 2.3 G allocated? to what? and where is it defined?
18G is available -- but what is total swap?
sorry, i am confused.. just trying to relate the results with the comments.. pls help
I apologize, as I read that wrong when I first looked at the output of swap -s
Looked at the output of the swap -s on one of my machines and this is what I see:
total: 2601752k bytes allocated + 2542288k reserved = 5144040k used, 9603616k available
If I remember correctly, swap is defined in /etc/vfstab... Based on the configs on my machine used for the example above, I have 2048m allocated to swap in /tmp. Now for the definitions of the swap -s (according to the Solaris Boot Camp book):
Bytes allocated - refers to the amount of swap that has been allocated and is in use
Reserved - refers to the amount of swap that has been claimed for possible future use, but is not actually being used
Used - Total of Bytes Allocated and Reserved
Available - The total swap space in bytes that is currently available for future reservation and allocation.
You got it right about the swap, you have 18 GB on your system.
Total swap on running system = Total physical memory on the system + allocated swap on hard disk.
ie
16 GB RAM + 2 GB (you allocated swap is 2.3 G (2304576k bytes ) ) = 18 GB.
Q: what is allocated swap??
Alloacted swap is swap space you allocate when you install solaris and this is disk based memory(space on hard disk reserved for swap).
You Have 8 cpus.
------------------
CPU Freq Size Impl. Mask Die Ambient Speed Unit
------ -------- ---------- ------ ---- -------- -------- ----- ----
SB0/P0 1200 MHz 8MB US-III+ 6.0 45 C 27 C
SB0/P1 1200 MHz 8MB US-III+ 6.0 43 C 26 C
SB0/P2 1200 MHz 8MB US-III+ 6.0 45 C 26 C
SB0/P3 1200 MHz 8MB US-III+ 6.0 43 C 27 C
SB2/P0 1200 MHz 8MB US-III+ 6.0 43 C 25 C
SB2/P1 1200 MHz 8MB US-III+ 6.0 42 C 25 C
SB2/P2 1200 MHz 8MB US-III+ 6.0 43 C 25 C
SB2/P3 1200 MHz 8MB US-III+ 6.0 43 C 25 C
------------------------
On Sun hardware sb0 is represent a cpu/mem boards. and on one board you can have 4 cpus.
so on sb0 you have 4 cpus and 4 on sb1. = 8 cpus.
Business Accounts
Answer for Membership
by: RevelationCSPosted on 2005-06-28 at 11:19:29ID: 14321332
actually, dont forget to count the Processor 0 as the first processor... from the looks of it you have 8 SPARC 1.2 Processors...