Re: smp kernel bash script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 12 January 2005 19:09, Alexander Dalloz wrote:
> Am Mi, den 12.01.2005 schrieb Chadley Wilson um 17:52:
> > > grep "cpu1" /proc/stat
> > >
> > > Test this. If at least cpu1 appears there, then you have an SMP system.
> > > This is more reliable than to check whether an SMP kernel is running.
> > >
> > > > Chadley Wilson
> > >
> > > Alexander
> >
> > Thanks Alexander I will try your suggestion but in the morning, I will
> > add it to my script so long.
> >
> > Question though, will that not reflect results based on the current
> > running kernel? (should it be a non smp kernel)
> >
> > Chadley Wilson
>
> You mean the case, you have an SMP system but don't want to run the SMP
> kernel? Then improve your decision logic in the script!
>
> if cpu1 exists and uname has smp -> install SMP kernel
> if cpu1 exists and uname shows single CPU kernel running -> install
> normal kernel
>
> Or install both kernel types (if cpu1 exists) and decide which you make
> active in grub based on the info which kernel is running actually.
>
> Alexander

No no, you misunderstand what I mean, Sorry I will explain. 
If I have an smp cpu but I am running the std kernel, will 

grep "cpu1" /proc/stat

return the value of a std  cpu running instead of a smp cpu?
ie: nothing






-- 
Chadley Wilson
Redhat Certified Technician 
Cert Number: 603004708291270
Pinnacle Micro
Manufacturers of Proline Computers
====================================
Exercise freedom, Use LINUX
=====================================


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux