Article View: aus.computers.linux
Article #245Re: Dual processors ?
From: Floyd Davidson
Date: Tue, 07 Jan 2003 15:24
Date: Tue, 07 Jan 2003 15:24
68 lines
3791 bytes
3791 bytes
Michael <mutk@iprimus.com.au> wrote:
>Ray wrote:
><snipp>
>> Comparing kernel compile times on two different systems is worthless unless
>> you both have exactly the same options selected.
>>
>
>
>That *isn't* what I did, and *isn't* what Floyd did.
Fact.
And, I decided last night to do a little more testing, just to
round it all out. I compiled a non-SMP kernel for my older box.
This box has an Asus P2B-DS motherboard with 512Mb of RAM and a
pair of 533Mhz Celerons in slotkits. It has a SCSI drive and an
IDE drive. The figures from hdparms show memory access is 98
MB/s, the IDE drive is 20 MB/s and the SCSI drive is 13 MB/s.
All tests were done on a basically quiet machine.
First, with an SMP kernel running, I compiled the kernel with
the source code on the SCSI disk, with the command
make clean; time make bzImage
The best time was 7:27. I then ran it with the command
make clean; time make -j2 MAKE="make -j2" bzImage
The best time was 4:21. (A ratio of 1.7).
Then I did those again, with the source code on the IDE drive.
I only ran each one time, with 7:24 for the single process make,
and 4:21 for the multi-process make. Three seconds difference
is basically about the minimum noise from one compile to the
next...
Then I rebooted with the non-SMP kernel and ran the same
tests again. 7:37 was the best time for a single process
make, and 7:32 was the best a multi-process make.
With the source on the IDE drive, and the non-SMP kernel,
a single process make was 7:35 and a multi-process make was
7:32.
These tests confirmed what I had previously stated that I would
expect to see (which was based on vague memories from doing
somewhat simular testing about a year ago on the system with
dual Athlon MP1600+ cpu's).
* The dual cpu machine is slightly faster (2%) than a single
cpu machine when doing a make that does not invoke multiple
parallel processes.
* Invoking a multi-process make on a single cpu machine
decreased the time by only 1%.
* Compiling source code from a disk system that is nearly twice
as fast had almost no effect (1%) on compile time. The job
appears to be compute bound.
* On this system SMP can provide at least a 1.7 times speed
increase for compute bound multiple process jobs.
--
Floyd L. Davidson <http://www.ptialaska.net/~floyd>
Ukpeagvik (Barrow, Alaska) floyd@barrow.com
Technical Details
Message-ID:
<87znqdx9st.fld@barrow.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!pln-e!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews4References:
<pan.2003.01.03.13.58.10.249319@iprimus.com.au> <av578p$c8s17$1@ID-99293.news.dfncis.de> <av5qtf$tcf$1@lust.ihug.co.nz> <fbf82913.0301040421.1a35bdfa@posting.google.com> <87of6w7ump.fld@barrow.com> <pan.2003.01.05.05.14.18.890697.1189@optusnet.com.au> <fbf82913.0301052125.566f67d4@posting.google.com> <slrnb1id7d.1fs.nmos@homer.sonictech.net> <3E1A7A8F.2010404@iprimus.com.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 114381,acfea8e5e9ff6f15 X-Google-Attributes: gid114381,public X-Google-Thread: 102b32,acfea8e5e9ff6f15 X-Google-Attributes: gid102b32,public X-Google-Thread: 102983,acfea8e5e9ff6f15 X-Google-Attributes: gid102983,public X-Google-ArrivalTime: 2003-01-07 07:51:06 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!pln-e!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews4 From: Floyd Davidson <floyd@ptialaska.net> Newsgroups: aus.computers.linux,comp.os.linux.hardware,aus.ads.forsale.computers.used Subject: Re: Dual processors ? Date: 07 Jan 2003 06:24:18 -0900 Organization: __________ Lines: 68 Sender: floyd@barrow.com Message-ID: <87znqdx9st.fld@barrow.com> References: <pan.2003.01.03.13.58.10.249319@iprimus.com.au> <av578p$c8s17$1@ID-99293.news.dfncis.de> <av5qtf$tcf$1@lust.ihug.co.nz> <fbf82913.0301040421.1a35bdfa@posting.google.com> <87of6w7ump.fld@barrow.com> <pan.2003.01.05.05.14.18.890697.1189@optusnet.com.au> <fbf82913.0301052125.566f67d4@posting.google.com> <slrnb1id7d.1fs.nmos@homer.sonictech.net> <3E1A7A8F.2010404@iprimus.com.au> NNTP-Posting-Host: p-563.newsdawg.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: gnus 5.8.3/XEmacs 21.1.9/Linux