VM_PAGE_DONTNEED(9)
πΈ NAME πΈ
okay so this is VM_PAGE_DONTNEED(9), straight outta the Kernel Developer's Manual, and it's all about vm_page_dontneed β indicating that a page is not needed anymore. bestie, it's giving βplease release this pageβ energy π
β¨
β¨ SYNOPSIS β¨
#include <sys/param.h>
#include <vm/vm.h>
#include <vm/vm_page.h>
void
vm_page_dontneed(vm_page_t m);
π¦ DESCRIPTION π¦
The vm_page_dontneed() function advises the VM system that the given page is no longer required. lowkey important: if the page is already in the inactive queue or in the cache queue, this function does nothing β zero, nada, zilch π«Ά otherwise, the page is deactivated.
π¨ vibe check: vm_page_dontneed() does not necessarily deactivate a page. instead, it implements an algorithm that attempts to prevent small objects from having their pages reused too quickly, and large objects from flushing smaller ones from the queues as their pages are released. no cap π
π SEE ALSO π
vm_page_deactivate(9)β go read this one too, bestie π¦
π AUTHORS π
- This manual page was written by
Chad David <davidc@acns.ab.ca>. slay β¨
mwah π β source/version: Debian, dated July 30, 2001, and this iconic page is VM_PAGE_DONTNEED(9). bye bestie π«Άπ
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (C) 2001 Chad David <davidc@acns.ab.ca>. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms