←back to thread

Ubuntu on Windows

(blog.dustinkirkland.com)
2049 points bpierre | 3 comments | | HN request time: 0.495s | source
1. tobias3 ◴[] No.11391193[source]
I wonder if they implemented a copy-on-write fork syscall in NT. Otherwise it will be slower (and use a lot more memory) in some scenarios.

Edit: And cow fork only makes sense if there is memory over-commit. So to be fully featured it would need a separate memory subsystem with memory over-commit.

replies(2): >>11391556 #>>11391688 #
2. quotemstr ◴[] No.11391556[source]
No, you don't need overcommit for COW fork. You can fully commit the writable pages of the new process. Yes, that uses a bit of pagefile space, but disk space is cheap, and this approach works fine. You can (and should, if you care about robustness) turn off overcommit on Linux too.
3. the_why_of_y ◴[] No.11391688[source]
Looks like it wouldn't be the first copy-on-write fork() on NT; Interix had that already many years ago.

Solaris doesn't have VM over-commit either, and few people would claim it's not a fully featured UNIX.