[stunnel-users] FD_SETSIZE and file ulimit

This is a discussion on [stunnel-users] FD_SETSIZE and file ulimit within the Stunnel Users forums, part of the Networking and Network Related category; --===============1112350861== Content-Type: multipart/alternative; boundary="----=_Part_23327_12363822.1162985047645" ------=_Part_23327_12363822.1162985047645 Content-Type: text/plain; charset=ISO-8859-1; ...


Go Back   Usenet Forums > Networking and Network Related > Stunnel Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-08-2006
Arunkumar Arumugam
 
Posts: n/a
Default [stunnel-users] FD_SETSIZE and file ulimit

--===============1112350861==
Content-Type: multipart/alternative;
boundary="----=_Part_23327_12363822.1162985047645"

------=_Part_23327_12363822.1162985047645
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi Guys -

I have a stunnel setup in a linux box kernel 2.4 Advanced sever release
2.1AS (pensacola) . I am trying to increase the number of file descriptors
with which stunnel could handle. So I did a ulimit -n 4096 for root and
restarted the stunnel process.

Now in the stunnel logs i see,
..... FD_SETSIZE=1024, file ulimit=4096- > 500 clients allowed.


I dont completely understand the relation between FD_SETSIZE and file
ulimit. I also read that a single stunnel connection might use around 2 or
3 file descriptors.

So what is the cap on the number of file descriptors used by stunnel. To
make it use , around 4096 file descriptors should i recompile the stunnel
again with FD_SETSIZE set to 4096.?

--
ARUN ARUMUGAM
Galbraith's Law of Human Nature: Faced with the choice between changing
ones' mind and proving that there is no need to do so, almost everybody gets
busy on the proof.

------=_Part_23327_12363822.1162985047645
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div>Hi Guys -</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp; I have a stunnel setup in a linux box kernel 2.4 Advanced sever release 2.1AS (pensacola) . I am trying to increase the number of file descriptors with which stunnel could handle.&nbsp; So I did a ulimit -n 4096&nbsp; for root and restarted the&nbsp; stunnel process.
</div>
<div>&nbsp;</div>
<div>&nbsp;Now in the stunnel logs i see, </div>
<div>&nbsp;..... FD_SETSIZE=1024, file ulimit=4096- &gt; 500 clients allowed.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>I dont completely understand the&nbsp; relation between&nbsp; FD_SETSIZE and file ulimit.&nbsp;&nbsp; I also read that a single stunnel connection might use around 2 or 3 file descriptors. </div>
<div>&nbsp;</div>
<div>So what is the cap on the number of file descriptors used by stunnel. To make it use , around 4096 file descriptors should i recompile the stunnel again with FD_SETSIZE set to 4096.?<br clear="all"><br>-- <br>ARUN ARUMUGAM
<br>Galbraith's Law of Human Nature: Faced with the choice between changing ones' mind and proving that there is no need to do so, almost everybody gets busy on the proof.<br><br>&nbsp;&nbsp;&nbsp;&nbsp; </div>

------=_Part_23327_12363822.1162985047645--

--===============1112350861==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
stunnel-users mailing list
stunnel-users@mirt.net
http://stunnel.mirt.net/mailman/listinfo/stunnel-users

--===============1112350861==--
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:45 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0