4 ms·
I think he's suggesting that the fork itself should fail if the subsequent overwrite pass to defeat CoW would cause problems. So you would have trouble actually
by wtallis 6y ago
I think he's suggesting that the fork itself should fail if the subsequent overwrite pass to defeat CoW would cause problems. So you would have trouble actually directly using all of your RAM if you had some processes that don't follow a fork with an exec—but that leftover physical RAM should still be able to be used for the disk cache.
- duskwuff 6y ago> I think he's suggesting that the fork itself should fail if the subsequent overwrite pass to defeat CoW would cause problems. That'd put you in the unusual position of forbidding any sufficiently large process from ever creating children. The kernel has no way of knowing whether a fork() will be followed by exec().
- hyperman1 6y agoIf posix_spawn is a syscall, it would be a decent replacement.