blog
blog copied to clipboard
posts/go/go1.16-3/
煎鱼大大,MADV_FREE 和 MADV_DONTNEED 的定义是不是写反了
MADV_FREE 和 MADV_DONTNEED 在操作系统回收这块,应该是写反了。 MADV_FREE: The kernel can thus free these pages, but the freeing could be delayed until memory pressure occurs. https://www.man7.org/linux/man-pages/man2/madvise.2.html