From owner-freebsd-questions@FreeBSD.ORG Mon Jul 14 13:39:12 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E2BD1065673 for ; Mon, 14 Jul 2008 13:39:12 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24]) by mx1.freebsd.org (Postfix) with ESMTP id E5BD38FC13 for ; Mon, 14 Jul 2008 13:39:11 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: by qw-out-2122.google.com with SMTP id 9so104784qwb.7 for ; Mon, 14 Jul 2008 06:39:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=X12GBvJIr7uIKt2bJ81FESGRQs31YEBDSczrJrNCk48=; b=PMavrL+8DIsuLJ0jxCkqEzZOWiCelkTrAksQ9MfIX0x7ks6rtphN+TZ1NNzuRTSW9b Vw4gG8EV5PH8koyjkzX9AlRD+SsJLl0xUAlpT9kh40YHsMXzqacp3D4rjG2NEwvao3JP 4iMyeXElnwtrEPKQCBLojw5LDCgSci2+VNi0E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:references; b=DHmHDbMsxrocOkGClpzjE/i0/vYPNknV1c2V8p+078qeKfngYLbmqe6Kt1SAgHPhrZ tWDObaum+v+zsfSQtygxImjPtaFJjPVGYZGhMjtBJjoaccZaoHoBDqNJfj0LxbrxY6UN f6LZ7R5uEGHPvsNOhk2SaKyvdY5YCYLu+ljnw= Received: by 10.150.186.12 with SMTP id j12mr20281310ybf.187.1216042749456; Mon, 14 Jul 2008 06:39:09 -0700 (PDT) Received: by 10.150.140.14 with HTTP; Mon, 14 Jul 2008 06:39:09 -0700 (PDT) Message-ID: <8cb6106e0807140639t19b7a259s6a23443439036efa@mail.gmail.com> Date: Mon, 14 Jul 2008 09:39:09 -0400 From: "Josh Carroll" To: "tethys ocean" In-Reply-To: <235b80000807140547t9007b13of23a1db09085cb71@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <235b80000807140357m351f801bw254aab35367682bb@mail.gmail.com> <235b80000807140547t9007b13of23a1db09085cb71@mail.gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Core(TM)2 Quad and TOP output X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: josh.carroll@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2008 13:39:12 -0000 > I have new server(webserver) quad core but performans is not well (according > our old webserver pent IV ). Maybe its performans depends on our web page > sourcecode. FreeBSD 6.3 stable is running on it. dmesg is in below. Can you provide some more detail here? How is it slower? Serving less clients? The load (from your top snapshot) is nearly 0 and there isn't much of a memory load on the box either. > 1-I wonder in my TOP output can I see all CPU or not? > > > last pid: 19887; load averages: 0.13, 0.04, 0.01 up 2+21:18:18 > 16:53:16 > 48 processes: 1 running, 47 sleeping > CPU: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle > Mem: 119M Active, 352M Inact, 126M Wired, 48K Cache, 112M Buf, 1401M Free > Swap: 5120M Total, 5120M Free Run top with the -S option, and you will see the "idle" process for each core/CPU. The CPU: line there is an aggregate of all processors in the system. If you're in doubt: sysctl hw.ncpu Or run: mptable > 2-FreeBSD 7.0 has got default multiprocessor generic kernel??? since during > installations only one generic kernel shown Yes, 7.0 includes SMP by default in GENERIC. > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > cpu2 (AP): APIC ID: 2 > cpu3 (AP): APIC ID: 3 There you go, it's seeing all 4 cores. The system is seeing all of them, so your real question is likely - why is this not performing as well as my old box? We need more details to answer that. Regards, Josh