Re: TASK_SIZE is variable.

Andi Kleen
2005-01-28T06:39:08Z

On Fri, Jan 28, 2005 at 01:58:04PM +1100, Paul Mackerras wrote:
> Here is a patch that I did recently to reduce the overhead of
> clear_page_tables() when using 64k pages on ppc64. It keeps a record
> of the maximum address that has been used in each mm_struct. With
> this we can kill MM_VM_SIZE.
>
> Andrew - could this go in -mm perhaps?

How does this work? The stack is always at the top of address space
and it will never change anything.

Or did you do this only to optimize 32bit processes on 64bit kernels?
If yes then the test in TASK_SIZE or MM_VM_SIZE should take care of it
anyways.

-Andi