From owner-freebsd-current@FreeBSD.ORG Sat Apr 12 02:53:57 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 1DD7C1065673 for ; Sat, 12 Apr 2008 02:53:57 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outO.internet-mail-service.net (outo.internet-mail-service.net [216.240.47.238]) by mx1.freebsd.org (Postfix) with ESMTP id 1CB058FC21 for ; Sat, 12 Apr 2008 02:53:57 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Sat, 12 Apr 2008 01:34:53 -0700 Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id F06C42D600E for ; Fri, 11 Apr 2008 19:53:50 -0700 (PDT) Message-ID: <48002444.4030505@elischer.org> Date: Fri, 11 Apr 2008 19:53:56 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 To: FreeBSD Current Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: 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: Sat, 12 Apr 2008 02:53:57 -0000 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