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

Re: Installation of Kernel -- uni vs smp



On Thu, 2003-05-22 at 12:34, Fong Vang wrote:
> Does anyone know which part of anaconda is responsible for installing both
> the uni and smp kernel on smp systems?  What's responsible for detecting the
> number of CPUs?  How does it do it?  With my own scripts, I normally use
> /proc/cpuinfo to detect the number of CPUs but what I've found out is that
> /proc/cpuinfo shows only 1 CPU when booting from a non-SMP kernel.  I'm just
> wondering if there's a better way to detect the true number of CPU
> regardless of the kernel.

There's code in anaconda that parses the mptable.  Look at isys/smp.c of
the anaconda source tree for all the gory details.  

Cheers,

Jeremy




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