Re: [RFC PATCH v4 9/9] printk: use a new ringbuffer implementation

From: Thomas Gleixner
Date: Fri Aug 09 2019 - 07:15:21 EST


On Thu, 8 Aug 2019, Linus Torvalds wrote:

> On Thu, Aug 8, 2019 at 5:48 PM Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
> >
> > I've never tried, but are you saying that even with the "10 second
> > hold" the laptop's DRAM may still have old data that is accessible?
>
> The power doesn't go off when you *start* the 10s hold. It goes off
> after ten seconds.
>
> So power is off only for the time it then takes you to press the power
> button again to turn it on again. So just a second or two if you react
> quickly to the "ok, power light finally went off". Longer if you
> don't.
>
> But yes, DRAM has retention time in the seconds. See for example
>
> https://www.pdl.cmu.edu/PDL-FTP/NVM/dram-retention_isca13.pdf
>
> and look at the kinds of times they are looking at - their graphs
> aren't in milliseconds, they are in 1-5 seconds (and the retention is
> pretty high for that time).
>
> But I don't know what a power-off-in-laptop scenario really looks like..

That's random behaviour. It's hardware & BIOS & value add. What do you
expect?

I tried on a few machines. My laptop does not retain any useful information
and on some server box (which takes ages to boot) the memory is squeaky
clean, i.e. the BIOS wiped it already. Some others worked with a two second
delay between turning the remote power switch on and off.

Thanks,

tglx