Re: Processes getting stuck in state tmpfs

看板FB_current作者時間14年前 (2012/02/24 04:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/7 (看更多)
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig33C98DBE6BD456685B857AFF Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 11.02.12 11:20, Gleb Kurtsou wrote: > On (10/02/2012 22:41), Florian Smeets wrote: >> Hi, >> >> if you set WRKDIRPREFIX to a tmpfs mountpoint and try to build audio/g= sm >> from ports one of the mv processes gets stuck in state tmpfs quite >> often. Traces from a kernel with WITTNESS and DEBUG_VFS_LOCKS are >> available here http://tb.smeets.im/~flo/tmpfs.txt >=20 > It's because of incorrect vnode locking order in tmpfs_rename. Issue is= > known and tmpfs is not the only file system suffering from it (e.g. ext= 2). >=20 > There two ways of working around it in tree: > * UFS: try locking vnode, unlock all vnodes on failure, restart, > relookup vnodes needed. > * ZFS: introduce directory entry locks to guarantee fvp won't disappear= , > fdvp can be safely traversed, etc. That won't be easy.. >=20 > UFS-way would be a good temporal solution, but I think we should work o= n > improving VOP_RENAME() in a long run. >=20 > I'll try to prepare a patch in several days. >=20 Hey Gleb, did you get anywhere with this? Thanks, Florian --------------enig33C98DBE6BD456685B857AFF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAk9Gn5QACgkQapo8P8lCvwkdwwCcDGIrgauqan48tjJ9LJoTGYOb q/QAnj+38Vh72Pt4hf+cPxHAEywIGC9F =lIx5 -----END PGP SIGNATURE----- --------------enig33C98DBE6BD456685B857AFF--
文章代碼(AID): #1FHg92x- (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1FHg92x- (FB_current)