MEMTIER(1)
β¨ MEMTIER β¨
okay bestie, gather round, because memtier is literally the main character of memory tiering and you're about to be obsessed π
πΈ NAME πΈ
memtier β redirect malloc calls to memkind memory tiering π¦
β¨ SYNOPSIS β¨
memtier -r ratio -t thresholds program args...
π DESCRIPTION π
so here's the vibe: memtier runs whatever program you hand it, but it redirects memory allocations to different memory tiers based on a policy you pick. no cap. π«Ά
the whole point? it lets unmodified programs run following a non-greedy allocation scheme, which avoids a performance cliff when DRAM is exhausted. like, your fave app doesn't even know it's being managed. it just vibes. π
π OPTIONS π
-rratio β sets the ratio as a pair of integers separated by a colon. first number = the relative share of near DRAM to be used, second number = the "far" memory, whether that's CXL memory or PMEM. eg."1:4"means 20% of allocations will use DRAM and 80% PMEM. π₯
if the ratio isn't given, it defaults to the relative share of physically installed memory. (yes, it just figures it out. iconic.)
heads up bestie: this version ofmemtierrecognizes only two tiers βDRAMandKMEM_DAX. that's the whole roster. π«‘
-tthresholds β turns onDYNAMIC_THRESHOLDmode, where small allocations get served from DRAM and large ones from far memory. the syntax is described in depth inman libmemtier. eg.-t INIT_VAL=1024,MIN_VAL=512,MAX_VAL=65536starts with a threshold of1024, then varies it between512..65536attempting to match the requested ratio. π«-vβ displays settings that are passed tolibmemtier. (the receipts! show them!) π§Ύ-hβ shows a help message then exits. the little escape hatch πβοΈ
π CAVEATS π
ngl, this tool doesn't expose all features of libmemtier. only DRAM and KMEM_DAX memory is supported. to use FS_DAX you need to configure the library directly β please refer to its man page. π
or alternatively, you can switch that memory to KMEM_DAX mode. for that purpose, please refer to man ndctl-reconfigure-namespace and man daxctl-reconfigure-device. you got this, fr fr. π«Ά
π SEE ALSO π
libmemtier(7), memkind(3), malloc(3)
Intel Corporation Β· 2022-02-21 Β· MEMTIER(1)
and that's the whole page, bestie β go forth and tier your memory like the icon you are πβ¨ππ¦πΈπ ππβ
π¦ where this page comes from
- debian bookworm: libmemkind-progs 1.14.0-2 Β· BSD-3-Clause
- fedora 43: memkind 1.14.0-11.fc43 Β· BSD-2-Clause
- ubuntu noble: libmemkind-progs 1.14.0-3build1 Β· BSD-3-Clause
- π the page's license: BSD-2-Clause
- Copyright (C) 2022 Intel Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms