{
  "slug": "ssd-preconditioning",
  "term": "SSD preconditioning",
  "aliases": [
    "SSD pre-conditioning"
  ],
  "definition": "Preparatory writing used to establish a specified SSD state before performance measurement.",
  "note": "Device history affects garbage collection, cache contents and physical placement. A multi-queue SSD simulator models these states rather than treating occupied capacity alone as sufficient preparation. [mqsim] Records should state what was written, where, and how the later measurement window was accepted.\n\nIn the solid state storage performance test specification 2.0.2, the IOPS test starts with workload-independent preconditioning of 128 KiB sequential writes totalling twice the user capacity. The test workload then runs over the active range until steady state is reached. [snia]\n\nSteady state requires a measurement window of five rounds in which the range of the tracked variable stays within 20% of its average and the best-fit line changes by no more than 10%, with all required tracking points passing. For the IOPS procedure, round 25 permits either continuing toward convergence or stopping and reporting the final window. Stopping is not a steady-state pass. Purge is a separate step that returns the device as closely as possible to a never-used state. [snia]\n\nEmulator preparation: In the pinned FEMU BlackBox path, an unmapped page skips the data-page NAND read, although translation work can still add cost. Populate the later read range and record mapping/cache settings. Occupied addresses alone do not establish sustained-write steady state. [femu-code]",
  "related": [
    "filesystem-aging",
    "ssd-steady-state",
    "active-lba-range",
    "garbage-collection",
    "write-amplification",
    "free-space-fragmentation",
    "femu"
  ],
  "limitations": [
    "Preparation writes can destroy data and consume endurance",
    "A synthetic state model is not evidence that a physical drive was conditioned",
    "Restoring a filesystem image does not prove that controller caches, mapping state or garbage-collection work have returned to the same state."
  ],
  "citations": [
    {
      "id": "mqsim",
      "title": "Tavakkol et al. MQSim: A Framework for Enabling Realistic Studies of Modern Multi-Queue SSD Devices. FAST 2018, pp. 49-66; sections 3.2, 4.4, 5, App. A.",
      "url": "https://www.usenix.org/system/files/conference/fast18/fast18-tavakkol.pdf",
      "accessed": "2026-10-11"
    },
    {
      "id": "snia",
      "title": "SNIA. Solid State Storage Performance Test Specification 2.0.2, definitions 2.1.13 and 2.1.24, sections 4 and 7.2 (step 3.2.1.2.3).",
      "url": "https://www.snia.org/sites/default/files/2025-02/SNIA-SSS-PTS-2.0.2.pdf",
      "accessed": "2026-11-10"
    },
    {
      "id": "hesela-windows",
      "title": "Hesela: SSD steady state is not a timer; original numerical examples and limits",
      "url": "https://hesela.com/analyses/ssd-steady-state-is-not-a-timer/",
      "accessed": "2026-10-11"
    },
    {
      "id": "hesela-aging",
      "title": "Hesela: Geriatrix image preparation and device-state limits",
      "url": "https://hesela.com/analyses/filesystem-aging-free-space-fragmentation/#geriatrix-source-check",
      "accessed": "2026-10-20"
    },
    {
      "id": "femu-code",
      "title": "MoatLab FEMU, pinned BlackBox ssd_read path: mapping, buffer/cache checks and NAND timing.",
      "url": "https://github.com/MoatLab/FEMU/blob/785fe5a63e54228482168d62fc746045df4d1533/hw/femu/bbssd/ftl-datapath.c#L958-L1088",
      "accessed": "2026-11-10"
    }
  ],
  "status": "shipping",
  "advantages": [
    {
      "text": "Workload-independent preconditioning helps a device converge to steady state before measurement.",
      "citationIds": [
        "snia"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-10",
  "provenance": [
    "mqsim is the FAST 2018 multi-queue SSD simulator paper by Tavakkol et al., kept from the earlier version.",
    "snia is the SNIA Solid State Storage Performance Test Specification 2.0.2, reread on the access date in definitions 2.1.13, 2.1.18, 2.1.20 and 2.1.24 and the IOPS test flow.",
    "128 KiB, twice the user capacity, five rounds, 20%, 10% and 25 rounds come from snia.",
    "The IOPS round-25 continuation rule was checked against section 7.2, step 3.2.1.2.3, on 10 November 2026. Other test procedures have their own stopping rules."
  ]
}
