阅读背景:

我想在Linux / C / C ++中使用任意大的缓冲区

来源:互联网 

Basically I want an arbitrarily large stack. I know that's not possible, but could I set aside a few terabytes of my virtual address space for it? I'd like to be able to start at the beginning and walk up the buffer as far as I need, and Linux can bring in pages from physical memory on an as-needed basis. Is something like that possible? Would it have the same performance as just malloc-ing a buffer? Would there be a way to signal to Linux that you're done with the memory once you pop the stack?Basically I want an arbitrarily large stack. I




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

分享到: