From owner-freebsd-questions@FreeBSD.ORG Fri Jul 22 07:13:37 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 4328B16A41F for ; Fri, 22 Jul 2005 07:13:37 +0000 (GMT) (envelope-from lei.sun@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id A40A643DCA for ; Fri, 22 Jul 2005 07:12:31 +0000 (GMT) (envelope-from lei.sun@gmail.com) Received: by wproxy.gmail.com with SMTP id 55so277591wri for ; Fri, 22 Jul 2005 00:12:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=e4v21RrUlGOjgIDUBdMT07DU9EZM0WbRD9w1W5CVkVmx5OhAtpXnMWXaLnwGWa2aV+1N7yzvWCU3xN7onTHnrUWWm+7Txphhxa/D7TSgF2fb8xC5sbDvkvwqlsQ+knrhB9dDREuhyrV4rXbvMQIzC1ig+dGYAuROPimNk1OwZ/4= Received: by 10.54.11.70 with SMTP id 70mr984796wrk; Fri, 22 Jul 2005 00:12:03 -0700 (PDT) Received: by 10.54.6.35 with HTTP; Fri, 22 Jul 2005 00:12:03 -0700 (PDT) Message-ID: Date: Fri, 22 Jul 2005 00:12:03 -0700 From: Lei Sun To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: only see cpu0 working after rebuilding kernel with SMP support X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Lei Sun List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2005 07:13:37 -0000 Hi, I wanted to enable the second logical CPU on my P4 HT. and... Something seems to be strange to me as: All of the processes are running with CPU0 and none is working with CPU1 ---------------------------------------------------------------------------= ------------------------------ last pid: 479; load averages: 0.00, 0.02, 0.03 =20 up 0+00:10:34 00:05:10 21 processes: 1 running, 20 sleeping CPU states: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% id= le Mem: 6072K Active, 4748K Inact, 18M Wired, 8000K Buf, 1975M Free Swap: 4071M Total, 4071M Free PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND 437 ls 96 0 6116K 2944K select 0 0:00 0.00% 0.00% sshd 440 root 8 0 3128K 1996K wait 0 0:00 0.00% 0.00% bash 426 root 5 -4 1616K 1212K ttyin 0 0:00 0.00% 0.00% login 434 root 4 0 6136K 2884K sbwait 0 0:00 0.00% 0.00% sshd 438 ls 8 0 3088K 1852K wait 0 0:00 0.00% 0.00% bash 439 ls 8 0 1608K 1284K wait 0 0:00 0.00% 0.00% su 259 root 96 0 1324K 892K select 0 0:00 0.00% 0.00% syslogd 376 root 96 0 3476K 2668K select 0 0:00 0.00% 0.00% sendmai= l 479 root 96 0 2304K 1572K CPU0 0 0:00 0.00% 0.00% top 392 root 8 0 1364K 1052K nanslp 0 0:00 0.00% 0.00% cron 433 root 5 0 1288K 952K ttyin 0 0:00 0.00% 0.00% getty 432 root 5 0 1288K 952K ttyin 0 0:00 0.00% 0.00% getty 430 root 5 0 1288K 952K ttyin 0 0:00 0.00% 0.00% getty 428 root 5 0 1288K 952K ttyin 0 0:00 0.00% 0.00% getty 431 root 5 0 1288K 952K ttyin 0 0:00 0.00% 0.00% getty 429 root 5 0 1288K 952K ttyin 0 0:00 0.00% 0.00% getty 427 root 5 0 1288K 952K ttyin 0 0:00 0.00% 0.00% getty 370 root 96 0 3384K 2476K select 0 0:00 0.00% 0.00% sshd 380 smmsp 20 0 3356K 2696K pause 0 0:00 0.00% 0.00% sendmai= l 181 root 20 0 1192K 648K pause 0 0:00 0.00% 0.00% adjkern= tz 241 root 114 0 516K 356K select 0 0:00 0.00% 0.00% devd ---------------------------------------------------------------------------= ------------------------------ Here is the steps and places I read and followed 1. I followed the custom kernel documents from http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-buil= ding.html http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-conf= ig.html http://www.freebsddiary.org/smp.php and compiled the custom kernel and my kernel config: ------------------------------------------------- ... options SMP device apic # I/O APIC ... ------------------------------------------------- 2. Then I compiled the custom kernel, and installed it 3. I check the startup output, and found SMP: AP CPU #1 Launched! So my question is, how come in top, only cpu0 is working, and no entry for = cpu1? Thanks in advance:) Lei