<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2658.34">
<TITLE>RE: [Beowulf] Concurrently open sockets limit on Linux system</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Mark -- more good thoughts!</FONT>
</P>

<P><FONT SIZE=2>Ulimit doesn't seem to be an issue here, and the darn thing is definitely only holding open one connection per client (according to lsof, that is).</FONT></P>

<P><FONT SIZE=2>Interestingly, /proc/sys/fs/file-nr reports something odd:</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>cat /proc/sys/fs/file-nr</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2>1605&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 65535</FONT>
</P>

<P><FONT SIZE=2>This suggests that there are 0 free allocated file descriptors.&nbsp; I'm not clear on the implications here.&nbsp; I can certainly continue to open files on this box, and make new remote connections via ssh...</FONT></P>

<P><FONT SIZE=2>Simon</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Mark Hahn [<A HREF="mailto:hahn@mcmaster.ca">mailto:hahn@mcmaster.ca</A>]</FONT>
<BR><FONT SIZE=2>Sent: 2007 Jun 17 3:20 PM</FONT>
<BR><FONT SIZE=2>To: Galton, Simon</FONT>
<BR><FONT SIZE=2>Cc: 'beowulf@beowulf.org'</FONT>
<BR><FONT SIZE=2>Subject: Re: [Beowulf] Concurrently open sockets limit on Linux system</FONT>
</P>
<BR>

<P><FONT SIZE=2>&gt; The vendor feels that they have not coded a specific limit; I'm wondering if</FONT>
</P>

<P><FONT SIZE=2>in cases like this, I tend to do things like replace the license</FONT>
<BR><FONT SIZE=2>manager by a script that first does &quot;ulimit -a&quot; before execing </FONT>
<BR><FONT SIZE=2>the actual program.&nbsp; if the license manager is being execed through</FONT>
<BR><FONT SIZE=2>su to run unprivileged, for instance, it's not always obvious whether</FONT>
<BR><FONT SIZE=2>some ulimit is in effect.&nbsp; similarly, I often cut to the chase and </FONT>
<BR><FONT SIZE=2>run such a daemon under strace, to see what it's doing that fails.</FONT>
</P>

<P><FONT SIZE=2>128-clients is such a low number that it doesn't sound like something</FONT>
<BR><FONT SIZE=2>more exotic like an ephemeral-port-range limit.&nbsp; 128 is remarkably low,</FONT>
<BR><FONT SIZE=2>though - you'd expect a multi-connection daemon might burn one fd </FONT>
<BR><FONT SIZE=2>per connection, but even a very desktop-y setting of NOFILE to 1024</FONT>
<BR><FONT SIZE=2>would imply that the daemon is keeping ~8 fd's open per connection.</FONT>
</P>

<P><FONT SIZE=2>&gt; it's file descriptors or somesuch.&nbsp; I raised the limit of FDs on the system</FONT>
<BR><FONT SIZE=2>&gt; to 65000+ and verified that the change took effect; no change to the</FONT>
</P>

<P><FONT SIZE=2>the system-wide (/proc/sys) setting is not likely to be the issue.</FONT>
</P>

<P><FONT SIZE=2>&gt; CONFIDENTIAL AND PRIVILEGED INFORMATION NOTICE</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt; This e-mail, and any attachments, may contain information that</FONT>
</P>

<P><FONT SIZE=2>are you aware that this nonsense has _no_ legal standing?</FONT>
</P>

<P><FONT SIZE=2>regards, mark hahn.</FONT>
</P>

<br><br><table bgcolor=white style="color:black"><tr><td><br>CONFIDENTIAL&nbsp;AND&nbsp;PRIVILEGED&nbsp;INFORMATION&nbsp;NOTICE<br>
<br>
This&nbsp;e-mail,&nbsp;and&nbsp;any&nbsp;attachments,&nbsp;may&nbsp;contain&nbsp;information&nbsp;that<br>
is&nbsp;confidential,&nbsp;subject&nbsp;to&nbsp;copyright,&nbsp;or&nbsp;exempt&nbsp;from&nbsp;disclosure.<br>
Any&nbsp;unauthorized&nbsp;review,&nbsp;disclosure,&nbsp;retransmission,&nbsp;<br>
dissemination&nbsp;or&nbsp;other&nbsp;use&nbsp;of&nbsp;or&nbsp;reliance&nbsp;on&nbsp;this&nbsp;information&nbsp;<br>
may&nbsp;be&nbsp;unlawful&nbsp;and&nbsp;is&nbsp;strictly&nbsp;prohibited.&nbsp;&nbsp;<br>
<br>
AVIS&nbsp;D&#39;INFORMATION&nbsp;CONFIDENTIELLE&nbsp;ET&nbsp;PRIVILÉGIÉE<br>
<br>
Le&nbsp;présent&nbsp;courriel,&nbsp;et&nbsp;toute&nbsp;pièce&nbsp;jointe,&nbsp;peut&nbsp;contenir&nbsp;de&nbsp;<br>
l&#39;information&nbsp;qui&nbsp;est&nbsp;confidentielle,&nbsp;régie&nbsp;par&nbsp;les&nbsp;droits&nbsp;<br>
d&#39;auteur,&nbsp;ou&nbsp;interdite&nbsp;de&nbsp;divulgation.&nbsp;Tout&nbsp;examen,&nbsp;<br>
divulgation,&nbsp;retransmission,&nbsp;diffusion&nbsp;ou&nbsp;autres&nbsp;utilisations&nbsp;<br>
non&nbsp;autorisées&nbsp;de&nbsp;l&#39;information&nbsp;ou&nbsp;dépendance&nbsp;non&nbsp;autorisée&nbsp;<br>
envers&nbsp;celle-ci&nbsp;peut&nbsp;être&nbsp;illégale&nbsp;et&nbsp;est&nbsp;strictement&nbsp;interdite.</td></tr></table>
!DSPAM:467616ad49171409419350!

</BODY>
</HTML>