ALTMEM(4)

πŸ“¦ version 11.0, in nixpkgs unstable

🌸 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