Skip to main content

release_free_memory

Function release_free_memory 

Source
pub fn release_free_memory()
Expand description

Asks the C allocator to give memory it holds free back to the operating system (glibc’s malloc_trim; elsewhere nothing). The event loops call it once after a burst, when they have been idle for a while (K2): glibc keeps what a thread freed in that thread’s arena, so a burst of large responses otherwise left tens of MB resident.