<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body dir="auto">
<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.&nbsp;</div>
<div><br>
</div>
<div>There are two flock options:</div>
<div><br>
</div>
<div>&nbsp;- 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).&nbsp;</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.&nbsp;<br>
<br>
<div>Cheers, Andreas</div>
</div>
<div><br>
On Nov 26, 2017, at 12:03, E.S. Rosenberg &lt;<a href="mailto:esr&#43;lustre@mail.hebrew.edu">esr&#43;lustre@mail.hebrew.edu</a>&gt; 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">
&lt;<a href="mailto:torsten.harenberg@cern.ch" target="_blank">torsten.harenberg@cern.ch</a>&gt;</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="">&gt; So I was wondering would this issue be solved by Lustre bindings for<br>
&gt; 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 &quot;flock&quot; in the mount options?<br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888"><br>
&nbsp;Torsten<br>
<br>
--<br>
&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;<wbr>&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;<wbr>&lt;&gt;&lt;&gt;&lt;&gt;<br>
&lt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&gt;<br>
&lt;&gt; Dr. Torsten Harenberg&nbsp; &nbsp; &nbsp;<a href="mailto:Torsten.Harenberg@cern.ch">Torsten.Harenberg@cern.ch</a>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&gt;<br>
&lt;&gt; Bergische Universitaet&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;&gt;<br>
&lt;&gt; Fakutt 4 - Physik&nbsp; &nbsp; &nbsp; &nbsp; Tel.: <a href="tel:%2B49%20%280%29202%20439-3521" value="&#43;492024393521">
&#43;49 (0)202 439-3521</a>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&gt;<br>
&lt;&gt; Gaussstr. 20&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Fax : <a href="tel:%2B49%20%280%29202%20439-2811" value="&#43;492024392811">
&#43;49 (0)202 439-2811</a>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&gt;<br>
&lt;&gt; 42097 Wuppertal&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@CERN: Bat. 1-1-049&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&gt;<br>
&lt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&gt;<br>
&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt; Of course it runs NetBSD <a href="http://www.netbsd.org" rel="noreferrer" target="_blank">
http://www.netbsd.org</a> &gt;&lt;&gt;<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>
</body>
</html>