libnvme(2)
π NAME π
enum nvme_psd_workload β bestie, this is the workload hint. It lives in the Power Management Feature (peep &struct nvme_psd.apw) and its whole job is to tell the NVM subsystem what's up, or to spell out the conditions for whichever active power level we're vibing with. It's giving "here's the drama, now handle it." π
β¨ SYNOPSIS β¨
enum nvme_psd_workload {
NVME_PSD_WORKLOAD_NP ,
NVME_PSD_WORKLOAD_1 ,
NVME_PSD_WORKLOAD_2
};
Like. Three of them. That's the whole roster. πΈ
π Constants π
okay so let's meet the girls one by one π
NVME_PSD_WORKLOAD_NPβ no thoughts, head empty, workload unknown. Either nobody provided one or it's justβ¦ not a thing here. πNVME_PSD_WORKLOAD_1β Extended Idle Period with a Burst of Random Write, and the name really said what it said. Here's the recipe, fr fr: five minutes of idle, then thirty-two random write commands of size1 MiBsubmitted to a single controller while all other controllers in the NVM subsystem are idle, and then thirty (30) seconds of idle to let it all simmer. πβ¨NVME_PSD_WORKLOAD_2β Heavy Sequential Writes, aka main character energy. This one is 80,000 sequential write commands of size128 KiBsubmitted to a single controller while all other controllers in the NVM subsystem are idle. And lowkey important: the submission queue(s) should be sufficiently large, so the host can make sure there are multiple commands pending at all times during the workload. No gaps, no dead air, the queue stays booked and busy. π₯
ngl bestie, these two workloads are specific. Like, down to the byte and the second. Don't freestyle it β the numbers are the numbers. π«Ά
and that's the whole page, periodt π
this little love letter to workload hints came to you from the API Manual of libnvme, dated July 2026, filed under libnvme(2) β and yes, enum nvme_psd_workload is the moment, the myth, the legend. bye bestie, go submit some commands responsibly π¦πβ
π¦ where this page comes from
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms