<?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>Ascii for Breakfast</title>
	<atom:link href="http://www.xenuser.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xenuser.org</link>
	<description></description>
	<lastBuildDate>Tue, 29 Nov 2011 23:19:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Xen ported to ARM architecture</title>
		<link>http://www.xenuser.org/2011/11/30/xen-ported-to-arm-architecture/</link>
		<comments>http://www.xenuser.org/2011/11/30/xen-ported-to-arm-architecture/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 23:19:03 +0000</pubDate>
		<dc:creator>valentin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Open Source & Development]]></category>
		<category><![CDATA[Xen]]></category>
		<category><![CDATA[ARM]]></category>
		<category><![CDATA[device]]></category>
		<category><![CDATA[ported]]></category>
		<category><![CDATA[Smartphone]]></category>
		<category><![CDATA[Tablet]]></category>
		<category><![CDATA[VM]]></category>

		<guid isPermaLink="false">http://www.xenuser.org/?p=1517</guid>
		<description><![CDATA[I have some exciting news to spread: According to heise.de, Xen was successfully ported to the ARM architecture by some Citrix employees. Furthermore Samsung seems to work on the same thing, but without Xen requiring virtualization support from the hardware. This may have some huge impact on how we will work with e. g. Android in the [...]]]></description>
			<content:encoded><![CDATA[<p>I have some exciting news to spread: According to heise.de, <a href="http://www.heise.de/newsticker/meldung/Xen-Hypervisor-auf-ARM-Prozessor-portiert-1387212.html" target="_blank">Xen was successfully ported to the ARM architecture by some Citrix employees</a>. Furthermore Samsung seems to work on the same thing, but without Xen requiring virtualization support from the hardware.</p>
<p>This may have some huge impact on how we will work with e. g. Android in the future. Xen may run on Android devices (especially smartphones and tablets), and it might even be the case that you won&#8217;t boot into your &#8220;normal&#8221; Android OS when switching on your device. Instead you will boot into a virtual machine and may switch between various instances of Android. This makes multiple user profiles and even isolation of apps possible.</p>
<p>Furthermore this might lead to forging a solution which creates backups from your Android VMs. Later, you might be able to restore your Android within a few seconds in case of emergency.</p>
<p>This is definitely some great news for the community, and in the future every ARM device will profit from it. Thanks to the individuals which made this possible! <img src="http://www.xenuser.org/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1517" width="1" height="1" style="display: none;" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xenuser.org/2011/11/30/xen-ported-to-arm-architecture/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New articles published in the German Linux Magazine and Android User</title>
		<link>http://www.xenuser.org/2011/11/02/new-articles-published-in-the-german-linux-magazine-and-android-user/</link>
		<comments>http://www.xenuser.org/2011/11/02/new-articles-published-in-the-german-linux-magazine-and-android-user/#comments</comments>
		<pubDate>Wed, 02 Nov 2011 21:44:30 +0000</pubDate>
		<dc:creator>valentin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Clustering & High Availability]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source & Development]]></category>
		<category><![CDATA[Android User]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[asus transformer]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[German]]></category>
		<category><![CDATA[kvm]]></category>
		<category><![CDATA[Linux Magazin]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[preview]]></category>
		<category><![CDATA[pulsmesser]]></category>
		<category><![CDATA[standalone]]></category>

		<guid isPermaLink="false">http://www.xenuser.org/?p=1514</guid>
		<description><![CDATA[Today I have an exciting announcement to make: At this day, the German Linux Magazine 2011/12 arrives at your local (German) magazin store. It contains a title article about monitoring a KVM standalone/cluster. It war written by Thilo, Markus and me. You can read the free preview here: &#8220;Pulsmesser &#8211; Opsview-Monitoring eines KVM-Servers im Clusterbetrieb&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>Today I have an exciting announcement to make: At this day, the German Linux Magazine 2011/12 arrives at your local (German) magazin store. It contains a title article about monitoring a KVM standalone/cluster. It war written by Thilo, Markus and me. You can read the free preview here: &#8220;<a href="http://www.linux-magazin.de/Heft-Abo/Ausgaben/2011/12/KVM-HA-Monitoring" target="_blank">Pulsmesser &#8211; Opsview-Monitoring eines KVM-Servers im Clusterbetrieb</a>&#8221;</p>
<p>It is a great honor to write for such a well-known magazine, and I hope that there might be other occasions for me to contribute an article (or even a part of it) in the future.</p>
<p>In addition, the German Android User, a new magazine about Android smartphones and tablets, published a short Asus Transformer review from me. You can read the full article here: &#8220;<a href="http://www.android-user.de/Magazin/Archiv/2011/02/Im-Test-Das-Asus-Eee-Pad-Transformer-TF101" target="_blank">Im Test: Das Asus Eee Pad Transformer TF101</a>&#8221; The German Android User version is also available since today.</p>
<p>I really enjoyed working together with those very talented and skilled people.</p>
<p>Support those magazines and buy them! <img src='http://www.xenuser.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  <img src="http://www.xenuser.org/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1514" width="1" height="1" style="display: none;" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xenuser.org/2011/11/02/new-articles-published-in-the-german-linux-magazine-and-android-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XCP 1.1 released</title>
		<link>http://www.xenuser.org/2011/10/15/xcp-1-1-released/</link>
		<comments>http://www.xenuser.org/2011/10/15/xcp-1-1-released/#comments</comments>
		<pubDate>Sat, 15 Oct 2011 10:06:33 +0000</pubDate>
		<dc:creator>valentin</dc:creator>
				<category><![CDATA[Xen]]></category>
		<category><![CDATA[how to install scp]]></category>
		<category><![CDATA[how to install xen]]></category>
		<category><![CDATA[how tos]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[new release]]></category>
		<category><![CDATA[Red Hat Enterprise Linux]]></category>
		<category><![CDATA[released]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[security enhancements]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[wiki]]></category>
		<category><![CDATA[Xen Cloud Platform]]></category>
		<category><![CDATA[xen wiki]]></category>

		<guid isPermaLink="false">http://www.xenuser.org/?p=1506</guid>
		<description><![CDATA[Just a few days ago, the Xen Cloud Platform 1.1 was released. It contains various bug fixes, security enhancements and a bunch of new features. One of the probably most anticipated enhancements is the guest support for Red Hat Enterprise Linux 6. Since XCP is &#8220;the Xen version for the cloud&#8221;, better RHEL support might [...]]]></description>
			<content:encoded><![CDATA[<p>Just a few days ago, <a href="http://blog.xen.org/index.php/2011/10/12/xcp-1-1-final-release/" target="_blank">the Xen Cloud Platform 1.1 was released</a>. It contains various bug fixes, security enhancements and a bunch of new features.</p>
<p>One of the probably most anticipated enhancements is the guest support for Red Hat Enterprise Linux 6. Since  XCP is &#8220;the Xen version for the cloud&#8221;, better RHEL support might be very interesting for companies and hosters.</p>
<p>Click <a href="http://xen.org/download/xcp/index_1.1.0.html" target="_blank">here </a>to view the full list of new features.</p>
<p>You can download XCP 1.1 <a href="http://xen.org/download/xcp/index_1.1.0.html" target="_blank">here</a>.</p>
<p>If you want to try out XCP, you can either read my <a href="http://www.xenuser.org/2010/03/26/installing-the-xen-cloud-platform/" target="_blank">tutorial</a> or visit the recently updated <a href="http://wiki.xen.org/xenwiki/XCP_HowTo?highlight=(xcp)" target="_blank">Xen wiki</a>. <img src="http://www.xenuser.org/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1506" width="1" height="1" style="display: none;" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xenuser.org/2011/10/15/xcp-1-1-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comments are now open for everyone</title>
		<link>http://www.xenuser.org/2011/10/01/comments-are-now-open-for-everyone/</link>
		<comments>http://www.xenuser.org/2011/10/01/comments-are-now-open-for-everyone/#comments</comments>
		<pubDate>Sat, 01 Oct 2011 14:49:10 +0000</pubDate>
		<dc:creator>valentin</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[blog post]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[open]]></category>

		<guid isPermaLink="false">http://www.xenuser.org/?p=1504</guid>
		<description><![CDATA[Due to some requests via e-mail, I am now opening the commenting function to everyone. Please feel free to add your comment to every blog post!]]></description>
			<content:encoded><![CDATA[<p>Due to some requests via e-mail, I am now opening the commenting function to everyone. Please feel free to add your comment to every blog post! <img src="http://www.xenuser.org/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1504" width="1" height="1" style="display: none;" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xenuser.org/2011/10/01/comments-are-now-open-for-everyone/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Real-time system monitoring with Dag Wieers’ dstat</title>
		<link>http://www.xenuser.org/2011/09/24/real-time-system-monitoring-with-dag-wieers-dstat/</link>
		<comments>http://www.xenuser.org/2011/09/24/real-time-system-monitoring-with-dag-wieers-dstat/#comments</comments>
		<pubDate>Sat, 24 Sep 2011 21:50:25 +0000</pubDate>
		<dc:creator>valentin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[amount of processes]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[blog post]]></category>
		<category><![CDATA[box]]></category>
		<category><![CDATA[bwm]]></category>
		<category><![CDATA[cbm]]></category>
		<category><![CDATA[CPU]]></category>
		<category><![CDATA[Dag Wieers]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[dstat]]></category>
		<category><![CDATA[explained]]></category>
		<category><![CDATA[htop]]></category>
		<category><![CDATA[I/O]]></category>
		<category><![CDATA[iotop]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[monitoring Linux servers]]></category>
		<category><![CDATA[monitoring of debian]]></category>
		<category><![CDATA[monitoring of ubuntu]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[observing]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[RAM]]></category>
		<category><![CDATA[real-time]]></category>
		<category><![CDATA[real-time monitoring]]></category>
		<category><![CDATA[screenshots]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[top]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[usage]]></category>
		<category><![CDATA[vmstat]]></category>

		<guid isPermaLink="false">http://www.xenuser.org/?p=1478</guid>
		<description><![CDATA[Every system admin normally wants to be in full control of his box. One part of the &#8220;full control&#8221;-thing is to monitor your Linux system. You usually want to know what happens right now and how it affects the system. There are tools like iotop, cbm, htop, top, vmstat and so on, but none of [...]]]></description>
			<content:encoded><![CDATA[<p>Every system admin normally wants to be in full control of his box. One part of the &#8220;full control&#8221;-thing is to monitor your Linux system. You usually want to know what happens right now and how it affects the system. There are tools like iotop, cbm, htop, top, vmstat and so on, but none of them shows you all of the wanted information in one single place and none of them is flexible enough to allow external plugins.<br />
And this is the spot where dstat comes in.</p>
<p>Being written in 2004 and heaving heavily evolved ever since, dstat has become a replacement for most of the tools being mentioned above (at least for me). dstat is very flexible and shows you the information you want in real time, e.g. RAM and CPU usage, bandwith, I/O in total, MySQL-stats, interrupts and performance bottlenecks.</p>
<p><strong>Introduction to dstat</strong><br />
In this blog post, the latest version of dstat (0.7.2, 03/09/2010) on Debian 6 will be covered. Please notice that I will only cover the real-time monitoring features of this tool, but not the &#8220;export data to a csv-file and use it for my own charts&#8221;-stuff.</p>
<p>For the start let&#8217;s simply install and call dstat:<br />
<code>apt-get install dstat<br />
dstat</code><br />
<img src="http://www.xenuser.org/bilder/dstat/dstat.png" alt="Screenshot of dstat's default usage and output" /></p>
<p>As you can see, dstat starts with some default parameters and shows the CPU, net, disk and paging usage. Furthermore it indicates the current amount of hardware interrupts and context switches. If you already looked at <em>man dstat</em>, you might guess that calling &#8220;dstat&#8221; equals to &#8220;dstat -c -d -n -g -y&#8221;:</p>
<ul>
<li><code>-c</code> = total CPU usage</li>
<li><code>-d</code> = disk total</li>
<li><code>-n</code> = net total</li>
<li><code>-g</code> = paging system</li>
<li><code>-y</code> = system stats, such as the hw interrupts and the context switches</li>
</ul>
<p>For most ambitious sys admins, this is not enough. So let&#8217;s take a look at some of the most useful parameters:</p>
<ul>
<li><code>-l</code> = shows load statistics</li>
<li><code>-m</code> = shows the memory usage (used, buffer, cache, free)</li>
<li><code>-r</code> = displays I/O statistics,</li>
<li><code>-s</code> = shows the swap usage</li>
<li><code>-t</code> = puts the current time in the first column</li>
<li><code>--fs</code> = displays file system stats (includes amount of files and used inodes)</li>
<li><code>--nocolor</code> = sometimes very useful&#8230;</li>
<li><code>--socket</code> =  shows interesting network statistics</li>
<li><code>--tcp</code> = displays common TCP stats</li>
<li><code>--udp</code> = shows you the listen and active figures for the UDP usage</li>
</ul>
<p>The parameters mentioned above already make dstat a very powerful monitoring tool, and we haven&#8217;t covered the external plugins yet <img src='http://www.xenuser.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Have a look at /usr/share/dstat in order to view them. Some of them are:</p>
<ul>
<li><code>--disk-util</code> = shows how much the disks are busy at the moment</li>
<li><code>--freespace</code> = shows the current disk usage</li>
<li><code>--proc-count</code> = displays the number of running processes</li>
<li><code>--top-bio</code> = points to the most expensive block I/O process</li>
<li><code>--top-cpu</code> = draws the attention on the most expensive CPU process</li>
<li><code>--top-io</code> = shows the most expensive &#8220;normal&#8221; I/O process</li>
<li><code>--top-mem </code>= displays the process using the most memory</li>
</ul>
<p>Simply call &#8220;dstat &#8211;plugin name&#8221; in order to use them.<br />
Example:<br />
<code>dstat --proc-count</code><br />
<img src="http://www.xenuser.org/bilder/dstat/dstat_proc_count.png" alt="Screenshot of dstat's proc_count output - shows the current amount of running processes" /></p>
<p>There are also many MySQL and NFS plugins, simply have a look at them and try them out (do &#8220;dstat &#8211;list&#8221; to view the list of available plugins) <img src='http://www.xenuser.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  In addition there is an wifi extension which displays the signal power and noise.</p>
<p><strong>Some useful examples</strong><br />
After having looked at dstat&#8217;s potential, we are now ready to use it.</p>
<p>In the first example we want to cover everything which is related to the disk:<br />
<code>dstat -d --disk-util --freespace</code><br />
<img src="http://www.xenuser.org/bilder/dstat/dstat_disk.png" alt="Screenshot of real-time disk monitoring with dstat" /></p>
<p>In the second example we simply want to see who is eating all the memory:<br />
<code>dstat -g -l -m -s --top-mem</code><br />
<img src="http://www.xenuser.org/bilder/dstat/dstat_memory.png" alt="Screenshot of real-time memory consumption monitoring with dstat" /></p>
<p>The third example shows some stats to the CPU resource consumption:<br />
<code>dstat -c -y -l --proc-count --top-cpu</code><br />
<img src="http://www.xenuser.org/bilder/dstat/dstat_cpu.png" alt="Screenshot of real-time CPU consumption monitoring with dstat" /></p>
<p>Example number four will show some beautiful network statistics:<br />
<code>dstat -n --socket --tcp --udp</code><br />
<img src="http://www.xenuser.org/bilder/dstat/dstat_net.png" alt="Screenshot of real-time network monitoring with dstat" /></p>
<p>As you can see, there are many things you can observe with dstat. I highly recommend to have a look at dstat&#8217;s manpage and get in touch with all the other parameters.</p>
<p><strong>Writing your own dstat plugin</strong><br />
Writing a new dstat plugin should be easy. I have not tried it yet, but /usr/share/dstat/dstat_helloworld.py shows how simple this should be:<br />
<code><br />
### Author: Dag Wieers </code></p>
<p><code>class dstat_plugin(dstat):<br />
"""<br />
Example "Hello world!" output plugin for aspiring Dstat developers.<br />
"""</code></p>
<p><code>def __init__(self):<br />
self.name = 'plugin title'<br />
self.nick = ('counter',)<br />
self.vars = ('text',)<br />
self.type = 's'<br />
self.width = 12<br />
self.scale = 0</code></p>
<p><code> </code></p>
<p><code> def extract(self):<br />
self.val['text'] = 'Hello world!'<br />
</code></p>
<p><strong>Final words</strong><br />
I think Dag did great work by writing this tool really saving time by summarizing many tools into one.<br />
You can visit his website <a title="Dag Wieers' website (dstat)" href="http://dag.wieers.com/home-made/dstat/" target="_blank">here</a> and view the latest changelog for dstat <a title="Latest dstat changelogs" href="https://github.com/dagwieers/dstat/blob/master/ChangeLog" target="_blank">here</a>. <img src="http://www.xenuser.org/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1478" width="1" height="1" style="display: none;" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xenuser.org/2011/09/24/real-time-system-monitoring-with-dag-wieers-dstat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why buying a tablet computer? 20 real reasons for your conscience if you already bought one.</title>
		<link>http://www.xenuser.org/2011/09/03/why-buying-a-tablet-computer-20-real-reasons-for-your-conscience-if-you-already-bought-one/</link>
		<comments>http://www.xenuser.org/2011/09/03/why-buying-a-tablet-computer-20-real-reasons-for-your-conscience-if-you-already-bought-one/#comments</comments>
		<pubDate>Sat, 03 Sep 2011 13:17:03 +0000</pubDate>
		<dc:creator>valentin</dc:creator>
				<category><![CDATA[Tablets]]></category>
		<category><![CDATA[20 reasons]]></category>
		<category><![CDATA[asus transformer]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[mobile internet]]></category>
		<category><![CDATA[nerd]]></category>
		<category><![CDATA[netbook replacement]]></category>
		<category><![CDATA[Tablet]]></category>
		<category><![CDATA[why to buy a tablet]]></category>

		<guid isPermaLink="false">http://www.xenuser.org/?p=1462</guid>
		<description><![CDATA[There is no doubt that a tablet computer is pure luxury and only few of us have reasons why not &#8220;not to buy&#8221; such a device. For me, my Asus Transformer has become a Netbook replacement. For those who have not decided yet if to buy a tablet or not, the following list should help [...]]]></description>
			<content:encoded><![CDATA[<p>There is no doubt that a tablet computer is pure luxury and only few of us have reasons why not &#8220;not to buy&#8221; such a device.</p>
<p>For me, my Asus Transformer has become a Netbook replacement. For those who have not decided yet if to buy a tablet or not, the following list should help to determine if you really could have use for one or not (in no particular order):</p>
<p><strong>Reason #1:</strong> Because you want to have it<br />
<strong>Reason #2:</strong> Because you are a geek/nerd<br />
<strong>Reason #3:</strong> Awesome mobile Internet access<br />
<strong>Reason #4:</strong> Reading books, no matter where you are<br />
<strong>Reason #5:</strong> Mobile gaming<br />
<strong>Reason #6:</strong> Working/learning from everywhere<br />
<strong>Reason #7:</strong> SSHing to your server from everywhere<br />
<strong>Reason #8:</strong> Comfortable Netbook replacement for your couch sessions<br />
<strong>Reason #9:</strong> Something to give your little sister/brother for introducing them to computers<br />
<strong>Reason #10:</strong> Watch movies comfortably, no matter where you are<br />
<strong>Reason #11:</strong> Mobile file sharing with your friends<br />
<strong>Reason #12:</strong> Paper replacement (e.g. writing down notes everywhere you are)<br />
<strong>Reason #13:</strong> Great meeting/presentation device<br />
<strong>Reason #14:</strong> Stable operating system (iOS, Android), so (almost) no crashes<br />
<strong>Reason #15:</strong> Faster working, more productivity (if you know how to use your tablet)<br />
<strong>Reason #16:</strong> Better than most Netbooks or cheap Notebooks<br />
<strong>Reason #17:</strong> Long Battery life in comparison to Net- and Notebooks<br />
<strong>Reason #18:</strong> More Fun!<br />
<strong>Reason #19:</strong> Better photo sharing<br />
<strong>Reason #20:</strong> Camera, large screen and touch screen input interface on the go <img src="http://www.xenuser.org/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1462" width="1" height="1" style="display: none;" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xenuser.org/2011/09/03/why-buying-a-tablet-computer-20-real-reasons-for-your-conscience-if-you-already-bought-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running PHPBB3 on a high-performance monster &#8211; or: How nginx + php-fpm + php-apc + postgres will serve you well</title>
		<link>http://www.xenuser.org/2011/08/28/running-phpbb3-on-a-high-performance-monster-or-how-nginx-php-fpm-php-apc-postgres-will-serve-you-well/</link>
		<comments>http://www.xenuser.org/2011/08/28/running-phpbb3-on-a-high-performance-monster-or-how-nginx-php-fpm-php-apc-postgres-will-serve-you-well/#comments</comments>
		<pubDate>Sun, 28 Aug 2011 17:54:19 +0000</pubDate>
		<dc:creator>valentin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[apc]]></category>
		<category><![CDATA[cpu ressources]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[debian squeeze]]></category>
		<category><![CDATA[high-performance]]></category>
		<category><![CDATA[load]]></category>
		<category><![CDATA[memcache]]></category>
		<category><![CDATA[monster]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[php fast cgi]]></category>
		<category><![CDATA[php-apc]]></category>
		<category><![CDATA[php-fpm]]></category>
		<category><![CDATA[PHPBB3]]></category>
		<category><![CDATA[phppgadmin]]></category>
		<category><![CDATA[postgres]]></category>
		<category><![CDATA[vhost]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://www.xenuser.org/?p=1441</guid>
		<description><![CDATA[Running a forum for a large community can be exhausting, especially when you need to build everything from the scratch. But before you could start with setting up the sub forums or installing mods, you need to think of the hosting: Where am I going to host the forums? On a shared webhosting package? Or [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Running a forum for a large community can be exhausting, especially when you need to build everything from the scratch. But before you could start with setting up the sub forums or installing mods, you need to think of the hosting: Where am I going to host the forums? On a shared webhosting package? Or is using a VPS better? What about the costs? Which forum software should I use? What about performance when having thousands of members?</strong></p>
<p>Jesus, what mess! But there is a solution. In this tutorial I try to show you how to plan everything, make the right decisions and finally come to the conclusion that a VPS with a high-performance setup is more than enough for your purpose.</p>
<p><strong>Choosing the right hosting plan</strong><br />
Running a forum is a real challenge and can drain heavily from your financial reserves. Many people use a small shared hosting offer because of the costs, others want to rent a dedicated machine and think this is necessary because of the thousands of people who could come and visit every month.</p>
<p>But in fact running a good forum only takes a small, but powerful virtual server. A shared hosting plan often is not enough since the provider sets strict limits on performance and traffic. As soon as you come close to those limits, you either pay or get kicked out.</p>
<p>On the other side, there are the people who have some money and decided themselves for a dedicated server. This is not a bad choice, of course. But is this really necessary? Unless you expect something like 10 000 members for your forum or less, a VPS may still serve the purpose.</p>
<p>So, I highly recommend to grab a small VPS server and upgrade the server/transfer your community later (if needed). If you have enough money you might even consider renting a cloud instance which can be scaled without blowing RAM or CPU limits.</p>
<p>I personally would stick with a 13 Euro VPS (approx. 18 Dollar), which leads you to 150 Euros or less server costs per year. And there is still enough room for a cheap domain <img src='http://www.xenuser.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Which operating system?</strong><br />
You have the server? You already purchased a cool domain? Now you are ready to get started? Great! Now we should make our minds up and select a decent OS for you.</p>
<p>Of course there is Windows and Win2008 Web Edition. This operating system is expensive, but works and is supported by a large company. But on the other hand, we don&#8217;t want to spend a few hundred Euro just for licensing and stuff like this. So clearly we decide ourselves for a Unix or Linux.</p>
<p>Unix is great, especially the *BSD variants. But if you were able to do your daily work on a BSD machine, you wouldn&#8217;t read this article and have already setup your high availability cluster with a self-compiled and optimized kernel <img src='http://www.xenuser.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>So, there is only one type of operating systems left: Linux. Linux comes along with a huge variety of distributions, and obviously we need something which is stable, fast, easy to handle, supported by many software vendors and has a large community behind it. This leads us to either CentOS as a RedHat clone, Ubuntu Server or Debian (this list is based on my own experience, maybe you are missing OpenSuse or something else here..). Since we don&#8217;t want to pay for our OS, this list is very obvious for me.</p>
<p>Let&#8217;s look at the operating systems: CentOS sometimes lacks of easy handling (have you upgraded a machine from CentOS X to CentOS Y yet? Jesus, what a *****!), but profits from its big brother RHEL. Ubuntu Server depends on Canonical, but is very easy to be configured etc. Debian sometimes is too conservative, but always stable and runs on almost every hardware on the planet. Well, the differences are not always clear to see and you should select the distribution you are more familiar with. For me, this is either Ubuntu or Debian, and chose Debian. Better wait longer for updates than have new, but rarely bugged software on my system.</p>
<p><strong>Which software packages?</strong><br />
When thinking of web server software, there are many applications jumping to my mind. There are Apache, Cherokee, Lighthttpd, nginx, Tornado&#8230;. All of them are great, but Apache is not that good scalable for huge loads. Cherokee and Tornado are both very innovative, but are the wrong choice for a normal forum software (at least that is my opinion &#8211; feel free to share your own by dropping me a mail!). This leads us to decide between either Lighthttpd or nginx. Both of them do great in large setups, both of them have their flaws and both of them are already used by large companies. When it comes down to documentation, the Lighthttpd server clearly is the leader here. On the other hand, there are statistics showing that nginx is more stable (Lighthttpd had so many memory leaks issues during the last 3 years), more popular (this changed just a few months ago, I think) and consumes <a href="http://superjared.com/entry/benching-lighttpd-vs-nginx-static-files/" target="_blank">less CPU resources</a> than the other favorite.</p>
<p>So, let&#8217;s go with nginx! Furthermore I used php-fpm, which is far better than the mod_php of Apache you might be familiar with and also slightly better than spawn-fcgi, according to <a href="http://adityo.blog.binusian.org/?p=428" target="_blank">this blog entry</a>. What impressed me the most was the fact that php-fpm has the decent &#8220;process management ability  to “graceful” stop and start php workers without losing any queries.&#8221; In addition it comes with the &#8220;possibility of gradually update the configuration and binary without losing any queries.&#8221; (Source: <a href="http://adityo.blog.binusian.org/?p=428">http://adityo.blog.binusian.org/?p=428</a>) Furthermore we will use php-apc for caching the content. This helps us to keep the memory consumption of our small VPS very low.</p>
<p>Last but not least is the database software. Which one to choose? Oracle, Postgres, MySQL .. Oracle is too expensive and clearly not necessary here, which leaves Postgres and MySQL on the list. As far as I know, both database systems do great in heave-load situations. However, Postgres beats MySQL by a better handling for sub queries and joins (at least they are faster). This is why we will choose Postgres for our small VPS setup.</p>
<p><strong>Forum software &#8211; cheap, but many features plz!</strong><br />
When thinking of forums, WBB, PHPBB, vBulletin, SMF and Invision Power Board come to my mind. vBulletin and WBB are both commercial forum packages, so that&#8217;s a &#8220;No way!&#8221; from me (although both of them are great, though).  Invision Power Board and SMF are not widely spread, but have their advantages. But for me this is not enough to stand up against PHPBB3, probably one of the most successful PHP applications of all times. There are so many free mods and styles for this internet forum software and it is so simple to install and use &#8211; so, why not?</p>
<p><strong>Let&#8217;s go! Preparing the VPS</strong><br />
I assume that you installed Debian 6 64 Bit (I tested the following steps with also with a 32 Bit Debian, btw), setup your network interface, have a SSH server and DNS + the other basic stuff works. You are now logged in, located at /root/ and ready to go.</p>
<p>At first we install some useful packages (since I wrote this tutorial for my ego I only install software which I find useful <img src='http://www.xenuser.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ):</p>
<pre class="qoate-code">
apt-get update &amp;&amp; apt-get upgrade
apt-get install htop cbm atop dstat dvtm ssh vim bzip2 unzip mc vim lsof
</pre>
<p>Now let&#8217;s extend your sources.list in order to gain access to more packages:</p>
<pre class="qoate-code">
echo deb http://packages.dotdeb.org stable all &gt;&gt; /etc/apt/sources.list
wget http://www.dotdeb.org/dotdeb.gpg
cat dotdeb.gpg | apt-key add -
rm dotdeb.gpg
apt-get update
</pre>
<p><strong>Installing nginx and co</strong><br />
Now let&#8217;s get started with the fancy stuff:</p>
<pre class="qoate-code">
apt-get install nginx php5-fpm php5-pgsql php5-gd php5-curl php-apc postgresql imagemagick
</pre>
<p><strong>Configuring nginx and our vhost</strong><br />
Now open the configuration file of nginx:</p>
<pre class="qoate-code">
vim /etc/nginx/sites-available/www.domain.tld
</pre>
<p>Edit this file until it looks like the one below. Please remember to replace www.domain.tld with your own domain name:</p>
<pre class="qoate-code">
server {
listen 80;
server_name domain.tld www.domain.tld;

access_log /var/log/nginx/domain.access_log;
error_log /var/log/nginx/domain.error_log;

root /var/www/www.domain.tld;
index index.php index.htm index.html;

location ~ .php$ {
fastcgi_pass   127.0.0.1:9000;
fastcgi_index  index.php;
fastcgi_param  SCRIPT_FILENAME /var/www/www.domain.tld$fastcgi_script_name;
include fastcgi_params;
try_files $uri =404;
}
}
</pre>
<p>Attention: Don&#8217;t forget to add &#8220;try_files $uri =404;&#8221;! This one closes a security vulnerability which lets attackers parse normal image and text files as PHP scripts.</p>
<p>Ok, let&#8217;s continue by doing the necessary stuff on the filesystem layer:</p>
<pre class="qoate-code">
ln -s /etc/nginx/sites-available/www.domain.tld /etc/nginx/sites-enabled/www.domain.tld
mkdir -p /var/www/www.domain.tld
</pre>
<p><strong>Configure php-fpm to work with Postgres</strong><br />
We need to edit the right php.ini in order to let PHP talk with Postgres and vice versa:</p>
<pre class="qoate-code">
vim /etc/php5/fpm/php.ini
</pre>
<p>Search the file for [Postgres] and add a new line directly below:</p>
<pre class="qoate-code">
extension=pgsql.so
</pre>
<p>Now restart php-fpm and start nginx itself:</p>
<pre class="qoate-code">
/etc/init.d/php5-fpm restart
/etc/init.d/nginx start
</pre>
<p><strong>Downloading PHPBB3</strong><br />
Now let us take care of the forum itself:</p>
<pre class="qoate-code">
cd /var/www/www.domain.tld
wget http://www.phpbb.com/files/release/phpBB-3.0.9.tar.bz2
tar jxf phpBB-3.0.9.tar.bz2
rm phpBB-3.0.9.tar.bz2
mv phpBB3/* . &amp;&amp; mv phpBB3/.htaccess .
rmdir phpBB3/
</pre>
<p><strong>Prepare Postgres for PHPBB3</strong><br />
Before installing PHPBB3 we should prepare Postgres:</p>
<pre class="qoate-code">
su postgres -c psql
\connect template1
alter user postgres with password 'yourSecretPasswordHere';
CREATE USER "www-data" WITH PASSWORD 'yourOtherSecretPasswordHere';
CREATE DATABASE phpbb3;
GRANT ALL PRIVILEGES ON DATABASE phpbb3 TO "www-data";
ALTER DATABASE phpbb3 OWNER TO "www-data";
\q
/etc/init.d/postgresql restart
</pre>
<p><strong>Optional: Installing phppgadmin</strong><br />
If you have used MySQL before, there might be a high chance that you already know PHPMyAdmin, the great web-based tool for managing MySQL databases. There is a direct equivalent for Postgres, although it lacks some features of its bigger brother:</p>
<pre class="qoate-code">
mkdir /var/www/www.domain.tld/db_admin
cd db_admin
wget http://downloads.sourceforge.net/phppgadmin/phpPgAdmin-5.0.2.tar.bz2?download
tar jxf *
rm phpPgAdmin-5.0.2.tar.bz2\?download
mv phpPgAdmin-5.0.2/* .
rmdir phpPgAdmin-5.0.2/
</pre>
<p>If you want to you can now open up your browser, visit www.domain.tld/db_admin, login with the www-data user and view your two databases. From now on, you can manage all the database stuff with this web application. Secure the db_admin directory with chmod 000 or use a htpasswd file in order to protect it from unauthorized access.</p>
<p><strong>Installing PHPBB3 &#8211; finaly!</strong></p>
<pre class="qoate-code">
cd /var/www/www.domain.tld
chmod 777 config.php
</pre>
<p>Now open your browser, visit www.domain.tld and follow the installation instructions. Make sure to perform the following actions when you completed all the steps from the PHPBB3 wizard:</p>
<pre class="qoate-code">
rm /var/www/www.domain.tld/install -r
chmod 640 config.php
</pre>
<p>Now go and browse your awesome new forums on your high-performance monster! <img src='http://www.xenuser.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Bonus: View apc statistics</strong><br />
If you want to check if apc is really working you could..</p>
<pre class="qoate-code">
gunzip /usr/share/doc/php-apc/apc.php.gz
cp /usr/share/doc/php-apc/apc.php /var/www/www.domain.tld/db_admin/
</pre>
<p>Now call www.domain.tld/db_admin/apc.php with your browser and view the statistics <img src='http://www.xenuser.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>That&#8217;s it!</strong><br />
That&#8217;s it, we made it! We just installed a high-performing monster in a matter of minutes by using free open source software. And it was so easy!<br />
Of course we missed a view things, such as setting up the rewriting stuff for PHPBB3 and do some performance tuning. However, you are now ready to go and have fun with your low-budget setup.</p>
<p>PS: The missing stuff will be added in future tutorials. So be sure to visit this blog from time to time <img src='http://www.xenuser.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  <img src="http://www.xenuser.org/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1441" width="1" height="1" style="display: none;" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xenuser.org/2011/08/28/running-phpbb3-on-a-high-performance-monster-or-how-nginx-php-fpm-php-apc-postgres-will-serve-you-well/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Why Star Wars: The old Republic will be released soon &#8211; and not be a flop</title>
		<link>http://www.xenuser.org/2011/07/12/why-star-wars-the-old-republic-will-be-released-soon-and-not-be-a-flop/</link>
		<comments>http://www.xenuser.org/2011/07/12/why-star-wars-the-old-republic-will-be-released-soon-and-not-be-a-flop/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 21:25:49 +0000</pubDate>
		<dc:creator>valentin</dc:creator>
				<category><![CDATA[Gaming]]></category>
		<category><![CDATA[alpha]]></category>
		<category><![CDATA[Beta]]></category>
		<category><![CDATA[betacake]]></category>
		<category><![CDATA[Bioware]]></category>
		<category><![CDATA[builds]]></category>
		<category><![CDATA[comment]]></category>
		<category><![CDATA[game testing]]></category>
		<category><![CDATA[hit]]></category>
		<category><![CDATA[leak]]></category>
		<category><![CDATA[leakerz]]></category>
		<category><![CDATA[lucas arts]]></category>
		<category><![CDATA[materials]]></category>
		<category><![CDATA[no flop]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[screenshots]]></category>
		<category><![CDATA[Star Wars: The old Republic]]></category>
		<category><![CDATA[statement]]></category>
		<category><![CDATA[SW:ToR]]></category>
		<category><![CDATA[trend]]></category>
		<category><![CDATA[videos]]></category>

		<guid isPermaLink="false">http://www.xenuser.org/?p=1420</guid>
		<description><![CDATA[A commitment to Star Wars: The old Republic (ToR) Since more than a year, one of the most anticipated games in the industry is Star Wars: The old Republic. &#8220;ToR is KoToR 3, 4 and 5&#8243;, Bioware claims. This sentence and other, surely provocative statements, rise the hype around the game. Until today nobody knows [...]]]></description>
			<content:encoded><![CDATA[<p><strong>A commitment to Star Wars: The old Republic (ToR)</strong></p>
<p>Since more than a year, one of the most anticipated games in the industry is Star Wars: The old Republic. &#8220;ToR is KoToR 3, 4 and 5&#8243;, Bioware claims. This sentence and other, surely provocative statements, rise the hype around the game.</p>
<p>Until today nobody knows the exact release date. Beta testers &#8220;have a feeling&#8221; that it will be on October the 4th 2011, others say that it will be christmas, others say it will be during spring next year. For me, this is pure speculation, but the truth seems to be that the game is in a really good state now. Today there are several game testing groups, playing different builds of the game. We haven&#8217;t seen a decent Fan Friday update for weeks now and no new information were released to the public for a while now.</p>
<p>My opinion? I think that the game will be going live soon. According to Bioware, there won&#8217;t be an open beta, like RIFT had just 4 months ago. Beta testers are saying that the game is in a really good state, but still needs adjustments and some love. The spell animations are not the best (like in WoW, e.g., unspectacular, but full of love) and some planets are not playable fully &#8211; but that&#8217;s about it. No other issues were brought up during discussions in various boards or in the comment sections of blogs publishing leaked SW:ToR material.</p>
<p>As a true Star Wars fan, I could not stop myself watching most of the beta videos which were released by the testers. It is remarkable that the graphics are quite good when you consider that the textures and models are all built in in a low resolution. You can see that when zooming into the pictures: It seems to be the case that the amount of polygons is very limited currently. This is properly the case because the beta wouldn&#8217;t be playable with &#8220;ultra&#8221; graphics &#8211; I guess.</p>
<p>However, a few months ago I feared that SW:ToR will become a flop and won&#8217;t draw enough attention in order to be the next WoW. But the fact that this new MMO will run on every machine which is capable of running WoW makes me hope for a hit and a for it to become a very time-consuming activity during my spare time (while I am not doing research for vulnerabilities or Linux stuff).</p>
<p>I think there is no better time to release such a game. As a matter of fact, WoW achieved something spectacular: World of Warcraft was able to &#8220;collect&#8221; millions of players worldwide from many online games and brought them all together. People with different backgrounds played together, raided, PvEed and organized themselves. Later on, many players left for masochistic reasons like Aion or Lord of the Rings online and therefore were spread all over the gaming world. True, WoW still has constantly more than 10 million active players, but most of them are playing other games, too.</p>
<p>When RIFT was released this spring, there was hope for a new hit. Unfortunately this game lacked love in animations, character design and the raid content. PvP is not that bad, but still boring since world PvP doesn&#8217;t seem to happen at all. In addition, the game had very strange graphics demands.. I failed to understand why I was able to play Star Craft 2 in a full HD resolution with high-ultra settings while RIFT only ran on low details. One month after release, the hype around RIFT was blown away, leaving only a dying community and a disappointed community of around 1-2 million players (well, potential players).</p>
<p>Now, with RIFT and WoW failing, with Guild Wars 2 not being released yet or too late, with Star Wars Galaxy being shut down soon, Bioware and Lucas Arts both got the chance to achieve something which was missing since 2004: Creating a game which attracts the masses for a longer period. Star Wars: The old Republic &#8211; we are ready for you. Now it&#8217;s your turn! <img src='http://www.xenuser.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  <img src="http://www.xenuser.org/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1420" width="1" height="1" style="display: none;" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xenuser.org/2011/07/12/why-star-wars-the-old-republic-will-be-released-soon-and-not-be-a-flop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Understanding Linux RAM Usage</title>
		<link>http://www.xenuser.org/2011/06/12/understanding-linux-ram-usage/</link>
		<comments>http://www.xenuser.org/2011/06/12/understanding-linux-ram-usage/#comments</comments>
		<pubDate>Sun, 12 Jun 2011 11:08:03 +0000</pubDate>
		<dc:creator>valentin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux memory usage]]></category>
		<category><![CDATA[notes]]></category>
		<category><![CDATA[RAM management]]></category>
		<category><![CDATA[understading linux ram management]]></category>

		<guid isPermaLink="false">http://www.xenuser.org/?p=1415</guid>
		<description><![CDATA[I am still in the process of learning how RAM management works inside Linux environments, so I read alot about that topic and make some notes. Today I read an interesting blog post about how RAM is used in Linux, furthermore the comments on that article really gave me some additional information about that topic. [...]]]></description>
			<content:encoded><![CDATA[<p>I am still in the process of learning how RAM management works inside Linux environments, so I read alot about that topic and make some notes.</p>
<p>Today I read an interesting blog post about how RAM is used in Linux, furthermore the comments on that article really gave me some additional information about that topic.</p>
<p>For those still learning, just like me, my notes might be somehow interesting. Please feel free to mail me if you find any wrong information.</p>
<pre class="qoate-code">
Understanding Linux RAM Usage

cat /proc/&lt;pid&gt;/smaps or calling pmaps
cat /proc/&lt;pid&gt;/pagemap (binary)
cat /proc/&lt;pid&gt;/statm: memory status information
cat /proc/&lt;pid&gt;/status: same as above, but human readable
cat /proc/&lt;pid&gt;stack
cat /proc/slabinfo
cat /proc/
$ free | awk '/^\-\/\+/ {print $3 }'

Linux-Tool ps and shared libraries
==========================================================
- Two possible outputs regarding RAM:
  * VSZ = Virtual Set Size
  * RSS = Resident Set Size
- Does not always show real RAM usage
- Instead, ps shows how much real memory each process would take up
  if it were the only process running
- The reason for this: shared libraries and how Linux uses them
- Example: KDE text editing software will use several shared libraries,
  e.g. X libraries and general generic system libraries, such as libc
  due to this sharing, Linux is using a trick: it loads a single copy
  of the shared libraries into memory and use that one copy for every
  program that references it
  so ps shows shared memory usage + process usage
  this means, that the one time RAM consumption of a single shared lib
  will be displayed in many processes as "consumpted" ram, but in fact
  the value gets only consumed one time
  so the real one time consumption of a shared lib is reported several times,
  which is of course wrong
- ps -lyu &lt;user&gt; shows in the SZ column the writable/private data, like pmap

Understanding the output of pmap
==========================================================
- Each shared library is listed twice
  * a) one time for its code segment, modus: r-x--
  * b) one time for its data segment, modus: rw---
- When a shared lib is listed three times, e.g. with r----,
   is it protected memory space?
- segments with large memory consumptions are usually
  the code segments of the included shared libs
- those code segments can be shared between processes
- if you factor out all the parts that are shared between
  processes, you end up with the "writeable/private" total,
  which is showed at the bottom of the output
- so like 2 MB is more realisting than like 24
  24 = with shared libs
  2  = without, so the "real" consumption
- so 2 mb are more realistic than what ps shows
- rwxps = read write execute private shared
- column major_minor (major device number, minor number, has to do
  with drivers)
- colum afterwards: inode number of the file from which the
  memory is being mapped
- anon = anonymous memory = private memory mapped to
  the process = data segment??

misc
==========================================================
- each of those shared libraries take up a number of virtual to
  physical page mappings, these, unlike memory, are a very
  precious resource
- consequence: try running something like KDE on non x86 hardware that
  doesn't have huge translation tables; on mibs hardware, he has seen
  apps spend over 30 percent of their time updating tlb entries
- same principal of shared lib memory consumption applies to executables
  as well; e.g. if you have several xterms running, you will only have
  one copy of the xterm executable program text in memory, which will be
  shared between all instances, but each instance ofc has its own stack and
  heap
- shared libs share backing store as long as the code is not modified,
  but if the code segment needs to be modified as it's loaded, it will
  requre its own (probably anonymous memory) swap pages

Fragmentation
==========================================================
- an app can still end up eating memory that it isn't actually using
- e.g. the app needs to make a number of large allocations for some
  temporary working space for some operation; it also needs to allocate some
  book keeping information (undo history, e.g.) and other bits of
  info to store/utilize the computed data
  when ram is allocated, the heap grows
  heap can only shrink by truncation
  this only happens when the program can  only release memory back to the
  OS by shrinking the heap, not by cutting it into pieces
  so if the app makes many allocations, and frees only some of them,
  the heap may end up like UUUXXXXXXXXXXXXXXXXXXXXXUU
  where X is free and U is used memory
  so fragmentation occurs
  that's four pages of used and 12 pages of unused memory that can't be freed
  when new allocations are made, it can use all of that unused heap, but if
  it isn't making any more allocations anytime soon, it'll appear to be
  gobbling up memory, which it is.

  with linux -&gt; no problem, unused pages will be swapped out to disk so you
  won't run out of memory
  -&gt; bad performance
  and when the app needs to reallocate memory it'll swap back in a bunch of
  gargabe/unused data

  this phenomen is one of the many reasons why good modern garbage collectors
  are far more efficient than manual memory management with
  malloc/free (c functions)
  a compacting collector will completely negate the above problem
- the linux allocator manages large objects with mmap, which can free
  memory chunks no matter where they are in the heap
- garbage collection requires more space and always swaps far more than
  malloc; why? because it has to touch every page periodically, including
  those swapped to disk, while it looks for garbage
- lsof shows memory/VFS ?

sources:

http://virtualthreads.blogspot.com/2006/02/understanding-memory-usage-on-linux.html
</pre>
<p> <img src="http://www.xenuser.org/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1415" width="1" height="1" style="display: none;" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xenuser.org/2011/06/12/understanding-linux-ram-usage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The future of the WHOIS protocol</title>
		<link>http://www.xenuser.org/2011/06/11/the-future-of-the-whois-protocol/</link>
		<comments>http://www.xenuser.org/2011/06/11/the-future-of-the-whois-protocol/#comments</comments>
		<pubDate>Sat, 11 Jun 2011 10:39:57 +0000</pubDate>
		<dc:creator>valentin</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[domain registrar]]></category>
		<category><![CDATA[future of the WHOIS protocol]]></category>
		<category><![CDATA[ICANN]]></category>
		<category><![CDATA[WHOIS]]></category>
		<category><![CDATA[WHOIS database]]></category>
		<category><![CDATA[WHOIS entry]]></category>
		<category><![CDATA[WHOIS service]]></category>

		<guid isPermaLink="false">http://www.xenuser.org/?p=1405</guid>
		<description><![CDATA[The ICANN has recently released a sheet of paper which calls for a discussion about the future of the WHOIS protocol. People being very active in this discussion claim that the WHOIS protocol is too old and does not meet modern requirements. Some examples are that in many cases the data provided in the WHOIS [...]]]></description>
			<content:encoded><![CDATA[<p>The ICANN has <a href="http://www.icann.org/en/reviews/affirmation/whois-rt-discussion-paper-09jun11-en.pdf" target="_blank">recently released a sheet of paper</a> which calls for a discussion about the future of the WHOIS protocol. People being very active in this discussion claim that the WHOIS protocol is too old and does not meet modern requirements. Some examples are that in many cases the data provided in the WHOIS database is outdated or is in conflict with local data protection laws.</p>
<p>The goal of the discussion is to improve the protocol and to involve all people who have an interest in the WHOIS service.<br />
Well, I also do have an opinion here.</p>
<p>But let&#8217;s first call the WHOIS database entry for my domain, so we have a common ground for four own little discussion (entry was shortened):</p>
<pre class="qoate-code">
Domain ID:
Domain Name:XENUSER.ORG
Created On:06-Feb-2010 15:56:01 UTC
Last Updated On:07-Feb-2011 01:26:14 UTC
Expiration Date:06-Feb-2012 15:56:01 UTC
Sponsoring Registrar:Key-Systems GmbH (R51-LROR)
Status:OK
Registrant ID:
Registrant Name:Valentin Hoebel
Registrant Street1:
Registrant City:
Registrant Postal Code:
Registrant Country:DE
Registrant Phone:
Registrant Email:valentin@xenuser.org
Admin ID:
Admin Name:Valentin Hoebel
DNSSEC:Unsigned
</pre>
<p>As you can see, my personal data (street, phone number etc.) is published. Everyone being able to use the WHOIS service is able to view this data and to use it (e.g. for automatized processing, abusing it and so on).</p>
<p>In my eyes, this is neither fair to the domain owner, nor it has a signification for something since the data maybe outdated or simply invalid. What happens if I provide my registrar with a wrong name and someone else is in trouble when I cause it?</p>
<p>Well, many local authorities use the WHOIS information for prosecuting people having illegal content on their website, others use this data to gain more spam addresses.</p>
<p>The ICANN asked for participation in the discussion about WHOIS. My contribution would be to remove all personal data from the published WHOIS entry. The reasons for this proposal are that abusing the data is possible, and you may even provide your domain registrar with wrong information or you are also often able to use a proxy service.</p>
<p><a href="http://xenuser.org/documents/mails/mail_to_icann_regarding_WHOIS.txt" target="_blank">For clarification please see my mail to the ICANN, regarding the WHOIS debate.</a> <img src="http://www.xenuser.org/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1405" width="1" height="1" style="display: none;" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xenuser.org/2011/06/11/the-future-of-the-whois-protocol/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

