Skip to content

Servers bloat memory from spawned children

When we fork, our children inherit the memory from the main Tor process, which can be 50MB or more. Since it's copy-on-write, no problem so far. But when the main Tor process changes the memory, or frees it, then it gets copied so the child has a clean copy.

So we end up using 50+MB per child. When we spawn a lot of dnsworkers, this becomes really bad.

[Automatically added by flyspray2trac: Operating System: All]

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information