<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<meta name="Generator" content="Zarafa WebAccess v7.1.14-51822">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Gluster native mount is really slow compared to nfs</title>
<style type="text/css">
body
{
font-family: Arial, Verdana, Sans-Serif ! important;
font-size: 12px;
padding: 5px 5px 5px 5px;
margin: 0px;
border-style: none;
background-color: #ffffff;
}
p, ul, li
{
margin-top: 0px;
margin-bottom: 0px;
}
</style>
</head>
<body>
<p>Hello,</p><p> </p><p> </p><p>We tried tons of settings to get a php app running on a native gluster mount:</p><p> </p><p>e.g.: 192.168.140.41:/www /var/www glusterfs defaults,_netdev,backup-volfile-servers=192.168.140.42:192.168.140.43,direct-io-mode=disable 0 0</p><p> </p><p>I tried some mount variants in order to speed up things without luck.</p><p> </p><p> </p><p>After that I tried nfs (native gluster nfs 3 and ganesha nfs 4), it was a crazy performance difference.</p><p> </p><p>e.g.: 192.168.140.41:/www /var/www nfs4 defaults,_netdev 0 0</p><p> </p><p>I tried a test like this to confirm the slowness:</p><p> </p><div>./smallfile_cli.py --top /var/www/test --host-set 192.168.140.41 --threads 8 --files 5000 --file-size 64 --record-size 64</div><div> </div><div>This test finished in around 1.5 seconds with NFS and in more than 250 seconds without nfs (can't remember exact numbers, but I reproduced it several times for both).</div><div> </div><div>With the native gluster mount the php app had loading times of over 10 seconds, with the nfs mount the php app loaded around 1 second maximum and even less. (reproduced several times)</div><div> </div><div> </div><p>I tried all kind of performance settings and variants of this but not helped , the difference stayed huge, here are some of the settings played with in random order:</p><p> </p><div>gluster volume set www features.cache-invalidation on</div><div>gluster volume set www features.cache-invalidation-timeout 600</div><div>gluster volume set www performance.stat-prefetch on</div><div>gluster volume set www performance.cache-samba-metadata on</div><div>gluster volume set www performance.cache-invalidation on</div><div>gluster volume set www performance.md-cache-timeout 600</div><div>gluster volume set www network.inode-lru-limit 250000</div><div> </div><div>gluster volume set www performance.cache-refresh-timeout 60</div><div>gluster volume set www performance.read-ahead disable</div><div>gluster volume set www performance.readdir-ahead on</div><div>gluster volume set www performance.parallel-readdir on</div><div>gluster volume set www performance.write-behind-window-size 4MB</div><div>gluster volume set www performance.io-thread-count 64</div><div> </div><div>gluster volume set www performance.client-io-threads on</div><div> </div><div>gluster volume set www performance.cache-size 1GB</div><div>gluster volume set www performance.quick-read on</div><div>gluster volume set www performance.flush-behind on</div><div>gluster volume set www performance.write-behind on</div><div>gluster volume set www nfs.disable on</div><div> </div><div>gluster volume set www client.event-threads 3</div><div>gluster volume set www server.event-threads 3</div><div> </div><p> </p><p> </p><p>The NFS ha adds a lot of complexity which we wouldn't need at all in our setup, could you please explain what is going on here? Is NFS the only solution to get acceptable performance? Did I miss one crucial settting perhaps?</p><p> </p><p>We're really desperate, thanks a lot for your help!</p><p> </p><p> </p><p>PS: We tried with gluster 3.11 and 3.8 on Debian, both had terrible performance when not used with nfs.</p><p> </p><p> </p><p><br /><br />Kind regards</p><p>Jo Goossens</p><p> </p><p> </p><p> </p>
</body>
</html>