From: Jiaqi Yan <jiaqiyan@google.com>
To: Nadav Amit <nadav.amit@gmail.com>
Cc: "Luck, Tony" <tony.luck@intel.com>,
"naoya.horiguchi@nec.com" <naoya.horiguchi@nec.com>,
"dave.hansen@linux.intel.com" <dave.hansen@linux.intel.com>,
David Hildenbrand <david@redhat.com>,
"Aktas, Erdem" <erdemaktas@google.com>,
"pgonda@google.com" <pgonda@google.com>,
"rientjes@google.com" <rientjes@google.com>,
"Hsiao, Duen-wen" <duenwen@google.com>,
"Vilas.Sridharan@amd.com" <Vilas.Sridharan@amd.com>,
"Malvestuto, Mike" <mike.malvestuto@intel.com>,
"gthelen@google.com" <gthelen@google.com>,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
"jthoughton@google.com" <jthoughton@google.com>
Subject: Re: [RFC] Kernel Support of Memory Error Detection.
Date: Mon, 7 Nov 2022 18:24:04 -0800 [thread overview]
Message-ID: <CACw3F50H=0dyTk-78jbB=gWaNZnUCBE_54HkJ3dsD4LNovNjMQ@mail.gmail.com> (raw)
In-Reply-To: <7E670362-C29E-4626-B546-26530D54F937@gmail.com>
On Thu, Nov 3, 2022 at 9:40 AM Nadav Amit <nadav.amit@gmail.com> wrote:
>
> On Nov 3, 2022, at 9:27 AM, Luck, Tony <tony.luck@intel.com> wrote:
>
> >> - HPS usually doesn’t consume CPU cores but does consume memory
> >> controller cycles and memory bandwidth. SW consumes both CPU cycles
> >> and memory bandwidth, but is only a problem if administrators opt into
> >> the scanning after weighing the cost benefit.
> >
> > Maybe there is a middle ground on platforms that support some s/w programmable
> > DMA engine that can detect memory errors in a way that doesn't signal a
> > fatal system error. Your s/w scanner can direct that DMA engine to read from
> > the regions of memory that you want to scan, at a frequency that is compatible
> > with your system load requirements and risk assessments.
> >
> > If your idea gets traction, maybe structure the code so that it can either use
> > a CPU core scan a block of memory, or pass requests to a platform driver that can
> > use a DMA engine to perform the scan.
>
> That’s exactly what I was about the write. :)
>
> Quickassist can be perfect for that. The IOMMU can be programmed to make the
> memory uncachable.
>
Agree, the kernel code will abstract away the part that does the
actual memory scanning with an internal "API",
so that we can plug in different scanners, e.g. CPU, DMA device.
If it is feasible in future that hardware vendors can make patrol
scrubber programmable, we can even direct the scanning to patrol
scrubber.
next prev parent reply other threads:[~2022-11-08 2:24 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-03 15:50 Jiaqi Yan
2022-11-03 16:27 ` Luck, Tony
2022-11-03 16:40 ` Nadav Amit
2022-11-08 2:24 ` Jiaqi Yan [this message]
2022-11-08 16:17 ` Luck, Tony
2022-11-09 5:04 ` HORIGUCHI NAOYA(堀口 直也)
2022-11-10 20:23 ` Jiaqi Yan
2022-11-18 1:19 ` Jiaqi Yan
2022-11-18 14:38 ` Sridharan, Vilas
2022-11-18 17:10 ` Luck, Tony
2022-11-07 16:59 ` Sridharan, Vilas
2022-11-09 5:29 ` HORIGUCHI NAOYA(堀口 直也)
2022-11-09 16:15 ` Luck, Tony
2022-11-10 20:25 ` Jiaqi Yan
2022-11-10 20:23 ` Jiaqi Yan
2022-11-30 5:31 ` David Rientjes
2022-12-13 9:27 ` HORIGUCHI NAOYA(堀口 直也)
2022-12-13 18:09 ` Luck, Tony
2022-12-13 19:03 ` Jiaqi Yan
2022-12-14 14:45 ` Yazen Ghannam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CACw3F50H=0dyTk-78jbB=gWaNZnUCBE_54HkJ3dsD4LNovNjMQ@mail.gmail.com' \
--to=jiaqiyan@google.com \
--cc=Vilas.Sridharan@amd.com \
--cc=dave.hansen@linux.intel.com \
--cc=david@redhat.com \
--cc=duenwen@google.com \
--cc=erdemaktas@google.com \
--cc=gthelen@google.com \
--cc=jthoughton@google.com \
--cc=linux-mm@kvack.org \
--cc=mike.malvestuto@intel.com \
--cc=nadav.amit@gmail.com \
--cc=naoya.horiguchi@nec.com \
--cc=pgonda@google.com \
--cc=rientjes@google.com \
--cc=tony.luck@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox