mmap

mmap

 英

  • 网络内存映射;映射操作;共享内存

例句

Since it operates on the system break (a global variable), it cannot coexist with any other allocator or with mmap.

由于系统中断一个全局变量进行操作所以不能其他分配程序或者mmap一起使用

However, as with mmap, the call itself can be expensive, so is only attempted if trailing unused memory exceeds a tunable threshold.

尽管如此对于mmap来说调用本身可能十分昂贵所以末尾未使用内存超过一个调整阀值尝试使用

A related problem is caused by applications that try to load code at an absolute address by calling mmap with the flag MAP_FIXED.

应用程序试图通过调用带有MAP_FIXED标志mmap绝对地址加载代码产生一个相关问题

Below is the Win32 sample code, and the equivalent of the Linux mmap implementation, to create a shared memory resource.

下面创建共享内存资源Win32示例代码以及相对Linuxnmap实现

Also, invoking mmap and mfree is much slower than carving out an existing chunk of memory.

调用mmapmfree雕刻一个存在内存许多

However, this improvement doesn't come without a price; there are hidden pitfalls when using the mmap+write method.

然而性能改进需要付出代价mmapwrite这种组合方法存在一些隐藏陷阱

By using mmap instead of read, we've cut in half the amount of data the kernel has to copy.

通过调用mmap而不是read我们已经内核需要执行复制操作减半

Segment 3 is for memory for mapped files, mmap'd memory.

3预留内存映射文件mmap

Here, however, we are only concerned with mmap's ability to add mapped RAM to our process.

不过这里我们关心mmap进程添加映射内存能力

One way to eliminate a copy is to skip calling read and instead call mmap. For example

消除复制一种方法read系统调用改为mmap系统调用例如

热门查询