简体   繁体   中英

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. If I have files as simple byte array it could be saved in pagefile.sys on Windows or swap in Linux.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM