Re: svn commit: r268852 - in

看板FB_svn作者時間11年前 (2014/07/20 03:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
On 19.07.2014 13:42, Robert Watson wrote: > On Fri, 18 Jul 2014, Xin LI wrote: > >> Log: >> 5008 lock contention (rrw_exit) while running a read only load >> Reviewed by: Matthew Ahrens <matthew.ahrens@delphix.com> >> Reviewed by: George Wilson <george.wilson@delphix.com> >> Reviewed by: Alex Reece <alex.reece@delphix.com> >> Reviewed by: Christopher Siden <christopher.siden@delphix.com> >> Reviewed by: Richard Yao <ryao@gentoo.org> >> Reviewed by: Saso Kiselkov <skiselkov.ml@gmail.com> >> Approved by: Garrett D'Amore <garrett@damore.org> >> >> illumos/illumos-gate@c9030f6c93613fe30ee0c16f92b96da7816ac052 > > Is there an opportunity to use our own read-mostly lock implementation > here? It should be substantially more scalable, has integration with > WITNESS, proper priority propagation, etc. Our rmlock(4) tells: "Writers are permitted to sleep while holding a read-mostly lock, but readers are not." That is not acceptable for ZFS, which allocates memory in many places. Also the rrw locks used there have specific recursion semantics: readers are allowed to recurse on the lock even when there is waiting writer. But first read acquisition at the same situation is not allowed. I am not sure whether out rmlocks can do the same. -- Alexander Motin _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
文章代碼(AID): #1JoiUo40 (FB_svn)
文章代碼(AID): #1JoiUo40 (FB_svn)