From owner-freebsd-smp@FreeBSD.ORG Mon Nov 10 09:06:07 2008 Return-Path: Delivered-To: smp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 339321065670 for ; Mon, 10 Nov 2008 09:06:07 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.176]) by mx1.freebsd.org (Postfix) with ESMTP id 06DA18FC1A for ; Mon, 10 Nov 2008 09:06:06 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: by wa-out-1112.google.com with SMTP id m34so1218864wag.27 for ; Mon, 10 Nov 2008 01:06:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=dRkRxtUxzM5nY5VndKdaz7E9CkdvKvjwSoRtWmOdHH0=; b=X4cpQ/NW1UuuaqXIxlC4VC26LcLtEvjzhTYUJiMNJxDNCCcsefTN9E1belc97Sn1fr craJWTJH+vJDKoZUkUaW9+T986uTuDFix7pYdcZThdlgoKgt1XAxF5ULTTrRr+pZQ5bt k9wemS8DMvwmn3rGvs+qyFcDAoFs8OA2WNTjU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=cki9aLtrOUr6XEE/bR2Qij8usDhQ8rhIZDII/ky5ay98R9tG1iICDBZUce43tfuFrf /jCLrMOff2B0u++tRPSAnFT8MvrOQp8ALUzO5WG6RVPEldtXiEv23Gxy6tRKTW5LQM+2 +Ygz146EkkvGfWlc84O/zNg+dE9Mt0yeJE8pE= Received: by 10.114.94.12 with SMTP id r12mr4016013wab.156.1226306003553; Mon, 10 Nov 2008 00:33:23 -0800 (PST) Received: by 10.115.76.12 with HTTP; Mon, 10 Nov 2008 00:33:23 -0800 (PST) Message-ID: <42e3d810811100033w172e90dbl209ecbab640cc24f@mail.gmail.com> Date: Mon, 10 Nov 2008 16:33:23 +0800 From: "Archimedes Gaviola" To: smp@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Mailman-Approved-At: Mon, 10 Nov 2008 12:26:41 +0000 Cc: Subject: CPU affinity with ULE scheduler X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Nov 2008 09:06:07 -0000 To Whom It May Concerned: Can someone explain or share about ULE scheduler (latest version 2 if I'm not mistaken) dealing with CPU affinity? Is there any existing benchmarks on this with FreeBSD? Because I am currently using 4BSD scheduler and as what I have observed especially on processing high network load traffic on multiple CPU cores, only one CPU were being stressed with network interrupt while the rests are mostly in idle state. This is an AMD-64 (4x) dual-core IBM system with GigE Broadcom network interface cards (bce0 and bce1). Below is the snapshot of the case. PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 17 root 1 171 52 0K 16K RUN 0 96:04 97.71% idle: cpu0 15 root 1 171 52 0K 16K RUN 2 98:41 97.07% idle: cpu2 14 root 1 171 52 0K 16K RUN 3 103:56 95.90% idle: cpu3 13 root 1 171 52 0K 16K RUN 4 104:17 88.23% idle: cpu4 12 root 1 171 52 0K 16K RUN 5 97:59 86.57% idle: cpu5 10 root 1 171 52 0K 16K RUN 7 81:51 82.08% idle: cpu7 11 root 1 171 52 0K 16K RUN 6 95:28 81.35% idle: cpu6 16 root 1 171 52 0K 16K RUN 1 102:15 77.78% idle: cpu1 36 root 1 -68 -187 0K 16K WAIT 7 19:37 4.59% irq23: bce0 bce1 18 root 1 -32 -151 0K 16K CPU0 0 2:13 0.00% swi4: clock sio 4488 root 1 96 0 30728K 4292K select 3 1:51 0.00% sshd 43 root 1 171 52 0K 16K pgzero 3 1:08 0.00% pagezero 218 root 1 96 0 3852K 1380K select 3 0:38 0.00% syslogd 20 root 1 -44 -163 0K 16K WAIT 7 0:32 0.00% swi1: net Thanks, Archimedes