On 2016-11-12 12:19, Dominique Leuenberger / DimStar wrote:
On Sat, 2016-11-12 at 11:29 +0100, cagsm wrote:
Call the commands in sequence (as root, in one session please, not using sudo)$ time /usr/bin/update-mime-database /usr/share/mime
$ time /usr/bin/update-mime-database /usr/share/mime $ export PKGSYSTEM_ENABLE_FSYNC=0 $ time /usr/bin/update-mime-database /usr/share/mime
Is there a notable difference in the execution time between the first and the 2nd call (I'd expect yes... on my test system this changes from ~40s to ~2s).
Careful. I don't know if this is the case, but with programs that work with databases (rpm database, for instance) there is often a huge difference between the first and subsequent runs because the first run caches the disk files into ram. In that case, you should run a third time removing the variables exported in the second command. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)