<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: select system call limitation in Linux</title>
	<atom:link href="http://www.moythreads.com/wordpress/2009/12/22/select-system-call-limitation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.moythreads.com/wordpress/2009/12/22/select-system-call-limitation/</link>
	<description>Abandon All Hope, Ye Who Read This Blog</description>
	<lastBuildDate>Mon, 09 Jan 2012 17:59:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Nandhini</title>
		<link>http://www.moythreads.com/wordpress/2009/12/22/select-system-call-limitation/comment-page-1/#comment-460</link>
		<dc:creator>Nandhini</dc:creator>
		<pubDate>Mon, 11 Apr 2011 21:53:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.moythreads.com/wordpress/?p=108#comment-460</guid>
		<description>please give full example</description>
		<content:encoded><![CDATA[<p>please give full example</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Moises Silva</title>
		<link>http://www.moythreads.com/wordpress/2009/12/22/select-system-call-limitation/comment-page-1/#comment-434</link>
		<dc:creator>Moises Silva</dc:creator>
		<pubDate>Tue, 17 Aug 2010 14:58:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.moythreads.com/wordpress/?p=108#comment-434</guid>
		<description>That&#039;s interesting to know Simal. Typical trade-off between memory and cpu usage.</description>
		<content:encoded><![CDATA[<p>That&#8217;s interesting to know Simal. Typical trade-off between memory and cpu usage.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simal Haneef</title>
		<link>http://www.moythreads.com/wordpress/2009/12/22/select-system-call-limitation/comment-page-1/#comment-433</link>
		<dc:creator>Simal Haneef</dc:creator>
		<pubDate>Tue, 17 Aug 2010 10:19:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.moythreads.com/wordpress/?p=108#comment-433</guid>
		<description>// The maximum file descriptors per process supported on HP is 60000
#define FD_SETSIZE 60000

#ifdef LINUX_OS
# include 
# undef __FD_SETSIZE
# define __FD_SETSIZE 60000 
#include 
#endif

This can be a generic code  applying on all platforms .. you can have up to 60000 FDS ... fd_set will be an array of size 60000</description>
		<content:encoded><![CDATA[<p>// The maximum file descriptors per process supported on HP is 60000<br />
#define FD_SETSIZE 60000</p>
<p>#ifdef LINUX_OS<br />
# include<br />
# undef __FD_SETSIZE<br />
# define __FD_SETSIZE 60000<br />
#include<br />
#endif</p>
<p>This can be a generic code  applying on all platforms .. you can have up to 60000 FDS &#8230; fd_set will be an array of size 60000</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Moises Silva</title>
		<link>http://www.moythreads.com/wordpress/2009/12/22/select-system-call-limitation/comment-page-1/#comment-425</link>
		<dc:creator>Moises Silva</dc:creator>
		<pubDate>Wed, 23 Jun 2010 21:17:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.moythreads.com/wordpress/?p=108#comment-425</guid>
		<description>Nice to know. I thought may be the kernel could possibly cut off the size too, bu I went and quickly looked to how the kernel handles the fd set. It&#039;s interesting to know that the kernel will allocate on the stack for small n values and then try with kmalloc if the stack memory is not enough for the user requested n value.</description>
		<content:encoded><![CDATA[<p>Nice to know. I thought may be the kernel could possibly cut off the size too, bu I went and quickly looked to how the kernel handles the fd set. It&#8217;s interesting to know that the kernel will allocate on the stack for small n values and then try with kmalloc if the stack memory is not enough for the user requested n value.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan Ringoš</title>
		<link>http://www.moythreads.com/wordpress/2009/12/22/select-system-call-limitation/comment-page-1/#comment-424</link>
		<dc:creator>Jan Ringoš</dc:creator>
		<pubDate>Mon, 21 Jun 2010 08:01:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.moythreads.com/wordpress/?p=108#comment-424</guid>
		<description>None of the FD_SET macros I have seen do any check against FD_SETSIZE. When using too small buffer for fd_set, the memory gets corrupted even before the call to &quot;select&quot;. So there is IMHO no point in checking against FD_SETSIZE in &quot;select&quot;. To be sure I looked at the sources and haven&#039;t found anything that would suggest otherwise.</description>
		<content:encoded><![CDATA[<p>None of the FD_SET macros I have seen do any check against FD_SETSIZE. When using too small buffer for fd_set, the memory gets corrupted even before the call to &#8220;select&#8221;. So there is IMHO no point in checking against FD_SETSIZE in &#8220;select&#8221;. To be sure I looked at the sources and haven&#8217;t found anything that would suggest otherwise.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Moises Silva</title>
		<link>http://www.moythreads.com/wordpress/2009/12/22/select-system-call-limitation/comment-page-1/#comment-422</link>
		<dc:creator>Moises Silva</dc:creator>
		<pubDate>Fri, 14 May 2010 15:03:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.moythreads.com/wordpress/?p=108#comment-422</guid>
		<description>That&#039;s an interesting approach. I thought at least libc recompilation with a different fd set size would be required.</description>
		<content:encoded><![CDATA[<p>That&#8217;s an interesting approach. I thought at least libc recompilation with a different fd set size would be required.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan Ringoš</title>
		<link>http://www.moythreads.com/wordpress/2009/12/22/select-system-call-limitation/comment-page-1/#comment-420</link>
		<dc:creator>Jan Ringoš</dc:creator>
		<pubDate>Thu, 13 May 2010 07:59:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.moythreads.com/wordpress/?p=108#comment-420</guid>
		<description>The solution is simple. Take the highest file descriptor value, add 8, divide by 8, allocate that many bytes of memory, memset the block to zeros, and then use the memory instead of your fd_set.</description>
		<content:encoded><![CDATA[<p>The solution is simple. Take the highest file descriptor value, add 8, divide by 8, allocate that many bytes of memory, memset the block to zeros, and then use the memory instead of your fd_set.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

