Re: freebsd fork speedup

David S. Miller (davem@dm.cobaltmicro.com)
Mon, 19 Oct 1998 07:26:04 -0700


Date: Mon, 19 Oct 1998 14:57:46 +0300 (EEST)
From: Meelis Roos <mroos@tartu.cyber.ee>

I just read FreeBSD-3.0-RELEAE announcement and found the following
paragraph:

o Newly forked child processes return directly to user mode rather than
return up through the fork() syscall tree. This eliminates the kernel
stack copy at fork time and simplifies certain other internal
operations.
It is also needed to support the removal of the UPAGES. (The idea for
this originally came from NetBSD, but we did it for different reasons.)

What's it? Can linux be improved too? Or has it already been improved?

We do this in Linux already and have done so on all ports from day
one. If you look, all fork'd children jump directly into the trap
return code on first execution right out of the task switch sequence.

Later,
David S. Miller
davem@dm.cobaltmicro.com

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