![]() ![]() Get number of CPU grep -i "physical id" /proc/cpuinfo | sort -u | wc -l These commands worked from RHEL6 back to RHEL4 so most everyone should be able to use them, So if you're interested in giving these a whirl, there are also a few official knowledge solutions produced by our esteemed Ryan Sawhill you may want to review too:ĭmidecode | grep -i product Product Name: VMware Virtual Platform So Tom went back to work, happy and ready to give his bosses EXACTLY what they needed (he was so happy he had a new scripting project to tinker with). $ egrep -e "core id" -e ^physical /proc/cpuinfo|xargs -l2 echo|sort -u And then for fun (Tom is nothing if not fun) we wondered how you could account for if something was hyperthreaded or not so he whipped out this: This told us exactly how many sockets we had. $ cat /proc/cpuinfo | grep "physical id" | sort -u | wc -l Next we tried something that while much less pretty, zeroed in on the exact requirement: Not only can we see how many sockets he was using (which is what he was reporting for) but we also found out how many cores there were in each socket. First we tried this:Īt this command's "core" we got exactly what my pal Tom wanted, and then some. So we worked on a few simple commands that can be used to produce this data. I thought back to my years of running a large Enterprise *NIX team and shuddered easily once every month or so someone came by asking me the exact same questions. Sadly they did not have any type of CMDB in place to help (Configuration Management Database - something very handy to have when it comes to looking at your server inventory). He had a few 3rd-party products they needed to do some accounting on and each product was licensed using a different model. His organization was about ready to go through some licensing true-ups and he was in a bit of a pickle. I had a recent email from one of my customers. So please read on and let us know if you other options we can share. ![]() As with anything in this exciing world of open source, there are literally dozens of ways to skin this cat. I'm reposting here and have attempted to weave in some of the great comments we received from the Community. It was fairly popular and generated quite a bit of good conversation. One of the cpu flags shows me that I support vmx but not the other.So a while back I posted this article in our older portal group system. I'm unable to load the kvm_intel module and I have no other clue why this is so. I noticed this problem when trying to configure my system for KVM. Model name : Intel(R) Core(TM)2 CPU E8400 3.00GHzįlags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni monitor tm2 ssse3 lahf_lm dtsĪddress sizes : 36 bits physical, 48 bits virtualįlags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm dts tpr_shadow vnmi flexpriority Can someone explains to me why? I'm running Ubuntu 10.10 kernel 2.6.35-24-generic. Cat /proc/cpuinfo on my system gives me different flags for my 2 cores. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |