recollindex filling up the page cache, makes indexing in background inconvenient
The recollindex process (and its sub processes) appears to fill up the kernel page cache when I manually start an indexing job.
This is inconvenient, as it means that older cached files from applications I'm running on my desktop (that I'm currently not using but intending to use in near future) get removed and have to be loaded again when I reinvoke the application.
This makes the whole desktop less responsive.
As far as I understand the indexed files wouldn't need to be cached at all, because they're only read once. So caching them doesn't make sense.
So it'd be useful if the indexing processes made use of posix_fadvise() with POSIX_FADV_DONTNEED to prevent the read files from being kept in the cache.
Currently I'm testing if using https://github.com/Feh/nocache works and helps. Maybe recollindex could be modified so that it works well and reliably with this, then there'd be no need to implement the fadvise thing at all.
Of course not caching the indexed files only makes sense for manual indexing, not for the background indexing from monitoring filesystem writes / modified files.