Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So I'm not sure if this is a real issue, my understanding is that when a system reboots the virtual memory is dumped in the process. Is there some configuration that would keep the memory intact after rebooting? I'm on RedHat 6 enterprise server, and I just need to make sure that virtual memory is cleared upon reboot. I'm not sure where to look to make sure this is happening.
On most systems, a linux reboot causes the BIOS to redo the memory check - which will wipe the memory if it is allowed to complete.
I don't have an EFI system to see, but I think it does the same there.
A cold reboot is aimed more at getting strange devices to fully reset than it is about clearing memory. For instance there were some old ethernet devices that would not reset unless they were powered down, and back up. Without that power cycle they had a tendency to have ROM checksum errors reported and not work.
What you're talking about would not be a reboot, but rather S3-Hibernate where RAM is suspended to disk in a low power state.
Whether or not the BIOS, a bootloader, or kernel initialization ends up clearing memory versus not, it's a horrifically bad idea to attempt to rely on memory content to be anything meaningful after a reboot. One of the main reasons a good OS boots reliably is that they're typically written to never assume that volatile resources are in any form of set state, excepting uninitialized at startup, whether that startup be cold or warm.
Thanks very much for your replies, yes I was referring to a full reboot or power down and then pushing the power button again. I'm following a checklist of to dos that call for this to be verified.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.