From owner-freebsd-smp@FreeBSD.ORG Sun May 30 03:55:48 2004 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 916D516A4CF for ; Sun, 30 May 2004 03:55:48 -0700 (PDT) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id E23CF43D5C for ; Sun, 30 May 2004 03:55:47 -0700 (PDT) (envelope-from Shane@007Marketing.com) Received: from [192.168.0.50] (ppp133-140.lns1.adl2.internode.on.net [150.101.133.140])i4UAtik2028326 for ; Sun, 30 May 2004 20:25:46 +0930 (CST) User-Agent: Microsoft-Entourage/10.1.4.030702.0 Date: Sun, 30 May 2004 20:26:14 +0930 From: Shane Ambler To: FreeBSD Mailing Lists Message-ID: In-Reply-To: <20040530100908.GA39456@xor.obsecurity.org> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Subject: Re: SMP kernel for MSI 694D Pro X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 May 2004 10:55:48 -0000 On 30/5/2004 19:39, "Kris Kennaway" wrote: > On Sun, May 30, 2004 at 07:35:30PM +0930, Shane Ambler wrote: >> I am looking for some assistance in building an SMP kernel for an MSI dual >> PIII board, model is 694D Pro. >> >> I have built a new kernel (5.2.1) that boots, but doesn't appear to use both >> procs. >> >> Running top only shows one cpu line in the header - the entry for top >> switches between cpu0 and cpu1 (in the state column) so there is some >> recognition of the 2 procs just not spreading the load. > > So your kernel is in fact using both CPUs. > >> I am importing multiple times into mysql to check load - the best I can do >> is get 45% idle. > > If your application is not multithreaded or is linked to libc_r then > it will only use one CPU at a time. OK I will look at the configure options of mysql server - it is suppose to be multi threaded. I started up 4 simultaneous compiles from ports and got idle to drop down to about 20%. Shouldn't top show an individual line for each cpu load though? last pid: 43405; load averages: 6.19, 5.71, 4.03 up 0+01:04:51 20:19:04 107 processes: 1 running, 98 sleeping, 8 lock CPU states: 45.5% user, 0.0% nice, 17.3% system, 0.0% interrupt, 37.3%idle Mem: 165M Active, 273M Inact, 96M Wired, 2332K Cache, 86M Buf, 209M Free Swap: 1511M Total, 1511M Free PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND 584 mysql 125 0 54336K 29044K *Giant 0 6:09 27.10% 27.10% mysqld 671 root 124 0 27316K 19324K select 1 6:55 26.86% 26.86% kdeinit 1851 root 102 0 3004K 2088K *Giant 0 0:31 5.86% 5.86% mysql 1846 root 4 0 3004K 2088K sbwait 0 0:32 5.27% 5.27% mysql 522 root 76 0 68116K 66852K select 0 31:49 3.47% 3.47% XFree86 630 root 97 0 22792K 15020K select 0 0:43 0.93% 0.93% kdeinit 43385 root 130 0 7264K 6760K *Giant 0 0:00 8.00% 0.39% cc1 -- Shane Ambler Sales Department 007Marketing.com Shane@007Marketing.com