From: eLinux.org

Size Tunables

This page has a list of items that can be configured for the Linux
kernel, which may affect the size (RAM/ROM/static/dynamic) of the
kernel.

Options from Linux-tiny












































































































































CONFIG optiondescriptiondefault valuevalue for small sizeSize change (ARM)Notes
CONFIG_CORE_SMALLtune some kernel data sizesNY ??.
CONFIG_NET_SMALLtune some net-related data sizesNY ??.
CONFIG_PRINTKallow disable of printk code and message dataYN ??.
CONFIG_BUGallow elimination of BUG (and BUG_ON??) codeYN ??.
CONFIG_ELF_COREallow disabling of ELF core dumpsYN ??.
CONFIG_PROC_KCOREallow disabling of /proc/kcoreYN ??.
CONFIG_AIOallow disabling of async IO syscallsYN ??.
CONFIG_XATTRallow disabling of xattr syscallsYN ??.
CONFIG_FILE_LOCKINGallow disabling of file locking syscallsYN ??.
CONFIG_DIRECTIOallow disabling of direct IO supportYN ??.
CONFIG_MAX_SWAPFILES_SHIFTnumber of swapfiles50 ??.
CONFIG_NR_LDISCSnumber of tty line disciplines162? ??.
CONFIG_MAX_USER_RT_PRIOnumber of RT priority levels (schedule slots)1005? ??.
Other config optionsThese are not in Linux-tiny, but help with sizedefaultsmallSize change (ARM)Notes
CONFIG_KALLSYMSload all symbols for debugging/kksymoopsYN ??.
CONFIG_SHMEMallow use of shmem filesystemYN ??.

Options for size instrumentation




























Options for measuring sizedescriptiondefault valuevalue for instrumentation
CONFIG_KMALLOC_ACCOUNTINGturn on kmalloc accountingNY
CONFIG_AUDIT_BOOTMEMprint out all bootmem allocationsNY
CONFIG_DEPRECATE_INLINEScause compiler to emit info about inlinesNY

options that should be investigated


















Optiondefault valuevalue for small sizeSize changeNotes
CONFIG_SERIAL_8250_NR_UARTS40 ??only useful for non-legacy ports, depends on hardware, but most embedded hardware has only legacy serial ports
  1. - by default (at least on my OSK config), several different schedulers are configured
  • only one should be used and others not compiled in.

Category: