Date: Sat, 27 Nov 2004 10:03:25 +0100 From: "Frank Behrens" <frank@pinky.sax.de> To: freebsd-stable@freebsd.org Subject: Re: make -j$n buildworld : use of -j investigated Message-ID: <200411270903.iAR93Aao024219@moon.behrens>
next in thread | raw e-mail | index | archive | help
I read this thread with interest and saw the question, how the system wil behave with hyperthreading. Should I not benchmark my system? here you have the results. The interpretation is left to the experts. IMHO HT is not as useless as expected. :-) I did not switch off SMP with sysctl, but used an extra UP Kernel to allow some optimizations during compile. But I don't know if there are any.. Hardware is CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (2798.66-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf33 Stepping = 3 Hyperthreading: 2 logical CPUs real memory = 1072889856 (1023 MB) avail memory = 1040453632 (992 MB) Two 117246MB <Maxtor 6Y120M0/YAR51HW0> [238216/16/63] at ata2-master SATA150, one is on /usr/src, the other on /usr/obj. SMP Kernel 5.3-STABLE, nearly GENERIC, option SMP, some drivers removed ========== Fri Nov 26 13:58:54 CET 2004 Start make -j 5 -DNOGAMES buildworld 32m51.01s real 50m51.61s user 11m33.17s sys 47540 maximum resident set size 2834 average shared memory size 1441 average unshared data size 128 average unshared stack size 21126270 page reclaims 531 page faults 0 swaps 17576 block input operations 2747 block output operations 0 messages sent 0 messages received 25289 signals received 426800 voluntary context switches 519922 involuntary context switches Fri Nov 26 14:31:45 CET 2004 END make -j 5 -DNOGAMES buildworld Fri Nov 26 14:31:45 CET 2004 Start make -j 4 -DNOGAMES buildworld 32m36.07s real 50m59.94s user 11m23.83s sys 47540 maximum resident set size 2843 average shared memory size 1444 average unshared data size 128 average unshared stack size 20968831 page reclaims 471 page faults 0 swaps 1572 block input operations 2625 block output operations 0 messages sent 0 messages received 24577 signals received 399521 voluntary context switches 499416 involuntary context switches Fri Nov 26 15:04:21 CET 2004 END make -j 4 -DNOGAMES buildworld Fri Nov 26 15:04:21 CET 2004 Start make -j 3 -DNOGAMES buildworld 32m30.77s real 50m48.61s user 11m23.91s sys 47540 maximum resident set size 2839 average shared memory size 1443 average unshared data size 128 average unshared stack size 20968366 page reclaims 408 page faults 0 swaps 1500 block input operations 2638 block output operations 0 messages sent 0 messages received 24902 signals received 406593 voluntary context switches 494799 involuntary context switches Fri Nov 26 15:36:52 CET 2004 END make -j 3 -DNOGAMES buildworld Fri Nov 26 15:36:52 CET 2004 Start make -j 2 -DNOGAMES buildworld 32m54.63s real 50m7.62s user 11m6.64s sys 47540 maximum resident set size 2846 average shared memory size 1449 average unshared data size 128 average unshared stack size 20968367 page reclaims 408 page faults 0 swaps 1500 block input operations 2610 block output operations 0 messages sent 0 messages received 25218 signals received 415829 voluntary context switches 484130 involuntary context switches Fri Nov 26 16:09:46 CET 2004 END make -j 2 -DNOGAMES buildworld Fri Nov 26 16:09:46 CET 2004 Start make -j 1 -DNOGAMES buildworld 39m19.52s real 31m57.60s user 8m27.33s sys 47540 maximum resident set size 2724 average shared memory size 1411 average unshared data size 127 average unshared stack size 20969173 page reclaims 408 page faults 0 swaps 1500 block input operations 2620 block output operations 0 messages sent 0 messages received 25283 signals received 411973 voluntary context switches 279205 involuntary context switches Fri Nov 26 16:49:06 CET 2004 END make -j 1 -DNOGAMES buildworld UP Kernel, the same kernel without option SMP ========= Fri Nov 26 17:30:46 CET 2004 Start make -j 3 -DNOGAMES buildworld 38m17.37s real 31m13.04s user 5m47.43s sys 47428 maximum resident set size 2865 average shared memory size 1503 average unshared data size 128 average unshared stack size 20973951 page reclaims 1656 page faults 0 swaps 27380 block input operations 2653 block output operations 0 messages sent 0 messages received 24813 signals received 422752 voluntary context switches 563619 involuntary context switches Fri Nov 26 18:09:04 CET 2004 END make -j 3 -DNOGAMES buildworld Fri Nov 26 18:09:04 CET 2004 Start make -j 2 -DNOGAMES buildworld 38m31.50s real 31m9.44s user 5m43.27s sys 47428 maximum resident set size 2867 average shared memory size 1497 average unshared data size 128 average unshared stack size 20973698 page reclaims 408 page faults 0 swaps 1963 block input operations 2593 block output operations 0 messages sent 0 messages received 25191 signals received 403269 voluntary context switches 582855 involuntary context switches Fri Nov 26 18:47:35 CET 2004 END make -j 2 -DNOGAMES buildworld Fri Nov 26 18:47:35 CET 2004 Start make -j 1 -DNOGAMES buildworld 37m13.98s real 30m50.79s user 5m36.54s sys 47428 maximum resident set size 2869 average shared memory size 1498 average unshared data size 128 average unshared stack size 20974104 page reclaims 408 page faults 0 swaps 1894 block input operations 2546 block output operations 0 messages sent 0 messages received 25283 signals received 412027 voluntary context switches 640783 involuntary context switches Fri Nov 26 19:24:49 CET 2004 END make -j 1 -DNOGAMES buildworld Regards, Frank -- Frank Behrens, Osterwieck, Germany e-mail: <frank@pinky.sax.de> PGP-key 0x5B7C47ED on public servers available.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411270903.iAR93Aao024219>