HomeFreeBSD

amd64: move pcb out of kstack to struct thread.

Description

amd64: move pcb out of kstack to struct thread.

This saves 320 bytes of the precious stack space.

The only negative aspect of the change I can think of is that the
struct thread increased by 320 bytes obviously, and that 320 bytes are
not swapped out anymore. I believe the freed stack space is much more
important than that. Also, current struct thread size is 1392 bytes
on amd64, so UMA will allocate two thread structures per (4KB) slab,
which leaves a space for pcb without increasing zone memory use.

Reviewed by: alc, markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D22138

Details

Provenance
kibAuthored on
Reviewer
alc
Differential Revision
D22138: amd64: move pcb out of kstack to struct thread
Parents
rS354094: Fix use of uninitialised variable.
Branches
Unknown
Tags
Unknown