From owner-freebsd-questions@FreeBSD.ORG Tue May 27 07:51:04 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 E69DF1065676 for ; Tue, 27 May 2008 07:51:04 +0000 (UTC) (envelope-from s.hattori@scs.co.jp) Received: from ff5gw1.as.netxdc.ne.jp (ff5gw1.as.netxdc.ne.jp [61.213.56.225]) by mx1.freebsd.org (Postfix) with ESMTP id 98E788FC22 for ; Tue, 27 May 2008 07:51:04 +0000 (UTC) (envelope-from s.hattori@scs.co.jp) Received: from ff5vw3.as.netxdc.ne.jp (ff5vw3 [10.100.16.18]) by ff5gw1.as.netxdc.ne.jp with ESMTP id m4R578co008076 for ; Tue, 27 May 2008 14:07:08 +0900 (JST) Received: from ff5vw3.as.netxdc.ne.jp (localhost [127.0.0.1]) by ff5vw3.as.netxdc.ne.jp with ESMTP id m4R5775G001954 for ; Tue, 27 May 2008 14:07:07 +0900 (JST) Received: from SHAT ([10.102.0.32]) by ff5vw3.as.netxdc.ne.jp with SMTP id m4R577OP001950 for ; Tue, 27 May 2008 14:07:07 +0900 (JST) Message-ID: <009101c8bfb7$82d72f80$c154140a@colors.scs.co.jp> From: "Hattori, Shigehiro" To: Date: Tue, 27 May 2008 14:07:06 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-2022-jp"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Subject: FreeBSD 7.0-RELEASE: specify maximum number of cores that kernel can recognize X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2008 07:51:05 -0000 Hi, I try to measure Bind caching name server's multi threading performance on FreeBSD 7 , like below. -- # of cores query/second 1 xx 2 xx 4 xx 6 xx 8 xx -- My testing machine has 8 cores. ( quad core * 2 ) I'd like to specify maximum # of cores that kernel can recognize. Can I specify maximum # of cores using with parameter or something ? I've already done Bind multi threading performance test on Linux ( CentOS5 ) In case of CentOS5 , I specified maximum # of cores with grub.conf "maxcpus=1 or 2 or 4 or ..." # cat /etc/grub.conf title CentOS (2.6.18-53.1.21.el5PAE) root (hd0,1) kernel /boot/vmlinuz-2.6.18-53.1.21.el5PAE ro root=LABEL=/ rhgb quiet maxcpus=6 initrd /boot/initrd-2.6.18-53.1.21.el5PAE.img # The following is the results I did on CentOS5 ( kernel: 2.6.18-53.1.21.el5 ). -- Bind 9.4.2 caching name server on CentOS5 # of cores query/second CPU ( named ) 1 3578 99.9 2 5070 196 4 6608 362 6 9042 527 8 10552 678 -- - Bind's machine spec CPU: Intel Xeon E5346 2.3GH ( quad core * 2 ) Memory: 4GB Bind 9.4.2 Cache size: 1400MB Max recursive clients: 50000 - Traffic generetor: Nominum resperf Query list: all queries are uniq ( that means "No answer in the cache" ) Best regards, Shigehiro