<html><body><div style="font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000"><div>Hi,<br></div><div><br></div><div>Whenever a new fd is created it is allocated from the mem-pool, if the mem pool is full it will be calloc'd. The current limit for fd-mem-pool is 1024, if there are more than 1024 fd's open, then the perf may be affected.<br></div><div>Also, the unix socket used while glfs_set_volfile_server() is only for Vol file, i.e. only for the connection btw Client and glusterd (management deamon). Hence, you may not see the IO performance increase, the patch <a href="http://review.gluster.org/#/c/12709/">http://review.gluster.org/#/c/12709/</a> introduces unix socket domain for IO path. This is what you may be interested in i guess.<br></div><div><br></div><div>Regards,<br></div><div>Poornima<br></div><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Ankireddypalle Reddy" &lt;areddy@commvault.com&gt;<br><b>To: </b>gluster-users@gluster.org<br><b>Sent: </b>Tuesday, May 24, 2016 9:16:31 PM<br><b>Subject: </b>Re: [Gluster-users] libgfapi using unix domain sockets<br><div><br></div><style><!--

@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}

p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><div class="WordSection1"><p class="MsoNormal"><span style="color:#1F497D" data-mce-style="color: #1f497d;">Is there any suggested best practice for the number of glfs_fd_t &nbsp;that can be associated with a glfs_t. Does having a single glfs_t in an application with large number of glfs_fd_t cause any resource contention issues.</span></p><p class="MsoNormal"><span style="color:#1F497D" data-mce-style="color: #1f497d;">&nbsp;</span></p><p class="MsoNormal"><span style="color:#1F497D" data-mce-style="color: #1f497d;">Thanks and Regards,</span></p><p class="MsoNormal"><span style="color:#1F497D" data-mce-style="color: #1f497d;">Ram</span></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in" data-mce-style="border: none; border-top: solid #B5C4DF 1.0pt; padding: 3.0pt 0in 0in 0in;"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;" data-mce-style="font-size: 10.0pt; font-family: 'Tahoma','sans-serif';">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;" data-mce-style="font-size: 10.0pt; font-family: 'Tahoma','sans-serif';"> gluster-users-bounces@gluster.org [mailto:gluster-users-bounces@gluster.org] <b>On Behalf Of </b>Ankireddypalle Reddy<br> <b>Sent:</b> Tuesday, May 24, 2016 11:34 AM<br> <b>To:</b> gluster-users@gluster.org<br> <b>Subject:</b> Re: [Gluster-users] libgfapi using unix domain sockets</span></p></div></div><p class="MsoNormal">&nbsp;</p><p class="MsoNormal"><span style="color:#1F497D" data-mce-style="color: #1f497d;">I figured it out. </span></p><p class="MsoNormal"><span style="color:#1F497D" data-mce-style="color: #1f497d;">&nbsp;</span></p><p class="MsoNormal"><span style="color:#1F497D" data-mce-style="color: #1f497d;">Protocol: unix</span></p><p class="MsoNormal"><span style="color:#1F497D" data-mce-style="color: #1f497d;">Hostname: /var/run/glusterd.socket</span></p><p class="MsoNormal"><span style="color:#1F497D" data-mce-style="color: #1f497d;">Port: 0</span></p><p class="MsoNormal"><span style="color:#1F497D" data-mce-style="color: #1f497d;">&nbsp;</span></p><p class="MsoNormal"><span style="color:#1F497D" data-mce-style="color: #1f497d;">Thanks and Regards,</span></p><p class="MsoNormal"><span style="color:#1F497D" data-mce-style="color: #1f497d;">Ram</span></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in" data-mce-style="border: none; border-top: solid #B5C4DF 1.0pt; padding: 3.0pt 0in 0in 0in;"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;" data-mce-style="font-size: 10.0pt; font-family: 'Tahoma','sans-serif';">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;" data-mce-style="font-size: 10.0pt; font-family: 'Tahoma','sans-serif';"> <a href="mailto:gluster-users-bounces@gluster.org" target="_blank" data-mce-href="mailto:gluster-users-bounces@gluster.org">gluster-users-bounces@gluster.org</a> [<a href="mailto:gluster-users-bounces@gluster.org" target="_blank" data-mce-href="mailto:gluster-users-bounces@gluster.org">mailto:gluster-users-bounces@gluster.org</a>] <b>On Behalf Of </b>Ankireddypalle Reddy<br> <b>Sent:</b> Tuesday, May 24, 2016 10:20 AM<br> <b>To:</b> <a href="mailto:gluster-users@gluster.org" target="_blank" data-mce-href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a><br> <b>Subject:</b> [Gluster-users] libgfapi using unix domain sockets</span></p></div></div><p class="MsoNormal">&nbsp;</p><p class="MsoNormal">Hi,</p><p class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I am trying to use libgfapi for connecting to a gluster &nbsp;volume using unix domain sockets. I am not able to find the socket path that should be provided while making the “glfs_set_volfile_server” function call.</p><p class="MsoNormal">&nbsp;</p><p class="MsoNormal">ps -eaf | grep gluster</p><p class="MsoNormal">root&nbsp;&nbsp;&nbsp;&nbsp; 15178 31450&nbsp; 0 09:52 pts/1&nbsp;&nbsp;&nbsp; 00:00:00 grep --color=auto gluster</p><p class="MsoNormal">root&nbsp;&nbsp;&nbsp;&nbsp; 26739 26291&nbsp; 0 May16 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:01:52 /opt/commvault/Base/IndexingService -serviceName IndexingService_cleanup -cn glustervm6 cvshost:glustervm6*glustervm6 cvsport:58600:0 cvsmyplatform:2 cvsremoteplatform:4 -vm Instance001</p><p class="MsoNormal">root&nbsp;&nbsp;&nbsp;&nbsp; 28335&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp; 0 May12 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:02:15 /usr/sbin/glusterd -p /var/run/glusterd.pid --log-level INFO</p><p class="MsoNormal">root&nbsp;&nbsp;&nbsp;&nbsp; 30047&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp; 0 May12 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:06:38 /usr/sbin/glusterfsd -s glustervm6sds --volfile-id StoragePool.glustervm6sds.ws-disk1-ws_brick -p /var/lib/glusterd/vols/StoragePool/run/glustervm6sds-ws-disk1-ws_brick.pid -S /var/run/gluster/9ed1d13b4265b95be4ed642578e7f28b.socket --brick-name /ws/disk1/ws_brick -l /var/log/glusterfs/bricks/ws-disk1-ws_brick.log --xlator-option *-posix.glusterd-uuid=3ab81d79-9a99-4822-abb2-62e76a029240 --brick-port 49152 --xlator-option StoragePool-server.listen-port=49152</p><p class="MsoNormal">root&nbsp;&nbsp;&nbsp;&nbsp; 30066&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp; 0 May12 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:13:58 /usr/sbin/glusterfsd -s glustervm6sds --volfile-id StoragePool.glustervm6sds.ws-disk2-ws_brick -p /var/lib/glusterd/vols/StoragePool/run/glustervm6sds-ws-disk2-ws_brick.pid -S /var/run/gluster/be6fc96032a95d6bf00d41049ca0356a.socket --brick-name /ws/disk2/ws_brick -l /var/log/glusterfs/bricks/ws-disk2-ws_brick.log --xlator-option *-posix.glusterd-uuid=3ab81d79-9a99-4822-abb2-62e76a029240 --brick-port 49153 --xlator-option StoragePool-server.listen-port=49153</p><p class="MsoNormal">root&nbsp;&nbsp;&nbsp;&nbsp; 30088&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp; 0 May12 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:00:21 /usr/sbin/glusterfs -s localhost --volfile-id gluster/nfs -p /var/lib/glusterd/nfs/run/nfs.pid -l /var/log/glusterfs/nfs.log -S /var/run/gluster/93db4047a97542a6457b2178ce6512d7.socket</p><p class="MsoNormal">root&nbsp;&nbsp;&nbsp;&nbsp; 30093&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp; 0 May12 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:10:24 /usr/sbin/glusterfs -s localhost --volfile-id gluster/glustershd -p /var/lib/glusterd/glustershd/run/glustershd.pid -l /var/log/glusterfs/glustershd.log -S /var/run/gluster/3d435606821403370720761863000928.socket --xlator-option *replicate*.node-uuid=3ab81d79-9a99-4822-abb2-62e76a029240</p><p class="MsoNormal">root&nbsp;&nbsp;&nbsp;&nbsp; 30186&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp; 0 May12 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:00:31 /usr/sbin/glusterfs --volfile-server=glustervm6sds --volfile-id=/StoragePool /ws/glus</p><p class="MsoNormal">&nbsp;</p><p class="MsoNormal">Thanks and Regards,</p><p class="MsoNormal">Ram</p><pre>&nbsp;</pre><pre>&nbsp;</pre><pre>***************************Legal Disclaimer***************************</pre><pre>"This communication may contain confidential and privileged material for the</pre><pre>sole use of the intended recipient. Any unauthorized review, use or distribution</pre><pre>by others is strictly prohibited. If you have received the message by mistake,</pre><pre>please advise the sender by reply email and delete the message. Thank you."</pre><pre>**********************************************************************</pre><pre>&nbsp;</pre><pre>&nbsp;</pre><pre>***************************Legal Disclaimer***************************</pre><pre>"This communication may contain confidential and privileged material for the</pre><pre>sole use of the intended recipient. Any unauthorized review, use or distribution</pre><pre>by others is strictly prohibited. If you have received the message by mistake,</pre><pre>please advise the sender by reply email and delete the message. Thank you."</pre><pre>**********************************************************************</pre></div><pre>
***************************Legal Disclaimer***************************
"This communication may contain confidential and privileged material for the
sole use of the intended recipient. Any unauthorized review, use or distribution
by others is strictly prohibited. If you have received the message by mistake,
please advise the sender by reply email and delete the message. Thank you."
**********************************************************************</pre><br>_______________________________________________<br>Gluster-users mailing list<br>Gluster-users@gluster.org<br>http://www.gluster.org/mailman/listinfo/gluster-users</blockquote><div><br></div></div></body></html>