<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
After changed configuration, performance is slowly. I added
write-behind, read-ahead into my configuration. But performance become
bad.<br>
<br>
1,2,3's config:<br>
volume  storage1<br>
        type    protocol/client<br>
        option  transport-type  tcp/client<br>
        option  remote-host     210.245.xxx.xxx<br>
        option  remote-subvolume        locks<br>
end-volume<br>
<br>
volume writeback<br>
        type    performance/write-behind<br>
        option  cache-size 1MB<br>
        option  block-size 1MB<br>
        subvolumes storage1<br>
end-volume<br>
<br>
volume readahead<br>
        type    performance/read-ahead<br>
        option  page-size 2MB<br>
        option  page-count 16<br>
        subvolumes writeback<br>
end-volume<br>
<br>
4's config:<br>
volume brick<br>
  type storage/posix<br>
  option directory /store<br>
end-volume<br>
<br>
volume locks<br>
  type features/posix-locks<br>
  subvolumes brick<br>
end-volume<br>
<br>
volume server<br>
  type protocol/server<br>
  option transport-type tcp/server<br>
  option auth.addr.locks.allow  *<br>
  subvolumes locks<br>
end-volume<br>
<br>
You can check this at: <a class="moz-txt-link-freetext" href="http://mirror-fpt-telecom.fpt.net/">http://mirror-fpt-telecom.fpt.net/</a><br>
<br>
Any suggestions?<br>
<br>
<br>
Vikas Gorur wrote:
<blockquote
 cite="mid:f1797ae40904010217i6037e17cq8449c14d05f58d77@mail.gmail.com"
 type="cite">
  <pre wrap="">2009/4/1 Vu Tong Minh <a class="moz-txt-link-rfc2396E" href="mailto:vtminh@fpt.net">&lt;vtminh@fpt.net&gt;</a>:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I tried to load posix_locks on node1 too, but I got error:
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Sorry, my bad. Got a little confused.

The problem with your config is that you should export the "locks"
volume from the server and specify "locks" as the remote-subvolume in
client.

So your configuration should be:


1,2,3's config:
volume  storage1
        type    protocol/client
        option  transport-type  tcp/client
        option  remote-host     210.245.xxx.xxx
        option  remote-subvolume        locks
end-volume

4's config:
volume brick
  type storage/posix
  option directory /store
end-volume

volume locks
  type features/posix-locks
  subvolumes brick
end-volume

volume server
  type protocol/server
  option transport-type tcp/server
  option auth.addr.locks.allow  *
  subvolumes locks
end-volume

  </pre>
</blockquote>
<br>
</body>
</html>