diff options
| author | Mikael Pettersson <mikpe@csd.uu.se> | 2002-07-24 19:15:33 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-07-24 19:15:33 -0700 |
| commit | d53948ebe75adf011733f4a013bfe1c645df22fe (patch) | |
| tree | ca4834e26ed7333757c6090f04fa405b3af0f195 /fs/proc/array.c | |
| parent | a94a3303d99ff6ec0c07b5670fd8e1f5251163fe (diff) | |
[PATCH] shrink check_nmi_watchdog stack frame
This patch for 2.5.28 reduces the stack frame size of
arch/i386/kernel/nmi.c:check_nmi_watchdog() from 4096 bytes
in the worst case to 128 bytes.
The problem with the current code is that it copies the entire
irq_stat[] array, when only a single field (__nmi_count) is of
interest. The irq_stat_t element type is only 28 bytes, but it
is also ____cacheline_aligned, and that blows the array up to
4096 bytes on SMP P4 Xeons, 2048 bytes on SMP K7s, and 1024 bytes
on SMP P5/P6s. The patch reduces this to NR_CPUS*4==128 bytes.
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
