Re: availableProcessors() : wrong amont of CPU?
nissaba@gmail.com wrote:
yes I was asking a question, this is the reason of the "?" at the end
of the phrase,
if you prefer : is ti too late to install the "kernel-smp"? or is it
some thing that can be done post installation od the OS?
I am googling for a howto install the smp... but not much luck at
finding any! so if any one can post some info or give me a link the
know is good.
There almost certainly won't be any HowTo to install a SMP kernel in Fedora. In
Fedora the smp kernel is just like any other package. You use yum, and run "yum
install kernel-smp". If you have configured yum correctly it will resolve all
the package dependencies and then ask you if you want to install all the
necessary packages.
Next time you reboot grub should offer you a choice of kernel to run, the old
uniprocessor kernel and the new smp kernel. Select the one you require and boot
the system.
Now, back to the original question. Your system should have a file
called /proc/stat, not /proc/stat?, and the contents of it should tell you what
processors you have on the system, and what their operation usage is. For
example, on a quad Opteron system its contents are:
cpu 155402077 3146078 22669292 791716313 26878850 189614 1524483
cpu0 31170000 854013 5338568 210394535 1745718 137046 741866
cpu1 32676931 834317 4714476 208704719 3300097 26986 124120
cpu2 45027827 748936 6519636 182495470 15165198 7547 417031
cpu3 46527318 708810 6096611 190121588 6667835 18034 241465
the columns indicate the amount of time each CPU has been utilised in various
modes since boot. If both your processors are running, and being used, you
should see info for each.
--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555