Date: Fri, 27 Oct 2023 11:01:03 -0400 From: Paul Mather <paul@gromit.dlib.vt.edu> To: void <void@f-m.fm>, freebsd-stable@freebsd.org Subject: Re: periodic daily takes a very long time to run (14-stable) Message-ID: <8a5c1f89eb5842f20e463c7d60538e598da3bc46.camel@gromit.dlib.vt.edu> In-Reply-To: <ZTvMODY-mcBImHZP@int21h> References: <ZTuNvVMW_XG3mZKU@int21h> <1122335317.4913.1698407124469@localhost> <ZTuyXPjddEPqh-bi@int21h> <794932758.6659.1698413675475@localhost> <ZTvMODY-mcBImHZP@int21h>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 2023-10-27 at 15:42 +0100, void wrote: > would ktrace and/or truss be useful? something else? The truss -p > output of the > find PID produces massive amounts of output, all like this: >=20 > fstatat(AT_FDCWD,"5e70d5f895ccc92af6a7d5226f818b-81464.o",{ mode=3D-rw- > r--r--=20 > ,inode=3D367004,size=3D10312,blksize=3D10752 },AT_SYMLINK_NOFOLLOW) =3D 0 > (0x0) >=20 > with the filename changing each time >=20 > (later...) >=20 > that file is in ccache!!! >=20 > locate 5e70d5f895ccc92af6a7d5226f818b-81464.o > /var/cache/ccache/f/5/5e70d5f895ccc92af6a7d5226f818b-81464.o >=20 > maybe if I can exclude that dir (and /usr/obj) it'll lessen the > periodic runtime. > But i don't know yet whats calling find(1) when periodic daily runs. > If I can,=20 > I might be able to tell it not to walk certain heirarchies. This doesn't affect the periodic daily run (to my knowledge) but if you are using ccache then it will slow down the periodic weekly run when it executes the /etc/periodic/weekly/310.locate script. I use ccache, too, and my ccache cache file system has millions of files in it. I found no practical use for me to have the weekly locate indexing to include ephemeral ccache files in the locate index. It just slows down the indexing process. You can tinker with the settings in /etc/locate.rc and add your ccache file system/directory to PRUNEPATHS in order to get the /usr/libexec/locate.updatedb indexing script to skip that hierarchy. Cheers, Paul.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8a5c1f89eb5842f20e463c7d60538e598da3bc46.camel>