]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/memtest: add results of early memtest to /proc/meminfo
authorTomas Mudrunka <tomas.mudrunka@gmail.com>
Tue, 21 Mar 2023 10:34:30 +0000 (11:34 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 5 Apr 2023 23:02:36 +0000 (16:02 -0700)
commit11168d23d3317d7a2042b02ecaa216fb04253e8f
tree4f644ebdb13a6261171451ae2004ef50d4c79e06
parenta86983b0507c09ec7484dff9254f3961ef284832
mm/memtest: add results of early memtest to /proc/meminfo

Currently the memtest results were only presented in dmesg.

When running a large fleet of devices without ECC RAM it's currently not
easy to do bulk monitoring for memory corruption.  You have to parse
dmesg, but that's a ring buffer so the error might disappear after some
time.  In general I do not consider dmesg to be a great API to query RAM
status.

In several companies I've seen such errors remain undetected and cause
issues for way too long.  So I think it makes sense to provide a
monitoring API, so that we can safely detect and act upon them.

This adds /proc/meminfo entry which can be easily used by scripts.

Link: https://lkml.kernel.org/r/20230321103430.7130-1-tomas.mudrunka@gmail.com
Signed-off-by: Tomas Mudrunka <tomas.mudrunka@gmail.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Mike Rapoport (IBM) <rppt@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/filesystems/proc.rst
fs/proc/meminfo.c
include/linux/memblock.h
mm/memtest.c