是否可以更改虚拟内存页面大小? [英] Is it possible to change virtual memory page size?

查看:103
本文介绍了是否可以更改虚拟内存页面大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以更改虚拟内存页面大小?我问这个问题是因为在Wikipedia上MMU文章的 X86_64部分,它讨论了不同的页面大小.如果确实可以更改页面大小,该如何更改?

Is it possible to change the virtual memory page size? I'm asking this because in the X86_64 part of the MMU article on wikipedia, it talks about different page sizes. If the page size can indeed be changed, how it is changed?

推荐答案

在x86_64上,您可以借助

On x86_64 you can explicitly request 2 MiB pages instead of the usual 4 KiB pages with the help of hugetlbfs. On modern kernels with transparent huge page support a small pages can automagically concatenated to huge pages in the background, given that the memory fragmentation isn't to big and enough memory is still free.

这篇关于是否可以更改虚拟内存页面大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