<?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>MrBrown blob &#187; Optimization</title>
	<atom:link href="http://charles.lescampeurs.org/category/optimization/feed" rel="self" type="application/rss+xml" />
	<link>http://charles.lescampeurs.org</link>
	<description>random bits.</description>
	<lastBuildDate>Sat, 10 Apr 2010 09:02:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Optimizing Servers and Processes for Speed with ionice, nice, ulimit</title>
		<link>http://charles.lescampeurs.org/2009/10/12/optimizing-servers-and-processes-for-speed-with-ionice-nice-ulimit</link>
		<comments>http://charles.lescampeurs.org/2009/10/12/optimizing-servers-and-processes-for-speed-with-ionice-nice-ulimit#comments</comments>
		<pubDate>Mon, 12 Oct 2009 11:20:59 +0000</pubDate>
		<dc:creator>CharlyBr</dc:creator>
				<category><![CDATA[Optimization]]></category>
		<category><![CDATA[ionice]]></category>
		<category><![CDATA[nice]]></category>
		<category><![CDATA[ulimit]]></category>

		<guid isPermaLink="false">http://charles.lescampeurs.org/?p=202</guid>
		<description><![CDATA[Just found this very good article about optimizing servers.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcharles.lescampeurs.org%2F2009%2F10%2F12%2Foptimizing-servers-and-processes-for-speed-with-ionice-nice-ulimit"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcharles.lescampeurs.org%2F2009%2F10%2F12%2Foptimizing-servers-and-processes-for-speed-with-ionice-nice-ulimit&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Just found this very good article about <a title="Optimizing Servers and Processes for Speed with ionice, nice, ulimit" href="http://feeds.askapache.com/~r/apache/htaccess/~3/9U5RRoy_zhs/optimize-nice-ionice.html" target="_blank">optimizing servers</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://charles.lescampeurs.org/2009/10/12/optimizing-servers-and-processes-for-speed-with-ionice-nice-ulimit/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set the number of reserved filesystem blocks of a disk</title>
		<link>http://charles.lescampeurs.org/2009/06/30/set-the-number-of-reserved-filesystem-blocks-of-a-disk</link>
		<comments>http://charles.lescampeurs.org/2009/06/30/set-the-number-of-reserved-filesystem-blocks-of-a-disk#comments</comments>
		<pubDate>Tue, 30 Jun 2009 07:55:25 +0000</pubDate>
		<dc:creator>CharlyBr</dc:creator>
				<category><![CDATA[Optimization]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[tune2fs]]></category>

		<guid isPermaLink="false">http://charles.lescampeurs.org/?p=188</guid>
		<description><![CDATA[The default value of &#8220;Reserved block count&#8221; takes 5% of usable disk. On a large fs like 813G, it represents about 40G. These blocks are reserved to the super user to recover from situations where user processes fill up filesystems. It is absolutely safe to reduce this space to one hundred or so MB. check [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcharles.lescampeurs.org%2F2009%2F06%2F30%2Fset-the-number-of-reserved-filesystem-blocks-of-a-disk"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcharles.lescampeurs.org%2F2009%2F06%2F30%2Fset-the-number-of-reserved-filesystem-blocks-of-a-disk&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>The default value of &#8220;Reserved block count&#8221; takes 5% of usable disk. On a large fs like 813G, it represents about 40G.</p>
<p>These blocks are reserved to the super user to recover from situations where user processes fill up filesystems.<br />
It is absolutely safe to reduce this space to one hundred or so MB.</p>
<ul>
<li>check disk space of our filesystem:</li>
</ul>
<pre>$ df -h /dev/sda4
/dev/sda4             813G  418G  354G  55% /home</pre>
<p>Before the tuning, we have 354G free.</p>
<ul>
<li>check the current number of reserved blocks:</li>
</ul>
<pre>$ tune2fs -l /dev/sda4
...
Reserved block count:     10816865
...</pre>
<p>Change this number to 20000.<br />
The blocksize is 4096, 20000 blocks represent about 80MB.</p>
<pre>$ tune2fs -r20000 /dev/sda4
...
Reserved block count:     20000
...</pre>
<ul>
<li>check disk space of our filesystem:</li>
</ul>
<pre>$ df -h /dev/sda4
/dev/sda4             813G  418G  395G  52% /home</pre>
<p>We now have a gain of 40GB of free space!</p>
]]></content:encoded>
			<wfw:commentRss>http://charles.lescampeurs.org/2009/06/30/set-the-number-of-reserved-filesystem-blocks-of-a-disk/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>permanently load enable HTTP Accept Filter FreeBSD kernel module (accf_http)</title>
		<link>http://charles.lescampeurs.org/2009/03/12/permanently-load-enable-http-accept-filter-freebsd-kernel-module-accf_http</link>
		<comments>http://charles.lescampeurs.org/2009/03/12/permanently-load-enable-http-accept-filter-freebsd-kernel-module-accf_http#comments</comments>
		<pubDate>Thu, 12 Mar 2009 04:04:36 +0000</pubDate>
		<dc:creator>CharlyBr</dc:creator>
				<category><![CDATA[Optimization]]></category>
		<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://charles.lescampeurs.org/?p=171</guid>
		<description><![CDATA[While reading articles about optimization, I read about the accf_http module. The man page of the module is here, where you can read: The utility of accf_http is such that a server will not have to context switch several times before performing the initial parsing of the request. To load this module, use the following [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcharles.lescampeurs.org%2F2009%2F03%2F12%2Fpermanently-load-enable-http-accept-filter-freebsd-kernel-module-accf_http"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcharles.lescampeurs.org%2F2009%2F03%2F12%2Fpermanently-load-enable-http-accept-filter-freebsd-kernel-module-accf_http&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>While reading articles about optimization, I read about the <em>accf_http</em> module.</p>
<p>The man page of the module is <a title="accf_http man page" href="http://www.freebsd.org/cgi/man.cgi?query=accf_http" target="_blank">here</a>, where you can read:</p>
<blockquote><p><em>The utility of <strong>accf_http</strong> is such that a server will not have to context switch several times before performing the initial parsing of the request.</em></p></blockquote>
<p>To load this module, use the following command:</p>
<pre># kldload accf_http</pre>
<p>To load it at boot time, add the following line in <em>/boot/loader.conf</em>:</p>
<pre>accf_http_load="YES"</pre>
<p>To check if the module is loaded, use the command <em>kldstat</em>:</p>
<pre># kldstat
Id Refs Address    Size     Name
 1    4 0xc0400000 906518   kernel
 2    1 0xc0d07000 6a32c    acpi.ko
 3    1 0xc5e65000 2000     accf_http.ko</pre>
]]></content:encoded>
			<wfw:commentRss>http://charles.lescampeurs.org/2009/03/12/permanently-load-enable-http-accept-filter-freebsd-kernel-module-accf_http/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
