<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>/dev/root &#187; Expose</title>
	<atom:link href="http://devroot.org/tag/expose/feed/" rel="self" type="application/rss+xml" />
	<link>http://devroot.org</link>
	<description>Rants of a grumpy sysadmin living in London.</description>
	<lastBuildDate>Mon, 30 Apr 2012 11:45:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Pushing the limits of Expose</title>
		<link>http://devroot.org/2007/01/29/pushing-the-limits-of-expose/</link>
		<comments>http://devroot.org/2007/01/29/pushing-the-limits-of-expose/#comments</comments>
		<pubDate>Mon, 29 Jan 2007 06:37:55 +0000</pubDate>
		<dc:creator>lynxman</dc:creator>
				<category><![CDATA[MacOS X]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Expose]]></category>
		<category><![CDATA[Leopard]]></category>

		<guid isPermaLink="false">http://devroot.org/2007/01/29/pushing-the-limits-of-expose/</guid>
		<description><![CDATA[After this interesting article in Digg I decided out of boredom to try this up myself, here&#8217;s the result. After this I noticed that the concurrent file limit by default in Mac OS X is quite low! Only around 200 processes per user, which even if it&#8217;s more than enough for most users sometimes depending [...]]]></description>
			<content:encoded><![CDATA[<p>After <a title="Digg.com" href="http://www.digg.com/apple/Pushing_the_limits_of_Expose" target="_blank">this</a> interesting article in <a title="Digg" href="http://www.digg.com">Digg</a> I decided out of boredom to try this up myself, here&#8217;s the result.</p>
<p><a title="Photo Sharing" href="http://www.flickr.com/photos/42475794@N00/372994899/"><img src="http://farm1.static.flickr.com/134/372994899_6234e3651f.jpg" border="0" alt="expose_limits" width="500" height="313" /></a></p>
<p>After this I noticed that the concurrent file limit by default in Mac OS X is quite low! Only around 200 processes per user, which even if it&#8217;s more than enough for most users sometimes depending on what you do you need more ;)</p>
<p>Mac OS X respects the sysctl.conf kernel parameter file as most unix do, so it&#8217;s just a question of adding the following parameter there:</p>
<p><code>kern.maxproc=2048<br />
kern.maxprocperuid=512<br />
kern.sysv.shmmax=167772160<br />
kern.sysv.shmmin=1<br />
kern.sysv.shmmni=32<br />
kern.sysv.shmseg=8<br />
kern.sysv.shmall=65536</code></p>
<p>I noticed after raising the processes value that the shared memory values where low as well, so it&#8217;s a good option to change them all at the same time.</p>
<p>Of course this configuration is not really recommended for machines with less than 1Gb of RAM, so be careful!</p>
<p>Also you need to raise the limit on launchd, launchd is Apple replacement for initd and it manages the initial limits for users.</p>
<p>Just edit (or create /etc/launchd.conf) and add:</p>
<p><code>limit maxproc 1024 2048<br />
limit maxfiles 2048 4096</code></p>
]]></content:encoded>
			<wfw:commentRss>http://devroot.org/2007/01/29/pushing-the-limits-of-expose/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

