Linux Today: Linux News On Internet Time.





More on LinuxToday


More Quick Ways To Find CPU Bottlenecks On Linux

Nov 07, 2008, 18:05 (0 Talkback[s])
(Other stories by Mike Tremell)

WEBINAR:
On-Demand

How to Help Your Business Become an AI Early Adopter


[ Thanks to Mike Golvach for this link. ]

"2. host # more /proc/cpuinfo

"General output will look something like below. Generally, on most newer (and just slightly older) machines, you'll be dealing with CPU's that list out in /proc/cpuinfo as more than they "physically" are. That is to say that hyperthreading/multiple-core CPU's will not appear in this file as the single physical entity that they are. Of course, your situation may vary, but this file should (at the very least) give you a feel for whether you have a bad CPU problem. In a situation where you have 4 physical CPU's (hyperthreading to simulate 8 CPU's) you can get a good indication of whether the problem your facing (we'll just assume you're facing a problem ;) is of a physical nature. If 2 virtual CPU's are down (in proper sequence), you probably need some new parts :) The "physical id" line value, when compared with the "processor" line value, is usually a good indication of whether or not your system is using hyperthreading or any other virtual enhancements. Odds are, you'll probably know this information before you ever have to look at this file."

Complete Story

Related Stories: