Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jan 1997 22:15:13 -0500 (EST)
From:      Chuck Robey <chuckr@Glue.umd.edu>
To:        FreeBSD-SMP@FreeBSD.org
Subject:   Testing new machine
Message-ID:  <Pine.OSF.3.95.970108220945.15523A-100000@modem.eng.umd.edu>

next in thread | raw e-mail | index | archive | help
I don't think I'm seeing any benefit from my second CPU.
I've done some testing, compiling kernels, with different
values given to make -j, to see the difference between
response on my single processor machine versus my 2 CPU
machine.

Below are the times, as reported by /usr/bin/time, for
a make on a rather complete kernel (no LKMs).  The config
files for the kernels on the two machines were identical
(the generated kernel would not have run on both machines)
and the sources were identical.  I added a column
"real/noralized" that is the value of the real time taken
by the runs divided by the real time taken for the make -j 1
run, so as to give a comparative feeling.

I am much more concerned with the relative values, and how they show what
benefit I get from increasing the make -j value.  I see little benefit
from the extra CPU.

Below is a mass of data, if you don't want to wade thru it, could you
suggest some method I might use to actually verify my second CPU's
utilization?  The PPro machine is a Tyan Titan Pro.  Both machines have
identical disks, the PPro has 64 megs ram, the Pentium only 32 megs.

Thanks for any hints.

--(PPro/166, 2 CPUs, 512k internal cache/CPU)----------------------
                                                real/normalized
make -j 1, 420.00 real  200.32 user   27.67 sys     1.000
make -j 2, 311.71 real  200.86 user   28.95 sys     1.347
make -j 3, 282.59 real  202.50 user   28.66 sys     1.486
make -j 4, 275.37 real  203.65 user   28.64 sys     1.525
make -j 5, 271.67 real  204.25 user   28.83 sys     1.546
make -j 6, 263.22 real  203.66 user   29.88 sys     1.596
make -j 7, 260.99 real  204.40 user   29.53 sys     1.609
make -j 8, 261.07 real  204.93 user   29.36 sys     1.609

--(Pentium/166, 1 CPU, 512K external cache)------------------------
                                                real/normalized
make -j 1, 556.68 real  299.65 user   24.00 sys     1.000
make -j 2, 421.50 real  301.13 user   24.48 sys     1.321
make -j 3, 388.21 real  301.94 user   25.89 sys     1.434
make -j 4, 376.69 real  302.00 user   26.42 sys     1.478
make -j 5, 380.96 real  303.30 user   25.82 sys     1.461
make -j 6, 370.55 real  303.00 user   26.54 sys     1.502
make -j 7, 369.97 real  303.63 user   27.69 sys     1.505
make -j 8, 372.43 real  303.41 user   27.85 sys     1.495

I entered the values given from mptable in my 2 CPU machine,
and that was the kernel that was being tested on that machine.
Here is my dmesg.  I don't know what to look for, for proof
that my second CPU on my PPro system is being activated:


California.  All rights reserved.

FreeBSD 3.0-SMP #0: Mon Jan  6 15:10:34 EST 1997
    chuckr@picnic.cbr:/usr/src/sys/compile/CHUCKRSP
FreeBSD/SMP: Multiprocessor motherboard
 cpu0 (BSP): apic id: 1, version: 0x00040011
 cpu1 (AP):  apic id: 0, version: 0x00040011
 io0 (APIC): apic id: 2, version: 0x00170011
Calibrating clock(s) relative to mc146818A clock ... i8254 clock: 1193119 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
CPU: Pentium Pro (686-class CPU)
  Origin = "GenuineIntel"  Id = 0x617  Stepping=7
  Features=0xfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,<b11>,MTRR,PGE,MCA,CMOV>
real memory  = 67108864 (65536K bytes)
avail memory = 62586880 (61120K bytes)
pcibus_setup(1):	mode 1 addr port (0x0cf8) is 0x8000005c
pcibus_setup(1a):	mode1res=0x80000000 (0x80000000)
pcibus_check:	device 0 is there (id=12378086)
Probing for devices on PCI bus 0:
	configuration mode 1 allows 32 devices.
chip0 <Intel 82440FX (Natoma) PCI and memory controller> rev 2 on pci0:0
chip1 <Intel 82371SB PCI-ISA bridge> rev 1 on pci0:7:0
chip2 <Intel 82371SB IDE interface> rev 0 on pci0:7:1
	mapreg[20] type=1 addr=00003000 size=0010.
