From owner-freebsd-current@FreeBSD.ORG Wed Apr 16 13:51:43 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D9291065673 for ; Wed, 16 Apr 2008 13:51:43 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-iport-2.cisco.com (sj-iport-2.cisco.com [171.71.176.71]) by mx1.freebsd.org (Postfix) with ESMTP id 9B2DA8FC21 for ; Wed, 16 Apr 2008 13:51:42 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-dkim-4.cisco.com ([171.71.179.196]) by sj-iport-2.cisco.com with ESMTP; 16 Apr 2008 06:24:14 -0700 Received: from sj-core-5.cisco.com (sj-core-5.cisco.com [171.71.177.238]) by sj-dkim-4.cisco.com (8.12.11/8.12.11) with ESMTP id m3GDOE2b017510; Wed, 16 Apr 2008 06:24:14 -0700 Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com [171.70.151.144]) by sj-core-5.cisco.com (8.13.8/8.13.8) with ESMTP id m3GDOBKP026736; Wed, 16 Apr 2008 13:24:11 GMT Received: from xfe-sjc-212.amer.cisco.com ([171.70.151.187]) by xbh-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 16 Apr 2008 06:24:11 -0700 Received: from rrs.local ([171.68.225.134]) by xfe-sjc-212.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 16 Apr 2008 06:24:10 -0700 Message-ID: <4805FDFA.2050801@cisco.com> Date: Wed, 16 Apr 2008 09:24:10 -0400 From: Randall Stewart User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.12) Gecko/20080201 SeaMonkey/1.1.8 MIME-Version: 1.0 To: Julian Elischer References: <48002444.4030505@elischer.org> In-Reply-To: <48002444.4030505@elischer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 16 Apr 2008 13:24:11.0061 (UTC) FILETIME=[281FDE50:01C89FC5] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; l=2060; t=1208352254; x=1209216254; c=relaxed/simple; s=sjdkim4002; 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=20stack=20hogs=20in=20kernel |Sender:=20; bh=l4pe+TZycdbaI+iPDtZryvoVQyxpNic61khqJAMLHYc=; b=I9ZAT/L2syse1u/0slDFa46zAn4Yeia3LlRzIk41mGl0IKc2ZT3NmghPYP FYhPdtkVrJwDLsroWDLSMrcUvpUMCE6qK3gXFfsawG90roOCeJeV1uZaeDK0 mu3oFxdR0W; Authentication-Results: sj-dkim-4; header.From=rrs@cisco.com; dkim=pass ( sig from cisco.com/sjdkim4002 verified; ); Cc: FreeBSD Current Subject: Re: stack hogs in kernel 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: Wed, 16 Apr 2008 13:51:43 -0000 Julian: Do something with SCTP and you will find it even worse... I probably should fix this by creating per cpu memory blocks that can be used for parsing TLV's, right now its done on the stack, and moving to gcc4.x with its desire to inline all functions only made it worse :-( R Julian Elischer wrote: > > A few years ago I took a profile of stack hogs in the kernel. > I just redid the exercise... > > http://people.freebsd.org/~julian/stack-hogs.txt > > > the worst offenders in MY (2 month old) kernel are: > > 0xc05667e3 kldstat [kernel]: 2100 > 0xc07214f8 sendsig [kernel]: 1416 > 0xc04fb426 ugenread [kernel]: 1200 > 0xc070616b ipmi_smbios_identify [kernel]: 1136 > 0xc050bd26 usbd_new_device [kernel]: 1128 > 0xc0525a83 pfs_readlink [kernel]: 1092 > 0xc04fb407 ugenwrite [kernel]: 1056 > 0xc055ea33 prison_enforce_statfs [kernel]: 1044 > 0xc0686e8a nfsrv_rename [kernel]: 984 > 0xc05d0886 m_copymdata [kernel]: 956 > 0xc06605a3 nfs4_mount [kernel]: 884 > 0xc0561e25 kse_switchin [kernel]: 848 > 0xc0680ac6 nfsrv_statfs [kernel]: 828 > 0xc0439473 cam_periph_error [kernel]: 820 > 0xc071ff36 sigreturn [kernel]: 812 > 0xc067e876 nfsrv_fsinfo [kernel]: 804 > 0xc05fe7b3 freebsd4_fhstatfs [kernel]: 804 > 0xc0571272 sysctl_out_proc [kernel]: 804 > 0xc067ebf7 nfsrv_fsinfo [kernel]: 804 > 0xc0571006 sysctl_out_proc [kernel]: 804 > 0xc044b743 cddone [kernel]: 800 > 0xc06862cf nfsrv_link [kernel]: 796 > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > -- Randall Stewart NSSTG - Cisco Systems Inc. 803-345-0369 803-317-4952 (cell)