another memory usage experiment! scripts+results: https://gist.github.com/thejh/6eddd199d71f5e5a221b827c7aa2a271 … this one is to see how many pages of present/swapped memory are completely within free malloc chunks, and wrote a script to MADV_DONTNEED that memory away (but don't run that on any machine you care about!)
there was a qemu-system-x86_64 process on this box that AFAICS used 42MiB worth of pages for free glibc chunks, for example. and libvirtd used 7MiB.
-
-
(but, uh, *really* don't run those scripts on any box that you don't want to crash. for some reason the init daemon spewed some segfaults immediately when the madvise(..., MADV_DONTNEED) was injected by gdb... not sure whether that's because of gdb or because of the madvise())
Show this thread -
might be cool to teach glibc to MADV_DONTNEED free pages when a certain signal arrives, or something like that
Show this thread
End of conversation
New conversation -
-
-
If you need droplets to do more research like this, please hit me up via DM.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.