[英]How to set Net Core application or some data inside as non swappable?
I need to store some secure files only in memory without saving on HDD. 我只需要在内存中存储一些安全文件,而无需保存在HDD上。 If I have files as simple byte array it could be saved in pagefile.sys on Windows or swap in Linux.
如果我有简单字节数组形式的文件,则可以将其保存在Windows上的pagefile.sys中或Linux中的swap中。
Even if I encrypt data in memory, that still can get on the hard drive. 即使我对内存中的数据进行加密,也仍然可以进入硬盘驱动器。 I don't need security in memory, but I have to be sure that when I turn off my server, nothing is saved on it.
我不需要内存安全性,但是必须确保关闭服务器电源后,什么也没有保存。
Are there any tools to do this quickly and easily? 是否有任何工具可以快速轻松地做到这一点?
There is no way to avoid swapping out programmatically. 没有办法避免以编程方式换出。 You can only disable swapping on OS-level, but that will have unpredictable effects.
您只能在OS级别上禁用交换,但这将产生不可预测的影响。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.