发布于 2018-07-05 11:25:51
您希望在内核编译中使用MAP_UNINITIALIZED参数来映射和启用CONFIG_MMAP_ALLOW_UNINITIALIZED。
`MAP_UNINITIALIZED (since Linux 2.6.33) Don't clear anonymous pages. This flag is intended to improve performance on embedded devices. This flag is honored only if the kernel was configured with the CONFIG_MMAP_ALLOW_UNINITIAL‐ IZED option. Because of the security implications, that option is normally enabled only on embedded devices (i.e., devices where one has complete control of the contents of user memory).`发布于 2017-07-07 21:57:32
如果您希望您的用户空间进程在每次*alloc调用时都分配实际内存,我认为在下一个选项中:
https://stackoverflow.com/questions/44968502
复制相似问题