LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-05-2015, 03:19 PM   #1
chass
LQ Newbie
 
Registered: May 2013
Posts: 7

Rep: Reputation: Disabled
Unhappy Silly Memory Question


Hello,

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.

thank you.
 
Old 02-05-2015, 09:02 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Ram in most systems should clean/clear based on loss of power. They don't always fully do that.

Generally you use a full cold boot to help prevent issues resulting from a reboot.

I assume this is what you mean.
 
Old 02-05-2015, 10:23 PM   #3
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
I you want to loose program memory from physical ram then you should power off the system for atleast 10 seconds.

A simple restart/reboot would not wipe away ram bytes.

You can also run memtest after reboot/restart it would wipe most of the ram.

There are other programs to do same thing. Do web search.
 
Old 02-06-2015, 06:46 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
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.

Last edited by jpollard; 02-06-2015 at 06:48 AM.
 
Old 02-06-2015, 10:04 AM   #5
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
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.
 
Old 02-06-2015, 01:34 PM   #6
chass
LQ Newbie
 
Registered: May 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
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.

Thanks again.
 
Old 02-06-2015, 09:53 PM   #7
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Newer kernel have memtest parameter that you can supply to kernel via bootloader. It uses it to check memory befor booting.

memtest=1

where 1 means test memory with one pattern.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Silly Question koodoo Linux - Newbie 2 02-14-2005 07:20 AM
Really silly question... godhugh Linux - Newbie 1 01-04-2005 11:29 AM
A silly question?? JIV Linux - Newbie 1 10-31-2003 01:01 AM
another silly question. rivethead Linux - Software 2 03-01-2003 03:05 AM
Silly question jeucken Linux - Newbie 1 01-02-2003 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration