From owner-freebsd-questions@FreeBSD.ORG Wed Dec 14 02:00:21 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 09E9A16A41F for ; Wed, 14 Dec 2005 02:00:21 +0000 (GMT) (envelope-from lists@webtent.net) Received: from columbus.webtent.org (static-70-110-70-42.tampfl.fios.verizon.net [70.110.70.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F08B43D49 for ; Wed, 14 Dec 2005 02:00:18 +0000 (GMT) (envelope-from lists@webtent.net) Received: from localhost (localhost [127.0.0.1]) by columbus.webtent.org (Postfix) with ESMTP id 5DDFACFAB5; Tue, 13 Dec 2005 21:00:14 -0500 (EST) From: Robert Fitzpatrick To: Kris Kennaway In-Reply-To: <20051213195454.GA59033@xor.obsecurity.org> References: <1134501177.13444.56.camel@columbus.webtent.org> <20051213195454.GA59033@xor.obsecurity.org> Content-Type: text/plain Date: Tue, 13 Dec 2005 21:00:13 -0500 Message-Id: <1134525613.13444.89.camel@columbus.webtent.org> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Subject: Re: Multiple CPUs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: robert@webtent.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2005 02:00:21 -0000 On Tue, 2005-12-13 at 14:54 -0500, Kris Kennaway wrote: > On Tue, Dec 13, 2005 at 02:12:57PM -0500, Robert Fitzpatrick wrote: > > I guess this means my new server is only using one of my CPUs? > > > > esmtp# grep CPU /var/log/dmesg.today > > CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2399.33-MHz 686-class CPU) > > Hyperthreading: 2 logical CPUs > > cpu0: on acpi0 > > > > Can someone point me to the best doc for enabling use of both CPUs on > > the FreeBSD 5.4 server? I assume the kernel needs built with options. > > FYI, hyperthreading is not a real CPU, and it seems to *really* hurt > performance on most workloads. You'll probably benefit from not using > it. Yeah, I got the SMP option built into the kernel and still with less than 700 messages in the queue, very little else going on beside Postfix with amavis content filtering, my CPU idle is 0% most the time. This is on my freshly built FreeBSD 5.4 with dual Xeon 2.4 processors and a GB RAM. You think that could be related to HT? I will have to make a visit to the data center to remove in BIOS. Here's my top procs: last pid: 2079; load averages: 8.31, 8.91, 8.43 up 0 +00:35:15 20:57:53 149 processes: 13 running, 136 sleeping CPU states: 54.2% user, 0.0% nice, 21.8% system, 8.3% interrupt, 15.8% idle Mem: 747M Active, 85M Inact, 146M Wired, 17M Cache, 111M Buf, 1656K Free Swap: 2021M Total, 213M Used, 1808M Free, 10% Inuse, 636K In, 1496K Out PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND 1727 postfix 129 0 7884K 4016K RUN 2 1:14 64.06% 64.06% cleanup 1620 postfix 128 0 7884K 3684K RUN 3 0:52 42.48% 42.48% cleanup 2031 vscan 116 0 227M 125M RUN 0 0:44 31.25% 31.20% perl5.8.6 1892 vscan 116 0 230M 2884K RUN 0 1:44 629.00% 30.71% perl5.8.6 1726 postfix 111 0 7884K 4020K RUN 0 0:57 18.55% 18.55% cleanup 2035 vscan -8 0 228M 123M piperd 0 0:36 17.57% 17.53% perl5.8.6 2042 vscan 111 0 227M 122M RUN 2 0:26 16.86% 16.75% perl5.8.6 1889 vscan -8 0 238M 130M piperd 2 1:41 15.58% 15.58% perl5.8.6 1898 vscan 119 0 229M 125M RUN 0 1:38 13.48% 13.48% perl5.8.6 2018 vscan 105 0 226M 121M RUN 0 0:36 11.43% 11.43% perl5.8.6 2016 vscan 105 0 226M 122M RUN 0 0:35 10.75% 10.74% perl5.8.6 1646 vscan 103 0 232M 129M CPU1 0 3:45 9.42% 9.42% perl5.8.6 1894 vscan 107 0 227M 124M CPU3 0 1:37 7.03% 7.03% perl5.8.6 1659 postfix 4 0 7884K 8K select 0 1:02 0.00% 6.35% cleanup 1724 postfix -20 0 7884K 3908K swread 0 0:47 1.37% 1.37% cleanup 2075 postfix 96 0 7876K 5764K select 0 0:00 1.27% 0.93% cleanup 2077 vscan -16 0 2084K 1024K vmpfw 0 0:00 0.62% 0.34% file 2078 vscan -16 0 2084K 1048K spread 0 0:00 3.00% 0.15% file 565 vscan 20 0 15432K 11336K kserel 0 0:19 1.00% 0.05% clamd 2013 root 4 0 9220K 1772K select 0 0:00 0.05% 0.05% smtpd 488 vscan 4 0 224M 8K select 0 0:31 0.00% 0.00% perl5.8.6 661 root 96 0 3828K 816K select 0 0:04 0.00% 0.00% master 613 mysql 20 0 57308K 2236K kserel 0 0:02 0.00% 0.00% mysqld 1619 postfix 96 0 4348K 932K select 0 0:02 0.00% 0.00% trivial-rewrite 333 root 96 0 1324K 240K select 0 0:02 0.00% 0.00% syslogd 745 root 4 0 7272K 948K select 0 0:01 0.00% 0.00% perl 1599 postfix 4 0 5072K 8K select 0 0:01 0.00% 0.00% qmgr 1882 root 96 0 2596K 1136K CPU0 0 0:01 0.00% 0.00% top 558 root 4 0 26004K 836K select 0 0:01 0.00% 0.00% httpd 722 ldap 20 0 29132K 48K kserel 1 0:01 0.00% 0.00% slapd 1751 root 4 0 9288K 8K select 0 0:01 0.00% 0.00% smtpd 1716 root 20 0 9288K 896K lockf 0 0:01 0.00% 0.00% smtpd 2039 postfix 4 0 4180K 8K select 0 0:01 0.00% 0.00% flush 897 admin 4 0 6144K 348K select 0 0:01 0.00% 0.00% sshd 1747 root 4 0 9276K 8K select 0 0:00 0.00% 0.00% smtpd 1612 root 4 0 9264K 1588K select 0 0:00 0.00% 0.00% smtpd 1717 root 4 0 9396K 1268K kqread 0 0:00 0.00% 0.00% smtpd 1737 root 96 0 9272K 1732K select 0 0:00 0.00% 0.00% smtpd 1715 root 4 0 9252K 1852K select 0 0:00 0.00% 0.00% smtpd 442 root 4 0 1244K 8K select 0 0:00 0.00% 0.00% usbd -- Robert