Mechanism to reduce caches when low on memory?

Noel Grandin noelgrandin at
Wed Dec 9 11:33:44 UTC 2020

On 2020/12/09 1:01 pm, Luboš Luňák wrote:
>   Ok, but that's just trying harder to find that good size that does not exist.
> I am going to do these, I was just hoping there was also some (3) that would
> make these (1) and (2) rather irrelevant. But after googling for Linux and
> the Win32 API from Mike I'm not very convinced by what I've found, so I guess
> maybe later.

Linux has a cgroups API for memory pressure, and it's possible to sniff out similar info on macOS from their 

But as far as I know, there just isn't any way to size caches "correctly" because "correctly" is dependant on external 
variables that LibreOffice has no knowledge of
e.g. how many instances of LO are you running
e.g. how much system RAM do you want to leave for other applications
e.g. do you have an SSD, in which case you can swap applications in/out quickly, and memory usage is less of an issue

More information about the LibreOffice mailing list