English 中文(简体)
c/c++中CPU切身静态记忆:是可能的?
原标题:Allocate static memory in CPU cache in c/c++ : is it possible?

是否有可能在万国邮联的海滩上明确制造静态物体,确保这些物体永远留在海滩上,以便永远不会把任何履约行为从进入援助团,或 go弃——保存虚拟记忆?

我特别关心的是把大型L3共同藏匿点作为目标,而不是瞄准L1、L2、教育或任何其他切身,而这里的记忆中最大的是。

而只是为了澄清与我在张贴前所搜索的其他线之间的区别,我不希望把整个海滩私有化,仅是少数几类区域价值。

最佳回答

No. Cache is not addressable, 因此,你可以在其中分配物体。

你们似乎想要问的是:在虚拟记忆中分配空间,我能否确保我总是受到点击?

这是一个更复杂的问题,答案是:部分。

你肯定能够避免通过使用贵处的记忆管理工具(例如<代码>mlock(<<><>>>>>>/代码”)将本区域标记为不可上页。 或从“非页集合”中拨款,开始。

我不相信有类似版本,把记忆带入万国邮联。 即便你可以保留CPU的藏身处,你也能够避免砍刀。 如果把其他核心文字写到记忆中,所有权就会转移,并且你手里会遭遇ache错和相关的公共汽车转移(可能是为了主人记忆,可能是为了其他核心的切身)。

正如Mathew在其评论中指出的那样,你还可以迫使在管道的其他有用工作同时出现海滩错乱,这样,当你需要时,数据就处于ache状态。

问题回答

你们可以再接一read, data取数据,把数据带入L3海滩。





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签