RAS-MC-CTL(8)

πŸ“¦
version 0.8.4 Β· 5 versions
, in alpine 3.24, debian trixie, nixos 26.05, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ ras-mc-ctl(8) ✨

okay bestie, so this is the manual for ras-mc-ctl, the RAS memory controller admin utility β€” yes she's a section 8 system admin page and yes she's iconic πŸ’…


🌸 NAME 🌸

ras-mc-ctl β€” RAS memory controller admin utility


πŸ¦‹ SYNOPSIS πŸ¦‹

ras-mc-ctl [OPTION]...

πŸ’– DESCRIPTION πŸ’–

So like, ras-mc-ctl is a perl(1) script β€” yep, perl, she's vintage and she ATE β€” and she does a bunch of genuinely useful RAS admin tasks on EDAC (Error Detection and Correction) drivers. It's giving "little script, big responsibilities" fr fr πŸ”₯


πŸŽ€ OPTIONS πŸŽ€

  • --help β€” prints a lil brief usage message so you know what's up 🫢
  • --mainboard β€” prints the mainboard vendor and model for this hardware, if it's available. The whole method she uses to sniff out the mainboard vendor and model info for your current system is laid out down below in the MAINBOARD CONFIGURATION section πŸ‘€
  • --status β€” prints the status of the EDAC drivers (loaded or unloaded, so you know where you stand) πŸ’«
  • --quiet β€” be less verbose while running an operation. shhh. she's being subtle πŸ“
  • --register-labels β€” registers motherboard DIMM labels into the EDAC driver sysfs files. This one takes the detected mainboard manufacturer + model number and pairs it with a "labels database" that lives in any of the files under /etc/ras/dimm_labels.d/*, or in the labels.db file at /etc/ras/dimm_labels.db. ⚠️ An entry for your current hardware must exist in the labels database or this option literally does nothing, no cap.
  • --print-labels β€” shows you the configured labels for the current hardware, plus the labels currently registered with EDAC. side by side, bestie πŸ’…
  • --guess-labels β€” prints DMI labels, when the bank locator is available in the DMI table. Super handy for filling in that labels database at /etc/ras/dimm_labels.d/ ✨
  • --labeldb=DB β€” point her at an alternate location for the labels database.
  • --delay=time β€” sets a delay of time seconds before registering DIMM labels. Only meaningful if you're using it together with --register-labels πŸ•
  • --layout β€” prints the memory layout as detected by the EDAC driver. Genuinely useful for checking whether the EDAC driver is properly detecting the memory controller architecture πŸ‘‘
  • --summary β€” presents a summary of the logged errors.
  • --errors β€” shows the errors stored at the error database.
  • --error-count β€” shows the corrected and uncorrected error counts using sysfs.
  • --vendor-errors-summary=platform-id β€” presents a summary of the vendor-specific logged errors.
  • --vendor-errors=platform-id β€” shows the vendor-specific errors stored in the error database.
  • --vendor-platforms β€” shows the supported platforms with platform-ids for the vendor-specific errors 🌈

🧚 MAINBOARD CONFIGURATION 🧚

The ras-mc-ctl script uses this whole method to figure out your current system's mainboard vendor and model information:

  1. If the config file /etc/edac/mainboard exists, then it gets parsed by ras-mc-ctl. The mainboard config file has this simple syntax:
vendor = <mainboard vendor string>
model =  <mainboard model string>
script = <script to gather mainboard information>

Anything after a # character on a line counts as a comment. And if the keyword script is specified, then that script or executable gets run by ras-mc-ctl to gather the mainboard vendor and model info. That script should write the resulting information on stdout in the same format as the mainboard config file πŸ“

  1. If there's no mainboard config file, then ras-mc-ctl will attempt to read DMI information from the sysfs files:
/sys/class/dmi/id/board_vendor
/sys/class/dmi/id/board_name
  1. If those sysfs files above don't exist, then ras-mc-ctl falls back to parsing the output of the dmidecode(8) utility.
heads up bestie: using that utility will most often require that ras-mc-ctl be run as root πŸ‘‘

πŸ’œ SEE ALSO πŸ’œ

rasdaemon(1)


and that's the whole page, babes 🫢 this was RAS-MC-CTL(8), the RAS memory controller admin utility manual β€” go forth and check your DIMMs, you're doing amazing sweetie πŸ’–βœ¨