阅读背景:

如何使用写时复制最小化c++程序的内存消耗?

来源:互联网 

I'm working on an application which forks itself up to 8 times for parallelism. Each fork has a full copy of the memory space from the original process at the time of the fork. The forks are quick because Linux shares the pages between the processes and only creates new ones when they are modified. The growth in memory consumption, in practice, seems to be about 3x for my application. Any suggestions for tools or techniques to use in identifying changes that will reduce that growth?I'm working on an application which forks itsel




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: