Skip to content

MemorY 1.1.0

Latest

Choose a tag to compare

@agenticode agenticode released this 17 Nov 19:31

Engine 8, ledger schema 12, bundle format 1, JSON output 1. Archives for linux/amd64, linux/arm64 and darwin/arm64, built with Go 1.26.11 as for 1.0.0. A ledger of 1.0.0 named with --ledger is brought up to schema 12 in place, and my open brings a copy of a 1.0.0 bundle up to date; 1.0.0 refuses a ledger of schema 12 (docs/data-model.md).

Added

  • my board: the board of a host, its slots by CPU and channel as the SMBIOS slot names give them, with the grade and the errors of each DIMM. The report draws the same board in section 2, with a card per slot. docs/compatibility.md lists the slot names that are read.
  • The Memory Explorer: the memory readings of a host (meminfo, vmstat, memory pressure, slab caches, CPU caches, numactl --hardware, numastat, sar -B, the state of MGLRU, lshw) are kept in the ledger and drawn in a new section of the report after the checks against a wrong diagnosis (section 7, or 8 after Module SPD), in five tabs. A report of a case without readings has eight sections as before. Its thresholds mark values and change no grade. The hints that name a state of the host (low available memory, memory pressure, unreclaimable slab, dirty pages, a large file cache, swap in use) are shown only with --audience fa.
  • my collect host -o DIR: what a scan reads of this host, with the memory readings, copied into a directory that my import and --root read elsewhere. --sudo runs dmidecode and lshw through sudo -n.
  • A scan runs numactl, numastat and sar when they are installed, each with a time limit; my serve and my harvest do not.
  • Ledger schema 10: the table host_reading, and the number of sockets and the processor name of a host. Bundles carry the readings.
  • Ledger schema 11: the CPUID signature of the processor of a host and which of its sockets hold a processor. The processor name is now that of the first populated socket.
  • my spd and a report section Module SPD show what each DIMM says about itself in its SPD EEPROM: the manufacturing week, the location code, the part and serial number, ranks and device width (x4, x8), the die density and the package. Each reading is tied to its slot by serial number. A table of date codes counts the DIMMs with a finding beside those without one; my lots prints it alone, for one host or for every host of a ledger. A date code that DIMMs with a finding share is a lead for the supplier of the modules to check, and names no lot of the DRAM dies. A scan reads the SPD from the eeprom files of the kernel drivers ee1004 (DDR4) and spd5118 (DDR5), without root and without a write, in at most 5 seconds; --no-spd leaves it out and my harvest does not read it. my spd FILE... and my import take a dump as raw bytes, hex text or decode-dimms output.
  • When the SPD cannot be read, the missing line, my spd and the report give the reason: a virtual machine, a kernel without the SMBus or SPD driver, a driver that is not loaded, no SPD device on the bus, pages that firmware blocks, a read that failed: 18 reasons, each given by a test (docs/compatibility.md). The SPD changes no grade, no finding and no exit code; the engine stays at version 8.
  • Ledger schema 12: the table spd_reading with the bytes of each reading, and the reading kind spd-probe with what the scan saw of the path to the SPD. A DIMM tied to a reading takes its manufacturing week and device width from it (docs/data-model.md). Bundles carry the readings; my collect host copies them into spd-probe.txt and spd/.
  • The exporter: my_dimm_spd_info, my_host_spd_read and my_host_spd_unread (docs/exporter.md).

Changed

  • The SMBIOS reader skips a memory device of type Flash, ROM, EPROM, FEPROM or EEPROM (a chip of the board) with a note, and reads once a record that a text holds twice.
  • The board reads every slot name whole, by a table of 42 locator forms and 26 bank locator forms, and decides processor, channel and position of every slot: the processor word, a Node of the bank locator, the only processor, the processor of the other slots of a channel letter, channel letters split over the processors in order. Channels and slots are numbered from 0 in the vendor's order, and the vendor's name of each channel is drawn under it.
  • A slot number without a channel (Dell A7, HPE PROC 1 DIMM 9, Lenovo DIMM 7) takes its processor, channel and position from the table of the board's family: 361 tables, each written from a public document of the maker that internal/explorer/sources.tsv cites with title, number and pages. A numbered slot of a board without such a table is drawn without channels.
  • On a board whose memory controller is in the chipset (front-side-bus Xeon), no processor owns a slot: the board draws one controller in the place of the CPUs.
  • Over the 2,044 server dumps of the Linux-Hardware.org DMI collection the board places 1,934 in full (the first version drew every slot of 1,077); the other 110 stand in a separate list with the reason their own records do not tell the place (testdata/explorer/population/unplaceable.tsv): no-channel-in-document 38, unnamed-empty 27, duplicated-names 12, board-unknown 10, names-not-in-document 6, no-document 5, absent-processor 4, no-processor-in-document 4, processor-unknown 2, no-memory-device 1, processor-records-missing 1 (docs/compatibility.md). Tests hold every slot of the collection to its expected place and the board to 1,447 slots placed by hand from the vendor documents.
  • The board is checked against its processor: no more sockets than processor records, no more channels than the processor has (46 processor families, by name or by CPUID signature), no more slots in a channel than the platform holds, no two slots in one place. A socket that fails is drawn without channels. Lines of data quality say which document a table comes from, which slots the manual names, which modules stand on an absent processor, and what could not be checked.
  • The population check: the board holds the installed modules to the population the public documents of its maker give (internal/population/sets.tsv, 276 rule sets, 188 with a table of slots per number of modules, citing 353 documents with their pages). It marks with + an empty slot the table fills for the number of modules and with - a module in a slot the table leaves empty, and names each finding with its rule (P-ORDER-01, P-FIRST-01, P-CPU-01, P-BAL-01, P-MIX-01 to P-MIX-05), the strength of the document's wording and the document with its page, in my board, in section 2 of the report and in --json (population); my why names a finding of the slot of the DIMM. A population finding has no grade and changes no finding, confidence or exit code; the engine stays at version 8. --detail and --audience fa add the rules not checked and the vendor's table. Over the 2,044 server dumps of the public collection a rule set applies to 1,682: 1,434 reach a rule set with a table and 248 one of general rules; 252 reach no rule set, 109 are not placed in full and 1 has no slot. 201 dumps have a finding (internal/view/testdata/population-coverage.txt). testdata/explorer/population-demo is the demo case.

Known limits

  • No board and no population rule was checked against a real server. The board was checked against the public dumps and the 1,447 slots placed by hand, the rules against the documents they cite.
  • The dumps of the separate list are drawn in part: a slot without a place stands below the board, or carries the label of the manual where the family lists the labels.
  • A numbered slot of a board family without a public slot table is drawn without channels.
  • Population rules exist for the board and processor families whose documents are public, and follow the revisions docs/rules.md cites; a later revision with another table is not known. Firmware that reports no rank count or module type leaves the rules that need them unchecked.
  • No SPD has been read on a real server. The decoder was checked against 8 public DDR4 and DDR5 dumps, the reader against made sysfs trees and in two emulated guests whose EEPROMs hold no SPD (docs/validation-lab.md). On most server boards Linux has no path to the SPD; MemorY then names the reason and reads a dump.
  • No public dump covers DDR5 modules with stacked dies (3DS, DDP), asymmetric modules, MRDIMM or CUDIMM, or memory types other than DDR4 and DDR5. The tests hold DDR5 3DS and DDP, DDR4 DDP and the asymmetric layout to dumps made from a public one; a DDR3 dump is named by its type and not decoded.