I am new to NixOS (not to Linux). I have installed mlocate and, as root, issued the updatedb command. The command is now running for more and 1 hour and the database is almost 125Gb. Seems not correct. Updatedb used to be almost immediate on my other systems.
I do not think that I have circular mounts (but I have a number of CIFS shares that are mounted to subdirectories of my home directory).
Anyhow, thanks for your suggestion. I have now used “prunePaths” in my service definition to avoid indexing directories on my CIFS shares (that are on a Synology NAS) that have to do with backups.
I’ll see if this helps.
As said in an earlier remark, by excluding some directories from being indexed, I now have a stable situation.
The size of “locatedb” is now 23 M. So everything seems to be OK.
Thanks for your suggestion.