fermitools / declad

BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

Option to fadvise() flush buffer cache for files for online systems #53

Open marcmengel opened 1 month ago

marcmengel commented 1 month ago

This is a request actually from @ron003 .

This will probably involve adding https://github.com/lamby/python-fadvise as a dependency...

Should be done at the start of quarantine() and in mover() where we log the transfer as complete (around https://github.com/fermitools/declad/blob/main/declad/mover.py#L302) as in either case we are not expecting to look at the file ever again without human intervention.

This should default to on, if we make it optional...