From owner-freebsd-hackers@FreeBSD.ORG Fri May 4 18:00:10 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 570E21065675 for ; Fri, 4 May 2012 18:00:10 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0C5CF8FC14 for ; Fri, 4 May 2012 18:00:10 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so4551408pbb.13 for ; Fri, 04 May 2012 11:00:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=oir8zHSP5dcJzXOummpsWYI2lFywHFejMbH1yjpb06E=; b=nES6JfTJ9XgZl9XCNo5+vAP6WsoYewCaB1QYLaofSIBmq1h+um0s8AxjsRe+SSNB/M tIbU/sMwYueWazub/TDp6mschjf2zgt5cqZABNjFdal2ZOPpTRKpJAa65ZAPp7DfXvHK +1uI79ztaSn9NFoUrkr16OpigacoscQt3ppBrTyJ6qKifAPGJPL7AOeUM4nrCNnKMCPw 7efcRJFkZGcwwSlI15m6SnS9Ij5C5yiFh6/ocb643Libs72As5aIys3DRt/4eqQe4H6q nhTwo7NMdcVrdaLC1rTVTtyVelm1gJR+F7ponGk6qa7VHSweGz+HVAwQ4AXvLpyhjkJb VLKg== Received: by 10.68.228.130 with SMTP id si2mr37299pbc.73.1336154408976; Fri, 04 May 2012 11:00:08 -0700 (PDT) Received: from [10.192.166.0] (stargate.chelsio.com. [67.207.112.58]) by mx.google.com with ESMTPS id q1sm9240996pbp.62.2012.05.04.11.00.07 (version=SSLv3 cipher=OTHER); Fri, 04 May 2012 11:00:07 -0700 (PDT) Sender: Navdeep Parhar Message-ID: <4FA41926.8090904@FreeBSD.org> Date: Fri, 04 May 2012 11:00:06 -0700 From: Navdeep Parhar User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120502 Thunderbird/12.0.1 MIME-Version: 1.0 To: Wojciech Puchar References: <4FA1A421.6020601@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: CPU selection for ithreads on 8.3 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2012 18:00:10 -0000 On 05/04/12 10:05, Wojciech Puchar wrote: >> cxgbc0} >> 12 root -68 - 0K 816K WAIT 7 0:31 0.00% intr{irq280: cxgbc0} >> >> Back in the day there used to be code in cxgb to bind different >> interrupts to different CPUs but it was removed because the kernel >> distributed them across CPUs anyway. So what changed? This appears 8.3 >> specific. I don't see it on head and I don't have a 9 system readily > > maybe stupid question but isn't it better to execute same fragment of > code repetitively on same CPU core and don't mess with cache trashing? > > Of course as long as one core can cope with it. That, and cache trashing is not that big an issue if the threads are working on their own sets of data. This is precisely the problem that network stack parallelization tries to solve. Navdeep