<br><font size=2 face="sans-serif">We are doing SEEK_SET</font>
<br>
<br><font size=2 face="sans-serif">fseek(fp,offset[i],SEEK_SET</font>
<br>
<br><font size=2 face="sans-serif">We were running into this same issue
on our san file system until we set the dma_cache_read_ahead to match our
buffer size of 256k. &nbsp;Just wondering if there is away to set that
within lustre. &nbsp;We are running 1.8 on the MDS and OSS and the clients
running the fseek are are running 1.6</font>
<br>
<br><font size=2 face="sans-serif">Thanks again.</font>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
Rocky</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">Andreas Dilger &lt;andreas.dilger@oracle.com&gt;</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">Ronald K Long &lt;rklong@usgs.gov&gt;</font>
<tr>
<td valign=top><font size=1 color=#5f5f5f face="sans-serif">Cc:</font>
<td><font size=1 face="sans-serif">lustre-discuss@lists.lustre.org</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">04/09/2010 10:52 AM</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">Re: [Lustre-discuss] fseeks on lustre</font></table>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>On 2010-04-07, at 14:09, Ronald K Long wrote:<br>
&gt; I am having an issue with our lustre file system. &nbsp;In our current
&nbsp;<br>
&gt; environment on a san file system opening a large file and doing &nbsp;<br>
&gt; fseeks completes in under 2 seconds. &nbsp;Running that same routine
on &nbsp;<br>
&gt; our lustre file system the routine actually never finishes.<br>
<br>
Doing fseek() itself is only a client-side operation, so it should &nbsp;<br>
have no performance impact, UNLESS you are doing SEEK_END, which &nbsp;<br>
requires that the actual file size be computed on the client. &nbsp;That
&nbsp;<br>
causes lock revocation from all of the clients and is an expensive &nbsp;<br>
operation. &nbsp;Using SEEK_CUR or SEEK_SET has no cost at all.<br>
<br>
&gt; Are there any tunable parameter in lustre that can alleviate this
&nbsp;<br>
&gt; problem?<br>
<br>
It depends on what the problem really is.<br>
<br>
Cheers, Andreas<br>
--<br>
Andreas Dilger<br>
Principal Engineer, Lustre Group<br>
Oracle Corporation Canada Inc.<br>
<br>
</font></tt>
<br>
<br>