ncr0 <ncr 53c825a wide scsi> rev 19 int a irq 18 on pci0:12
Freeing (NOT implimented) irq 11 for ISA cards.
	mapreg[10] type=1 addr=00006000 size=0100.
	mapreg[14] type=0 addr=e0000000 size=0100.
	mapreg[18] type=0 addr=e0001000 size=1000.
	reg20: virtual=0xf6fed000 physical=0xe0000000 size=0x100
ncr0: restart (scsi reset).
	BIOS values: dmode: 8e, dcntl: a1, ctest3: 31
	dmode: ce/8e, dcntl: a1/a1, ctest3: 01/31
ncr0 scanning for targets 0..6 and 8..15 (V2 pl24 96/12/14)
ncr0 waiting for scsi devices to settle
(ncr0:0:0): "CONNER CP30200  SUN0207 4544" type 0 fixed SCSI 2
sd0(ncr0:0:0): Direct-Access 
sd0(ncr0:0:0): 5.0 MB/s (200 ns, offset 16)
203MB (416108 512 byte sectors)
sd0(ncr0:0:0): with 2123 cyls, 4 heads, and an average 49 sectors/track
(ncr0:1:0): "DEC DSP3210S 442A" type 0 fixed SCSI 2
sd1(ncr0:1:0): Direct-Access 
sd1(ncr0:1:0): 10.0 MB/s (100 ns, offset 15)
2047MB (4194303 512 byte sectors)
sd1(ncr0:1:0): with 3045 cyls, 16 heads, and an average 86 sectors/track
(ncr0:2:0): "DEC DSP3210D 442Y" type 0 fixed SCSI 2
sd2(ncr0:2:0): Direct-Access 
sd2(ncr0:2:0): 10.0 MB/s (100 ns, offset 15)
2047MB (4194303 512 byte sectors)
sd2(ncr0:2:0): with 3045 cyls, 16 heads, and an average 86 sectors/track
(ncr0:4:0): "TEXEL CD-ROM DM-XX28 3.05" type 5 removable SCSI 2
cd0(ncr0:4:0): CD-ROM 
cd0(ncr0:4:0): asynchronous.
cd present [325252 x 2048 byte records]
pci0: uses 4352 bytes of memory from e0000000 upto e0001fff.
pci0: uses 272 bytes of I/O space from 3000 upto 60ff.
Probing for devices on the ISA bus:
sc0 at 0x60-0x6f irq 1 on motherboard
sc0: VGA color <16 virtual consoles, flags=0x0>
ed0 at 0x280-0x29f irq 5 maddr 0xd8000 msize 16384 on isa
ed0: address 00:00:c0:e8:15:52, type WD8013WC (16 bit) 
bpf: ed0 attached
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
lpt0 at 0x378-0x37f irq 7 on isa
lpt0: Interrupt-driven port
lp0: TCP/IP capable interface
bpf: lp0 attached
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: NEC 72065B
fd0: 1.44MB 3.5in
fd1: 1.2MB 5.25in
npx0 on motherboard
npx0: INT 16 interface
imasks: bio c0040040, tty f00000ba, net f00000ba
BIOS Geometries:
 0:00ca3f20 0..202=203 cylinders, 0..63=64 heads, 1..32=32 sectors
 1:02077f3f 0..519=520 cylinders, 0..127=128 heads, 1..63=63 sectors
 2:02077f3f 0..519=520 cylinders, 0..127=128 heads, 1..63=63 sectors
 0 accounted for
Device configuration finished.
Considering FFS root f/s.
configure() finished.
Enabled INTs: 1, 2, 3, 4, 5, 6, 7, 8, 18, imen: 0x00fbfe01
new masks: bio c0040040, tty f00000ba, net f00000ba
bpf: tun0 attached
bpf: sl0 attached
bpf: ppp0 attached
bpf: lo0 attached
sd1s1: type 0xa5, start 63, end = 4193279, size 4193217 : OK
SMP: All idle procs online.
sd2s1: type 0xa5, start 63, end = 4193279, size 4193217 : OK


----------------------------+-----------------------------------------------
Chuck Robey                 | Interests include any kind of voice or data 
chuckr@eng.umd.edu          | communications topic, C programming, and Unix.
9120 Edmonston Ct #302      |
Greenbelt, MD 20770         | I run Journey2 and picnic, both FreeBSD
(301) 220-2114              | version 3.0 current -- and great FUN!
----------------------------+-----------------------------------------------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.3.95.970108220945.15523A-100000>