From owner-freebsd-questions@FreeBSD.ORG Thu Dec 25 19:46:24 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A01F16A4CE for ; Thu, 25 Dec 2003 19:46:24 -0800 (PST) Received: from lakemtao06.cox.net (lakemtao06.cox.net [68.1.17.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6CB3543D2F for ; Thu, 25 Dec 2003 19:46:22 -0800 (PST) (envelope-from micheal@tsgincorporated.com) Received: from dredster ([68.12.79.37]) by lakemtao06.cox.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20031226034620.TMQR24575.lakemtao06.cox.net@dredster>; Thu, 25 Dec 2003 22:46:20 -0500 Message-ID: From: "Micheal Patterson" To: "horio shoichi" , "Vahric MUHTARYAN" References: <200312251715.hBPHF7kv001872@smtp.doruk.net.tr> <20031226.013215.cf9e49ad88b0e190.10.0.3.9@bugsgrief.net> Date: Thu, 25 Dec 2003 21:46:24 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-2022-JP" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 cc: fbsd_user@a1poweruser.com cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 4.9 Can't find second CPU ... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Dec 2003 03:46:24 -0000 ----- Original Message ----- From: "horio shoichi" To: "Vahric MUHTARYAN" Cc: ; Sent: Thursday, December 25, 2003 7:32 PM Subject: Re: FreeBSD 4.9 Can't find second CPU ... > On Thu, 25 Dec 2003 18:54:26 +0200 > "Vahric MUHTARYAN" wrote: > > Hi , > > > > I checked LINT it said that I have to disabke I386 AND I486 from > > kernel .. I marked those values from GENERIC and LINT too and recompile it . > > > > But I can't see any changes .... > > > > Then I checked my messages file .... > > > > > > Dec 25 20:30:33 freebsdcgp /kernel: FreeBSD/SMP: Multiprocessor motherboard: > > 2 CPUs > > Dec 25 20:30:33 freebsdcgp /kernel: cpu0 (BSP): apic id: 3, version: > > 0x00040011, at 0xfee00000 > > Dec 25 20:30:33 freebsdcgp /kernel: cpu1 (AP): apic id: 0, version: > > 0x00040011, at 0xfee00000 > > Dec 25 20:30:33 freebsdcgp /kernel: io0 (APIC): apic id: 4, version: > > 0x000f0011, at 0xfec00000 > > Dec 25 20:30:33 freebsdcgp /kernel: io1 (APIC): apic id: 5, version: > > 0x000f0011, at 0xfec01000 > > > > Dec 25 20:30:33 freebsdcgp /kernel: SMP: AP CPU #1 Launched! > > > > And this is my sysctl out .... > > > > freebsdcgp# sysctl hw.ncpu > > hw.ncpu: 2 > > > > > > But when I run top utulity there is only one CPU there .. > > > > Now I will try cvsup RELENG_4 ... Maybe I can handle it ... > > Does anybody have advise ?! > > > > Vahri__... > > Top on a Dual CPU system looks like this: last pid: 97678; load averages: 0.00, 0.07, 0.06 up 13+13:04:44 21:40:15 62 processes: 1 running, 61 sleeping CPU states: 0.2% user, 0.0% nice, 0.4% system, 0.4% interrupt, 99.0% idle Mem: 126M Active, 528M Inact, 138M Wired, 46M Cache, 112M Buf, 165M Free Swap: 2048M Total, 140K Used, 2048M Free PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND 2594 mailman 2 0 7032K 5680K poll 1 3:20 0.00% 0.00% python 2590 mailman 2 0 7044K 5684K poll 0 3:13 0.00% 0.00% python There will be a 0 or 1 in the C column. That indicates the CPU the process is on. The "CPU states" is a combination of both cpu's if I recall correctly. Also, if you watch your STATE column while running Top, you can see after some time that Top is handed back and forth between the CPU's. In the above list, I have one mailman process running on cpu0 and one on cpu1. -- Micheal Patterson Network Administration TSG Incorporated 405-917-0600