如何修改CPU高速缓存L1,高速缓存L2和高速缓存L3? [英] How do I modify CPU Cache L1, Cache L2 and Cache L3?

查看:997
本文介绍了如何修改CPU高速缓存L1,高速缓存L2和高速缓存L3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以使用命名空间System.Runtime.Caching来修改CPU Cache L1,L2和L3的属性和值吗?



msdn.microsoft.com告诉我,命名空间允许在窗口中创建新的缓存存储,如虚拟RAM。



但是,我想用CPU包含的Cache进行编程。你能告诉我怎么做吗?



感谢你的解决方案!

Can I use namespace System.Runtime.Caching in order to modify the properties and values of CPU Cache L1, L2 and L3?

msdn.microsoft.com told me the namespace allows create new cache storage in windows like a virtual RAM.

But, i wanna program with Cache which is included by CPU. Can you tell me how to do that?

Thanks for solutions!

推荐答案

不,你可以't。

L1,L2,L3缓存通常位于多核处理器的处理器芯片内:普通内存(System.Runtime.Caching命名空间所关注的内存)是外部的处理器并不是L1,L2或L3缓存的一部分。



http://en.wikipedia.org/wiki/CPU_cache#Multi-level_caches [ ^ ]
No, you can't.
L1, L2, L3 caches are typically inside the processor silicon in multicore processors: "normal" memory (which is what the System.Runtime.Caching namespace is concerned with) is external to the processor and is not a part of L1, L2, or L3 caches.

http://en.wikipedia.org/wiki/CPU_cache#Multi-level_caches[^]


什么???

你们知道什么是CPU缓存?我怀疑。至少阅读维基百科: http://en.wikipedia.org/wiki/CPU_cache [ ^ ]



这将是一个如果可以修改那些缓存值的灾难。 CPU缓存和运行时缓存是完全不同的事情,在运行代码的完全不同的功能级别上。第一个是最低的,而另一个是在这个结构的最高边缘。



你不能直接影响CPU处理管道的行为 - CPU缓存工作的地方。你可以,但优化 - 但更少.net :(



一些讲座:http://onward-conference.org/2011/images/Pueschel_2011_AutomaticPerformanceProgramming_Onward11.pdf [ ^ ]


这篇关于如何修改CPU高速缓存L1,高速缓存L2和高速缓存L3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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