On Wednesday 12 January 2005 23:56, James Wilkinson wrote: > Alexander Dalloz wrote: > > I now understand Chadley's reformulated question this way: given you > > have an SMP (i.e. dual CPU) system but you boot a single CPU kernel (for > > whatever reason) - will then in /proc/stat appear cpu, cpu0 _and_ cpu1 > > or just cpu and cpu0? > > Paul had the same insecurity when he suggested to check whether > > /proc/cpuinfo contains a "processor : 1" entry in such a case. > > > > As I don't have a system where I can check this actually, someone with > > ability to look at should answer. > > I do (an aging Abit BP6 with dual Celeron 433s). > > [james@howells proc]$ grep cpu stat > cpu 8638 486 3637 29070 4949 115 0 > cpu0 8638 486 3637 29070 4949 115 0 > [james@howells proc]$ grep processor cpuinfo > processor : 0 > [james@howells proc]$ ls /sys/devices/system/cpu/ > cpu0 > > At a quick glance, I can't see any way of spotting that this is a SMP > system. > > However, SMP kernels should run perfectly well on single processor > systems: is there any chance, Chadley, that you can run your script > under a kernel compiled for SMP? Yes of cousre! :), but thats not what this is about. my script installs an upgraded kernel and updates for systems with no network. I was just looking for a way to test for how many cpus are in system regardless of the running kernel. Thanks you guys, I will keep hunting there must be away in which it can be done. -- Chadley Wilson Redhat Certified Technician Cert Number: 603004708291270 Pinnacle Micro Manufacturers of Proline Computers ==================================== Exercise freedom, Use LINUX =====================================