Sunos how many processors




















Dear I hope you are with Solaris 9 or above, because soalris 7,8 had no -p flag. According to v their are two rage of server one those came with 1 CPU 1. If you are on Sun Microsystems hardware the following command will give you the cpus, memory and IO cards, in the system:.

Thanks for the response, The output confused me was this psrinfo -p , it showed 1; meaning 1 processor. I am not sure. Is it online, drivers, proc state. No Account? Sign up. By signing in, you agree to our Terms of Use and Privacy Policy. Already have an account? Sign in. By signing up, you agree to our Terms of Use and Privacy Policy. Enter the email address associated with your account.

We'll send a magic link to your inbox. But, I don't know is there any command could get the number 4 in this example to let my script use it? With modern CPUs and their multi-core, multi-thread technologies, you need to define more precisely what you want to count but in your case, psrinfo better suits the job:. Note that prtdiag wasn't designed to be parseable and might return a very different output depending on the hardware.

Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Ask Question. Asked 8 years, 8 months ago. Active 2 years, 4 months ago. Viewed 58k times. I can use 'prtdiag' to get number of CPU by prtdiag command. The command psrinfo -pv is the command you are looking for.

It gives you the number of physical cpus plus the count of virtual processor per physical processor. If you don't care about the distinction between cores and CMP threads, "psrinfo -pv" will suffice. I suspect your prtdiag -v though lists the cores quite nicely in the Location field.

Looks like you have a single CPU, quad core? All wrong You can't get the number of cores by just using a command line to this date.

Nothing in there will tell it to you directly, thought you can do some math to give you just an idea, and based on how old your box is. You have to know your CPU cores you purchased and by looking atyour hardware specs, then from there, you can compute the threads per core. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Learn more. Sun Solaris - Find out number of processors and cores Ask Question. Asked 11 years, 11 months ago.

Active 10 years, 4 months ago.



0コメント

  • 1000 / 1000