[EMAIL PROTECTED] wrote: > Hi, > > I just joined this group. For the record, I built a 2.2.4 kernel with SMP > enabled and it started fine > on my dual PPro box [TYAN S1668 motherboard, 440FX PCI-ISA]. Since there > are no "official" benchmarks > to verify dual processor speed, I wrote the following applet based on the > "Parallel programming mini-howto". > This applet calculates the value of PI given the number of interations (say > 100000) and the number of threads. > It would be interesting for others to build and run this, then report some > results for comparison. In particular, I'm interested in BX chipsets and > how shared memory configurations differ. Building the applet: > > gcc -O pi.c -o pi -D_REENTRANT -lpthread -lm > ./pi 100000 2 // times 2 threads calculating PI using 100000 > iterations > > Source code: > > (See attached file: pi.c) > > Here are my timings: (dual PPRO 150 MHz) > > Process: 0.029640 secs. > Thread 0: 0.028207 secs. > Thread 1: 0.028114 secs > Estimation of pi is 3.141593 > > The total process took 29.6 ms. which consists of 2 threads running in > parallel (thread 0 = 28.2 ms, thread 1 = 28.1 ms). > > On another note, I am building a dual Celeron PCI card (custom design) and > would like to combine Real-time Linux with SMP into an embedded, bootable > kernel. Anyone ever work on this? > > Regards, > > Terry Arden > > ---------------------------------------------------------------------- > Name: pi.c > pi.c Type: unspecified type (application/octet-stream) > Encoding: base64 I ran your program on our Primergy 670 server. It's a dual P-II @ 350 Mhz and 512Mhz. The motherboard is based on the BX chip set. The result may be a bit colored because there are 7 users logged in (on X-terminals) and the load was about 3.0. If you're interested I can run you program at night. The OS is SuSE Linux 6.0 with kernel 2.2.3 and all necessary updates. Here are the results erwinb@apollo:~/pi > ./pi 100000 2 Process: 0.015597 secs. Thread 0: 0.009664 secs. Thread 1: 0.010158 secs. Hope this is of any use to you. Regards, Erwin de Beus
begin:vcard n:de Beus;Erwin tel;fax:+31 15 2781204 tel;work:+31 15 2783248 x-mozilla-html:TRUE url:www.ws.tn.tudelft.nl org:Delft University of Technology;Department of Applied Physics - Section Thermal and Fluids Sciences adr:;;Lorentzweg 1;Delft;;2628 CJ;The Netherlands version:2.1 email;internet:[EMAIL PROTECTED] x-mozilla-cpt:;-20288 fn:Erwin de Beus end:vcard
