Is there anyway to get rid of the data in RAM without powering off the system? or better to say how we can reduce the chance of getting meaning full information from the volatile memory while the system still is on?
closed as unclear what you're asking by Polynomial, Steve, Tobi Nary, Anders, ThoriumBR Sep 21 '17 at 14:34
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
Since you do not mention OS: http://man7.org/linux/man-pages/man3/bzero.3.html - it's fairly ubiquitous.
Use explicit_bzero() to avoid the compiler accidentally trimming away your wipe for whatever reason. If you kill off the sensitive program and fork a few processes that each gobble say, 512M, you have achieved what you need. Remember to unmount swap first - even before running your sensitive program.
You can set the children to each chunk as much memory as you like. The reaper will clean them up when they hit memory limits.