x
Loading
 Loading
Hello, Guest | Login | Register

Adding a Processor, Using WinMondems

When I add another processor will Linux automatically use it, or do I need to do something else?

1

When I add another processor will Linux automatically use it, or do I need to do something else?

In short, it depends. Linux can support the use of multiple processors directly in the kernel, but whether you have this compiled into your kernel is really the question at hand.

Use of multiple processors under Linux is supported via Symmetrical Multi-Processing. SMP allows Linux to pass threads to the various CPUs on the machine in a hopefully equal manner, allowing for machine tasks to be performed quickly. This has a number of noticeable side effects.

First of all, your kernel messages at boot time will be altered to represent the two processors now living in the machine. Secondly, /proc/cpuinfo will now present you with two (or more) processors on its lists. However, the first really quirky thing that you will come across will be the process load identifiers.

The machine load will still be calculated in a similar manner; however, it is only when the machine reaches a load of 2.0 (or n.0, where n is a number of processors) that the number of queued processors exceeded the number of available CPUs.

Listing One: dmesg Output

# dmesg | grep SMP Linux version 2.4.5 (root@ophelia) (gcc version 2.95.2 20000220 (Debian GNU/Linux)) #2 SMP…

Please log in to view this content.

Not Yet a Member?

Register with LinuxMagazine.com and get free access to the entire archive, including:

  • Hands-on Content
  • White Papers
  • Community Features
  • And more.
Already a Member?
Log in!
Username

Password

Remember me

Forgotten your password?
Forgotten your username?
Read More
  1. KDE 4.4: Does It Work Yet?
  2. Writing Custom Nagios Plugins with Python
  3. Power Up Linux GUI Apps
  4. Tweeting from the Command Line with Twyt
  5. When Memory Serves You: Using ramfs and tmpfs
Follow Linux Magazine
Rackspace