Re: [PATCH] x86: do not grow initial process stack so much

From: H. Peter Anvin
Date: Thu Jul 17 2008 - 19:13:13 EST


Denys Vlasenko wrote:

I do not see, though, why this can be useful for x86. The pages
are not mapped anyway, so accessing them still causes page faults.
No speedup for, say, rapidly spawning processes which need ~60k
of stack right away. They will still fault in kernel, right?


They will fault in the kernel, but only to fill the page tables, so it would cut down on latency.

I do *NOT* believe we should make this an x86-only change. If it should be architecture-dependent I'd rather find the architectures that do need it.

However, before changing this I really want to see some of the history about why it's that way in the first place.

-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/