Re: stack hogs in kernel

From: Randall Stewart <rrs_at_cisco.com>
Date: Wed, 16 Apr 2008 09:24:10 -0400
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_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
> 


-- 
Randall Stewart
NSSTG - Cisco Systems Inc.
803-345-0369 <or> 803-317-4952 (cell)
Received on Wed Apr 16 2008 - 11:51:43 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:29 UTC