From owner-freebsd-stable@FreeBSD.ORG Thu Jan 25 21:07:40 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A403016A406 for ; Thu, 25 Jan 2007 21:07:40 +0000 (UTC) (envelope-from don_oles@able.com.ua) Received: from able.com.ua (able.com.ua [80.91.162.66]) by mx1.freebsd.org (Postfix) with ESMTP id 524C413C467 for ; Thu, 25 Jan 2007 21:07:40 +0000 (UTC) (envelope-from don_oles@able.com.ua) Received: from able.com.ua (localhost [127.0.0.1]) by able.com.ua (Postfix) with ESMTP id AD08744C50 for ; Thu, 25 Jan 2007 22:48:59 +0200 (EET) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=selector1; d=able.com.ua; h=Received:Date:From:X-Mailer:Reply-To:X-Priority:Message-ID:X-Confirm-Reading-To:Disposition-Notification-To:Return-Receipt-To:To:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Rdetqu+a0B7RqX8N2Ovy+QkwUWjcQ1Lp/xxWlzHyHgkEoXdI1sPlHvFaYJejup0DGyq8PO5nWDJisjfgnmr3yt2KC3RwzbAiYDP31/aFSR63s9aGHUWt6blzahRFJBfzRNYRVlgBGdQNtL5Ij+2sJcox6F9gZEgr82yLHfWT82k=; Received: from vanta.oles.net (infering.opposite.volia.net [77.122.163.104]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by able.com.ua (Postfix) with ESMTP id 6282944C4F for ; Thu, 25 Jan 2007 22:48:58 +0200 (EET) Date: Thu, 25 Jan 2007 22:48:56 +0200 From: Oles Hnatkevych X-Mailer: The Bat! (v3.71.01) Professional X-Priority: 3 (Normal) Message-ID: <1638945315.20070125224856@able.com.ua> To: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP at ABLE Subject: second cpu not used on smp platform X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Oles Hnatkevych List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jan 2007 21:07:40 -0000 Hello! Just cvsup-ed and upgraded to 6.2-STABLE. The box has hyperthreading processor: # more /var/run/dmesg.boot |grep -i cpu CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (3000.37-MHz 686-class CPU) Logical CPUs per core: 2 FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu0: on acpi0 cpu1: on acpi0 SMP: AP CPU #1 Launched! and also sysctl shows that it is: kern.threads.virtual_cpu: 2 kern.smp.cpus: 2 hw.ncpu: 2 machdep.hlt_cpus: 2 machdep.logical_cpus_mask: 2 dev.cpu.0.%desc: ACPI CPU dev.cpu.0.%driver: cpu dev.cpu.0.%location: handle=\_PR_.CPU0 dev.cpu.0.%pnpinfo: _HID=none _UID=0 dev.cpu.0.%parent: acpi0 dev.cpu.0.cx_supported: C1/0 dev.cpu.0.cx_lowest: C1 dev.cpu.0.cx_usage: 100.00% dev.cpu.1.%desc: ACPI CPU dev.cpu.1.%driver: cpu dev.cpu.1.%location: handle=\_PR_.CPU1 dev.cpu.1.%pnpinfo: _HID=none _UID=0 dev.cpu.1.%parent: acpi0 dev.cpu.1.cx_supported: C1/0 dev.cpu.1.cx_lowest: C1 dev.cpu.1.cx_usage: 0% When I run several concurrent processes I do not see that the CPU1 is used at all! The 'top' shows this, and the sysctl shows this: dev.cpu.0.cx_usage: 100.00% dev.cpu.1.cx_usage: 0% last pid: 732; load averages: 7.94, 5.19, 2.52 up 0+00:29:42 23:39:43 38 processes: 9 running, 29 sleeping CPU states: 99.3% user, 0.0% nice, 0.7% system, 0.0% interrupt, 0.0% idle Mem: 34M Active, 15M Inact, 40M Wired, 34M Buf, 145M Free Swap: 469M Total, 469M Free PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 691 root 1 112 0 2628K 1984K RUN 0 0:45 12.01% perl5.8.8 693 root 1 112 0 2628K 1984K RUN 0 0:41 11.96% perl5.8.8 696 root 1 112 0 2628K 1984K RUN 0 0:40 11.96% perl5.8.8 698 root 1 112 0 2628K 1984K RUN 0 0:37 11.96% perl5.8.8 690 root 1 112 0 2628K 1984K RUN 0 0:44 11.91% perl5.8.8 694 root 1 112 0 2628K 1984K RUN 0 0:42 11.91% perl5.8.8 697 root 1 112 0 2628K 1984K RUN 0 0:38 11.91% perl5.8.8 723 root 1 112 0 2628K 1984K RUN 0 0:22 11.09% perl5.8.8 What it can be???? -- Oles mailto:don_oles@able.com.ua