tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kernel stack usage
Hey folks,
triggered by some experiments simonb did on mips I wrote a script to find
the functions using the bigest stack frame in my current sparc64 kernel.
The top 15 list is:
Frame/b Function
4096 pci_conf_print at pci_subr.c:4812
4096 dtv_demux_read at dtv_demux.c:493
3536 SHA3_Selftest at sha3.c:430
3408 genfb_calc_hsize at genfb.c:630
3248 radeonfb_pickres at radeonfb.c:4127
2304 radeonfb_set_cursor at radeonfb.c:3690
2272 gem_pci_attach at if_gem_pci.c:147
2256 twoway_memmem at memmem.c:84
2240 bwfm_rx_event_cb at bwfm.c:2099
2240 compat_60_ptmget_ioctl at tty_60.c:70
2112 db_stack_trace_print at db_trace.c:77
1664 wdcprobe_with_reset at wdc.c:491
1424 nfsrv_rename at nfs_serv.c:1906
1408 OF_mapintr at ofw_machdep.c:728
1344 sysctl_hw_firmware_path at firmload.c:81
1280 fw_bmr at firewire.c:2296
1264 cdioctl at cd.c:1204
1248 cpu_reset_fpustate at cpu.c:400
1248 aubtfwl_attach_hook at aubtfwl.c:273
1248 uvm_swap_stats at uvm_swap.c:726
(left column is size of the frame on sparc64 in bytes)
I think anything > 1k is dubious and should be checked.
Martin
Home |
Main Index |
Thread Index |
Old Index