如何在Windows/Linux下将内存映射为USWC? [英] how to map memory as USWC under windows/linux?

查看:80
本文介绍了如何在Windows/Linux下将内存映射为USWC?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将大多数计算机内存映射为uswc,以利用非缓存movntdqa的优势.在Windows或Linux下有什么简单的方法吗?

I need to map most of the computer memory as uswc to take advantage of non-caching movntdqa. Is there any easy way to do this under windows or linux?

推荐答案

在Linux下,这很容易-尽管您必须注意不要将内核内存映射到W/C-这可能很难看.假设您知道如何在用户空间中保留物理内存范围,则可以使用"/proc/mtrr"更改内存类型.

Under Linux, this is easy - although you'll have to be careful that you don't map kernel memory to W/C - that could get ugly. Assuming you know how to reserve a physical range of memory from userspace, you can then use "/proc/mtrr" to change the memory type.

一个描述该界面的示例页面是此处

One example page describing the interface is here

这篇关于如何在Windows/Linux下将内存映射为USWC?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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