Date: Mon, 4 Oct 2010 19:23:00 +0100 From: Rui Paulo <rpaulo@FreeBSD.org> To: Kevin Mai <kma@mrecic.gov.ar> Cc: freebsd-current@freebsd.org Subject: Re: Multithread Make in multicore server Message-ID: <47E32F6D-498C-4706-8AD6-355F9BD7887C@FreeBSD.org> In-Reply-To: <7459633.69735.1286214361816.JavaMail.root@mrelmx10.mrec.ar> References: <7459633.69735.1286214361816.JavaMail.root@mrelmx10.mrec.ar>
next in thread | previous in thread | raw e-mail | index | archive | help
On 4 Oct 2010, at 18:46, Kevin Mai wrote: > I'm trying to do a "make buildworld" to build some jails on a Dell = R710 server.=20 >=20 > It has 16 cores:=20 >=20 > [root@mrefns09 ~]# sysctl hw.ncpu=20 > hw.ncpu: 16=20 >=20 > but, when doing running the "make buildworld" command:=20 >=20 > last pid: 77993; load averages: 1.07, 1.03, 0.95 up 38+01:12:10 = 17:42:09=20 > 87 processes: 2 running, 85 sleeping=20 > CPU 0: 1.9% user, 0.0% nice, 2.6% system, 0.0% interrupt, 95.5% idle=20= > CPU 1: 0.0% user, 0.0% nice, 0.4% system, 0.0% interrupt, 99.6% idle=20= > CPU 2: 1.9% user, 0.0% nice, 2.3% system, 0.0% interrupt, 95.9% idle=20= > CPU 3: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle=20 > CPU 4: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle=20 > CPU 5: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle=20 > CPU 6: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle=20 > CPU 7: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle=20 > CPU 8: 90.6% user, 0.0% nice, 5.6% system, 0.0% interrupt, 3.8% idle=20= > CPU 9: 0.4% user, 0.0% nice, 0.4% system, 0.0% interrupt, 99.3% idle=20= > CPU 10: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle=20= > CPU 11: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle=20= > CPU 12: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle=20= > CPU 13: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle=20= > CPU 14: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle=20= > CPU 15: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle=20= > Mem: 159M Active, 6514M Inact, 782M Wired, 126M Cache, 827M Buf, 324M = Free=20 > Swap: 8192M Total, 44K Used, 8192M Free=20 >=20 > I see that there's no multithreading when running make.. is there a = way to enable multiprocessing when running make?=20 Try 'make -j16 buildworld'. 16 is the maximum number of parallels = processes that make is going to run. Regards, -- Rui Paulo
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47E32F6D-498C-4706-8AD6-355F9BD7887C>