Skip to content

Commit 18f14af

Browse files
mpekvaneesh
authored andcommitted
powerpc/64s: Increase default stack size to 32KB
There are reports of kernels crashing due to stack overflow while running OpenShift (Kubernetes). The primary contributor to the stack usage seems to be openvswitch, which is used by OVN-Kubernetes (based on OVN (Open Virtual Network)), but NFS also contributes in some stack traces. There may be some opportunities to reduce stack usage in the openvswitch code, but doing so potentially require tradeoffs vs performance, and also requires testing across architectures. Looking at stack usage across the kernel (using -fstack-usage), shows that ppc64le stack frames are on average 50-100% larger than the equivalent function built for x86-64. Which is not surprising given the minimum stack frame size is 32 bytes on ppc64le vs 16 bytes on x86-64. So increase the default stack size to 32KB for the modern 64-bit Book3S platforms, ie. pseries (virtualised) and powernv (bare metal). That leaves the older systems like G5s, and the AmigaOne (pasemi) with a 16KB stack which should be sufficient on those machines. Signed-off-by: Michael Ellerman <[email protected]> Signed-off-by: Aneesh Kumar K.V (IBM) <[email protected]> Link: https://msgid.link/[email protected]
1 parent d2441d3 commit 18f14af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/powerpc/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,7 @@ config THREAD_SHIFT
858858
int "Thread shift" if EXPERT
859859
range 13 15
860860
default "15" if PPC_256K_PAGES
861+
default "15" if PPC_PSERIES || PPC_POWERNV
861862
default "14" if PPC64
862863
default "13"
863864
help

0 commit comments

Comments
 (0)