Opened 10 years ago

Closed 9 years ago

#3846 closed enhancement (fixed)

[Patch] 4kStack usage

Reported by: dnehring@… Owned by: developers
Priority: normal Milestone:
Component: base system Version:
Keywords: Cc:


  • Enter CONFIG_4KSTACKS for i386. It recognizes that activity on the kernel stack only occurs while the process is running, and that much of that activity occurs in response to an interrupt, either in hard or soft IRQ context.
  • By reducing the per-process stack to 4K, CONFIG_4KSTACKS makes it easier to allocate the kernel stack for a new process when the system is under heavy memory pressure.
  • If an interrupt occurs while a CONFIG_4KSTACKS process is running, the kernel retains the current task but switches the stack to a separate specialized stack. There are two additional 4K stacks on each cpu, for soft and hard IRQ processing. The combination of the normal process stack plus the soft and hard IRQ stacks gives up to 12K of stack for an active process, instead of the previous total of 8K.

Attachments (1)

4kstacks.diff (349 bytes) - added by dnehring@… 10 years ago.

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by dnehring@…

comment:1 Changed 9 years ago by florian

  • Resolution set to fixed
  • Status changed from new to closed

Enabled in current trunk.

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.