Re: how much stack space can I use

Manfred Spraul (manfreds@colorfullife.com)
Sun, 24 Oct 1999 13:05:44 +0200


Keith Owens wrote:
> Anybody looking at stack usage might find this script useful, it can
> also be found in ftp://ftp.ocs.com.au/pub/kernel.stack.gz. It taks a
> while to run, mainly because objdump --disassemble of everything takes
> a while. Some interesting results from 2.2.23 :-
>
> 7c4 ncr53c8xx_detect
> 824 dvd_read_disckey
> 824 dvd_read_manufact
> 914 mmc_ioctl
>
Have you noticed "nfs_sillyrename" in fs/nfs/dir.c?
I think these "const int" variables should be replaced with #defines.
egcs-1.12 generates a dynamic stack allocation, it's totally superfluous
(everything is known at compile time).

--
	Manfred

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/