sched: Reduce the default preallocated buffer when DEFAULT_SMALL=y

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2021-11-07 23:00:01 +08:00 committed by Abdelatif Guettouche
parent 3f94828f6b
commit 086b09cc84

View File

@ -219,7 +219,8 @@ config START_DAY
config PREALLOC_TIMERS config PREALLOC_TIMERS
int "Number of pre-allocated POSIX timers" int "Number of pre-allocated POSIX timers"
default 8 default 4 if DEFAULT_SMALL
default 8 if !DEFAULT_SMALL
---help--- ---help---
The number of pre-allocated POSIX timer structures. The system manages a The number of pre-allocated POSIX timer structures. The system manages a
pool of preallocated timer structures to minimize dynamic allocations. Set to pool of preallocated timer structures to minimize dynamic allocations. Set to
@ -250,7 +251,8 @@ if IRQCHAIN
config PREALLOC_IRQCHAIN config PREALLOC_IRQCHAIN
int "Number of pre-allocated irq chains" int "Number of pre-allocated irq chains"
default 8 default 4 if DEFAULT_SMALL
default 8 if !DEFAULT_SMALL
---help--- ---help---
The number of pre-allocated irq chain structures. The system manages The number of pre-allocated irq chain structures. The system manages
a pool of preallocated irq chain structures to minimize dynamic a pool of preallocated irq chain structures to minimize dynamic
@ -1154,7 +1156,8 @@ if PRIORITY_INHERITANCE
config SEM_PREALLOCHOLDERS config SEM_PREALLOCHOLDERS
int "Number of pre-allocated holders" int "Number of pre-allocated holders"
default 16 default 4 if DEFAULT_SMALL
default 8 if !DEFAULT_SMALL
---help--- ---help---
This setting is only used if priority inheritance is enabled. This setting is only used if priority inheritance is enabled.
It defines the maximum number of different threads (minus one) that It defines the maximum number of different threads (minus one) that
@ -1348,7 +1351,8 @@ menu "Signal Configuration"
config SIG_PREALLOC_IRQ_ACTIONS config SIG_PREALLOC_IRQ_ACTIONS
int "Number of pre-allocated irq actions" int "Number of pre-allocated irq actions"
default 8 default 4 if DEFAULT_SMALL
default 8 if !DEFAULT_SMALL
---help--- ---help---
The number of pre-allocated irq action structures. The number of pre-allocated irq action structures.
@ -1575,14 +1579,16 @@ menu "POSIX Message Queue Options"
config PREALLOC_MQ_MSGS config PREALLOC_MQ_MSGS
int "Number of pre-allocated messages" int "Number of pre-allocated messages"
default 4 default 4 if DEFAULT_SMALL
default 8 if !DEFAULT_SMALL
---help--- ---help---
The number of pre-allocated message structures. The system manages The number of pre-allocated message structures. The system manages
a pool of preallocated message structures to minimize dynamic allocations a pool of preallocated message structures to minimize dynamic allocations
config PREALLOC_MQ_IRQ_MSGS config PREALLOC_MQ_IRQ_MSGS
int "Number of pre-allocated irq messages" int "Number of pre-allocated irq messages"
default 8 default 4 if DEFAULT_SMALL
default 8 if !DEFAULT_SMALL
---help--- ---help---
The number of pre-allocated irq message structures. The number of pre-allocated irq message structures.