[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20141229170927.GA26246@amd>
Date: Mon, 29 Dec 2014 18:09:28 +0100
From: Pavel Machek <pavel@....cz>
To: Jiri Kosina <jkosina@...e.cz>
Cc: Andy Lutomirski <luto@...capital.net>,
kernel list <linux-kernel@...r.kernel.org>, yoongukim@....edu,
donghyu1@....edu, omutlu@...il.com
Subject: Re: DRAM unreliable under specific access patern
On Mon 2014-12-29 13:13:17, Jiri Kosina wrote:
> On Wed, 24 Dec 2014, Pavel Machek wrote:
>
> > Well... We could periodically scrub (every few miliseconds) pages
> > mapped to userspace.
>
> I.e. implement ECC in software. Would be extremely slow though.
No, not really. If you read the cells that are about to go bad, you'll
update them. Agreed on extremely slow.
> > We might be able to do some magic and disallow cache flushes to
> > userspace programs.
>
> My understanding is that cflush is not strictly necessary, it only makes
> the issue more likely to trigger.
Umm. Not really, AFAICT.
So, the memory can take "certain ammount" of "neighboring
accesses". You need to do that ammount before next refresh.
> If you modify the pattern so that it neraly fits into cacheline (but not
> really), you would be able to produce similar (if not the same) cache
> eviction pattern as if without explicit cflush. Right?
No, I don't think so.
Well.. you need to generate certain ammount of traffic on the address
lines, and it corrupts "neighboring" cells. I wish I knew more about
DRAM... If you'll read a cache line, you can't "break" it as reads
refreshes it. You need to do few miliseconds worth of reads, AFAICT.
If you'll just keep reading cachelines, the cachelines you read will
not be "neighboring" enough to the "target" cells you want to break.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists