<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body dir="auto">
<div>The flock locks (and regular LDLM locks for Lustre metadata and data extents) are reconstructed from client state if the MDS or OSS crash. </div>
<div id="AppleMailSignature"><br>
Cheers, Andreas</div>
<div><br>
On Nov 26, 2017, at 21:03, John Bent <<a href="mailto:johnbent@gmail.com">johnbent@gmail.com</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div></div>
<div>How does the lock manager avoid disk IO?  Locks don’t survive MDS0 failure?</div>
<div><br>
On Nov 26, 2017, at 8:29 PM, Dilger, Andreas <<a href="mailto:andreas.dilger@intel.com">andreas.dilger@intel.com</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div>The flock functionality only affects applications that are actually using it. It does not add any overhead for applications that do not use flock. </div>
<div><br>
</div>
<div>There are two flock options:</div>
<div><br>
</div>
<div> - localflock, which only keeps locking on the local client node and is sufficient for applications that only run on a single node</div>
<div>- flock, which adds locking between applications on different clients mounted with this option. This is if you have a distributed application that is running on multiple clients that controls its file access via flock (e.g. Producer/consumer). </div>
<div><br>
</div>
<div>The overhead itself depends on how much the application is actually using flock. The lock manager is on MDS0, and uses Lustre RPCs (which can run at 100k/s or higher), and does not involve any disk IO. <br>
<br>
<div>Cheers, Andreas</div>
</div>
<div><br>
On Nov 26, 2017, at 12:03, E.S. Rosenberg <<a href="mailto:esr+lustre@mail.hebrew.edu">esr+lustre@mail.hebrew.edu</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>Hi Torsten,<br>
</div>
Thanks that worked!<br>
</div>
<br>
</div>
Do you or anyone on the list know if/how flock affects Lustre performance? <br>
<br>
</div>
Thanks again,<br>
</div>
<div>Eli<br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Nov 21, 2017 at 9:18 AM, Torsten Harenberg <span dir="ltr">
<<a href="mailto:torsten.harenberg@cern.ch" target="_blank">torsten.harenberg@cern.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Eli,<br>
<br>
Am 21.11.17 um 01:26 schrieb E.S. Rosenberg:<br>
<span class="">> So I was wondering would this issue be solved by Lustre bindings for<br>
> Java or is this a way of locking that isn't supported by Lustre?<br>
<br>
</span>I know nothing about Elastic Search, but have you tried to mount Lustre<br>
with "flock" in the mount options?<br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888"><br>
 Torsten<br>
<br>
--<br>
<><><><><><><><><><><><><><><><wbr><><><><><><><><><><><><><><><><wbr><><><><br>
<>                                                              <><br>
<> Dr. Torsten Harenberg     <a href="mailto:Torsten.Harenberg@cern.ch">Torsten.Harenberg@cern.ch</a>          <><br>
<> Bergische Universitaet                                       <><br>
<> Fakutät 4 - Physik        Tel.: <a href="tel:%2B49%20%280%29202%20439-3521" value="+492024393521">
+49 (0)202 439-3521</a>          <><br>
<> Gaussstr. 20              Fax : <a href="tel:%2B49%20%280%29202%20439-2811" value="+492024392811">
+49 (0)202 439-2811</a>          <><br>
<> 42097 Wuppertal           @CERN: Bat. 1-1-049                <><br>
<>                                                              <><br>
<><><><><><><>< Of course it runs NetBSD <a href="http://www.netbsd.org" rel="noreferrer" target="_blank">
http://www.netbsd.org</a> ><><br>
</font></span></blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>lustre-discuss mailing list</span><br>
<span><a href="mailto:lustre-discuss@lists.lustre.org">lustre-discuss@lists.lustre.org</a></span><br>
<span><a href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a></span><br>
</div>
</blockquote>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>lustre-discuss mailing list</span><br>
<span><a href="mailto:lustre-discuss@lists.lustre.org">lustre-discuss@lists.lustre.org</a></span><br>
<span><a href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a></span><br>
</div>
</blockquote>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>lustre-discuss mailing list</span><br>
<span><a href="mailto:lustre-discuss@lists.lustre.org">lustre-discuss@lists.lustre.org</a></span><br>
<span><a href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a></span><br>
</div>
</blockquote>
</body>
</html>