From owner-freebsd-current@FreeBSD.ORG Thu Apr 12 13:10:14 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0B52916A401 for ; Thu, 12 Apr 2007 13:10:14 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-iport-5.cisco.com (sj-iport-5.cisco.com [171.68.10.87]) by mx1.freebsd.org (Postfix) with ESMTP id D69C413C44C for ; Thu, 12 Apr 2007 13:10:13 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-dkim-5.cisco.com ([171.68.10.79]) by sj-iport-5.cisco.com with ESMTP; 12 Apr 2007 06:10:14 -0700 X-IronPort-AV: i="4.14,402,1170662400"; d="scan'208"; a="410731284:sNHT48072576" Received: from sj-core-3.cisco.com (sj-core-3.cisco.com [171.68.223.137]) by sj-dkim-5.cisco.com (8.12.11/8.12.11) with ESMTP id l3CDADat010390; Thu, 12 Apr 2007 06:10:13 -0700 Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com [128.107.191.63]) by sj-core-3.cisco.com (8.12.10/8.12.6) with ESMTP id l3CDA8AA027698; Thu, 12 Apr 2007 13:10:13 GMT Received: from xfe-sjc-212.amer.cisco.com ([171.70.151.187]) by xbh-sjc-221.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 12 Apr 2007 06:10:11 -0700 Received: from [127.0.0.1] ([171.68.225.134]) by xfe-sjc-212.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 12 Apr 2007 06:10:10 -0700 Message-ID: <461E3057.6000307@cisco.com> Date: Thu, 12 Apr 2007 09:12:55 -0400 From: Randall Stewart User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061029 FreeBSD/i386 SeaMonkey/1.0.6 MIME-Version: 1.0 To: Ivan Voras References: <461E0078.3050001@cisco.com> <20070412114344.G64803@fledge.watson.org> <461E1D4E.3090806@cisco.com> <461E2C07.5000503@cisco.com> <86slb5ycmd.fsf@dwp.des.no> <461E2E5D.1090409@fer.hr> In-Reply-To: <461E2E5D.1090409@fer.hr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 12 Apr 2007 13:10:10.0770 (UTC) FILETIME=[E66E2320:01C77D03] DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=1294; t=1176383413; x=1177247413; c=relaxed/simple; s=sjdkim5002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=rrs@cisco.com; z=From:=20Randall=20Stewart=20 |Subject:=20Re=3A=20CPU=20utilization |Sender:=20; bh=/hxeN5fLPt2A9oswY7lGYvVhALmqnzeOyWWjGWoaV84=; b=rqcvbZj2vWOVM8vCbcYCWSg8bgkBE+/fKXbPOUIt621b4xbfgOwrpCbP1ID24cWokIKl/drR b6sSvzrCcL+0WCc5vQpJclD7Vu6LZlw87/UlE9SmYZ50xesolp11feWU; Authentication-Results: sj-dkim-5; header.From=rrs@cisco.com; dkim=pass (sig from cisco.com/sjdkim5002 verified; ); Cc: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= , freebsd-current@freebsd.org Subject: Re: CPU utilization X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Apr 2007 13:10:14 -0000 Ivan Voras wrote: > Dag-Erling Smørgrav wrote: >> Randall Stewart writes: >>> Sure.. dumb question though.. whats the magic cookie to pin >>> something on a cpu.. is it a system call or is there a "shell" tool >>> that will do it? >> >> Neither. There is a kernel function to tie a thread to a CPU, but it >> is not exported to userland. > > I was thinking about the kernel part, but now, thinking more, it's > probably very non-trivial to do. I though that using sched_bind() could > do it, but this only works if there's a specific thread created for some > task - I don't know how can something like 'a network stack', which > consists of myriad of callbacks and asynchrounsly called functions, be > pinned. Sorry for the noise. :) > > Not noise .. Anything that gives a suggestion on how to tweak things is good.. and I learn more :-D I am going to try LOCK_PROFILING next.. on the most drastic set of differences.. and see what I see.. I have always not liked the sender locks I have in place.. the reader side worked out real cool.. but the sender did not :-( May need to re-think these... or I might find some other surprise ;-D R -- Randall Stewart NSSTG - Cisco Systems Inc. 803-345-0369 803-317-4952 (cell)