ALTMEM(4)
πΈ ALTMEM(4) β the altmem page, bestie edition πΈ
okay so real talk, this is the manual page for altmem, section 4 of the kernel interfaces manual, and it's honestly such a slay little driver. let me walk you through it π
β¨ NAME β¨
altmem β the Alternative memory disk driver. that's it, that's the name, she's iconic and she knows it π
π¦ SYNOPSIS π¦
altmem* at altmemdev?
like, that's the whole config line. no cap, that's it. altmem* attaches at altmemdev? and honestly the way that syntax just works? obsessed π
π DESCRIPTION π
okay so here's the tea β β the altmem driver lets you use physical memory that your machine-dependent pmap(9) would normally not be able to access, and turns that into a swap device. literally taking the memory your pmap said "nope, not touching that" and going "actually, we're using it" ππ₯
and bestie, when an alternative memory disk device is present? she's generally preferred over hard disk-based swap space. like obviously, hard disk swap is giving 2009, altmem is giving main character energy π
want to know how to assign priorities to your swap devices? the swapctl(8) and fstab(5) man pages have you covered, go read them fr fr π«Ά
π FILES π
/dev/altmem??β block mode alternative memory disk devices. the block girlies π/dev/raltmem??β raw mode alternative memory disk devices. the raw girlies π
π SEE ALSO π
go read all three, iykyk π β¨
β HISTORY β
the altmem device driver appeared in NetBSD 6.0. a whole era, honestly π°οΈπ«
π AUTHORS π
Jared D. McNeill <jmcneill@NetBSD.org> β thank you for this gift, we are forever grateful ππ
aaaand that's the page!! π§ββοΈ this particular rendering is from the Debian folks, dated March 11, 2009, so likeβ¦ vintage but still valid bestie, don't come for her ππ mwah, go configure your swap πΈπ¦π
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2009 Jared D. McNeill <jmcneill@invisible.ca>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms