Date: Sun, 6 Sep 2020 22:11:15 +0100 From: Jessica Clarke <jrtc27@freebsd.org> To: Alan Somers <asomers@freebsd.org> Cc: Mateusz Guzik <mjg@freebsd.org>, src-committers <src-committers@freebsd.org>, svn-src-all <svn-src-all@freebsd.org>, svn-src-head <svn-src-head@freebsd.org> Subject: Re: svn commit: r364637 - head/sys/kern Message-ID: <98DF431F-0187-43B7-9A23-FD31928B9504@freebsd.org> In-Reply-To: <CAOtMX2hFjE%2BLP%2BH8yq1xSRsun5pLMAM_MYyOzy_SPDuwsBG=rA@mail.gmail.com> References: <202008240900.07O90w9Y093073@repo.freebsd.org> <CAOtMX2hFjE%2BLP%2BH8yq1xSRsun5pLMAM_MYyOzy_SPDuwsBG=rA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 6 Sep 2020, at 21:46, Alan Somers <asomers@freebsd.org> wrote: >=20 > On Mon, Aug 24, 2020 at 3:01 AM Mateusz Guzik <mjg@freebsd.org> wrote: > Author: mjg > Date: Mon Aug 24 09:00:57 2020 > New Revision: 364637 > URL: https://svnweb.freebsd.org/changeset/base/364637 >=20 > Log: > cache: lockless reverse lookup >=20 > This enables fully scalable operation for getcwd and significantly = improves > realpath. >=20 > For example: > PATH_CUSTOM=3D/usr/src ./getcwd_processes -t 104 > before: 1550851 > after: 380135380 >=20 > Tested by: pho >=20 > Modified: > head/sys/kern/vfs_cache.c >=20 > Modified: head/sys/kern/vfs_cache.c > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > --- head/sys/kern/vfs_cache.c Mon Aug 24 09:00:07 2020 = (r364636) > +++ head/sys/kern/vfs_cache.c Mon Aug 24 09:00:57 2020 = (r364637) > @@ -477,6 +485,8 @@ STATNODE_COUNTER(shrinking_skipped, > static void cache_zap_locked(struct namecache *ncp); > static int vn_fullpath_hardlink(struct nameidata *ndp, char **retbuf, > char **freebuf, size_t *buflen); > +static int vn_fullpath_any_smr(struct vnode *vp, struct vnode *rdir, = char *buf, > + char **retbuf, size_t *buflen, bool slash_prefixed, size_t = addend); > static int vn_fullpath_any(struct vnode *vp, struct vnode *rdir, char = *buf, > char **retbuf, size_t *buflen); > static int vn_fullpath_dir(struct vnode *vp, struct vnode *rdir, char = *buf, > @@ -2476,9 +2486,17 @@ vn_getcwd(char *buf, char **retbuf, size_t = *buflen) >=20 > What does the "smr" stand for? Safe Memory Reclamation (see sys/sys/smr.h and sys/kern/subr_smr.c). Jess
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98DF431F-0187-43B7-9A23-FD31928B9504>