<?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>It&#039;s a kind of Mag&#039;ic</title>
	<atom:link href="http://mag.entropy.be/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://mag.entropy.be/blog</link>
	<description>by Rafał Kwaśny</description>
	<lastBuildDate>Mon, 01 Nov 2010 22:51:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Running Half Life dedicated server on 64bit linux</title>
		<link>http://mag.entropy.be/blog/2010/05/28/running-half-life-dedicated-server-on-64bit-linux/</link>
		<comments>http://mag.entropy.be/blog/2010/05/28/running-half-life-dedicated-server-on-64bit-linux/#comments</comments>
		<pubDate>Fri, 28 May 2010 11:51:27 +0000</pubDate>
		<dc:creator>mag</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mag.entropy.be/blog/?p=29</guid>
		<description><![CDATA[If while installing Counter Strike Source server you get en error like: unable to execute ./hldsupdatetool.bin: No such file or directory and strace also shows something strange: mag@entropy:~/cs$ strace ./hldsupdatetool.bin execve(&#8220;./hldsupdatetool.bin&#8221;, ["./hldsupdatetool.bin"], [/* 22 vars */]) = -1 ENOENT (No such file or directory) dup(2) = 3 fcntl(3, F_GETFL) = 0&#215;8002 (flags O_RDWR&#124;O_LARGEFILE) fstat(3, {st_mode=S_IFCHR&#124;0620, [...]]]></description>
			<content:encoded><![CDATA[<p>If while installing Counter Strike Source server you get en error like:</p>
<p>unable to execute ./hldsupdatetool.bin: No such file or directory</p>
<p>and strace also shows something strange:</p>
<p>mag@entropy:~/cs$ strace ./hldsupdatetool.bin<br />
execve(&#8220;./hldsupdatetool.bin&#8221;, ["./hldsupdatetool.bin"], [/* 22 vars */]) = -1 ENOENT (No such file or directory)<br />
dup(2)                                  = 3<br />
fcntl(3, F_GETFL)                       = 0&#215;8002 (flags O_RDWR|O_LARGEFILE)<br />
fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), &#8230;}) = 0<br />
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f25d9a22000<br />
lseek(3, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)<br />
write(3, &#8220;strace: exec: No such file or di&#8221;&#8230;, 40strace: exec: No such file or directory<br />
) = 40<br />
close(3)                                = 0<br />
munmap(0x7f25d9a22000, 4096)            = 0<br />
exit_group(1)                           = ?</p>
<p>Just install 32bit glibc:<br />
apt-get install libc6-i386</p>
<p>Execve has a strange behaviour and returns ENOENT when it cannot find a system library, this leeds to misleading error.</p>
]]></content:encoded>
			<wfw:commentRss>http://mag.entropy.be/blog/2010/05/28/running-half-life-dedicated-server-on-64bit-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>KVM performance &#8220;qcow2&#8243; vs &#8220;raw&#8221;, &#8220;ide&#8221; vs &#8220;virtio&#8221;</title>
		<link>http://mag.entropy.be/blog/2010/03/20/kvm-performance-qcow2-vs-raw-ide-vs-virtio/</link>
		<comments>http://mag.entropy.be/blog/2010/03/20/kvm-performance-qcow2-vs-raw-ide-vs-virtio/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 12:10:48 +0000</pubDate>
		<dc:creator>mag</dc:creator>
				<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://mag.entropy.be/blog/?p=14</guid>
		<description><![CDATA[I just got a new server for private use and needed to put some virtual machines, I decided to go with KVM as it seems it will be supported longer than XEN Of course regardless of virtualization platform the decision has to be made &#8211; how to store Virtual Disks? KVM wiki suggests that qcow2 [...]]]></description>
			<content:encoded><![CDATA[<p>I just got a new server for private use and needed to put some virtual machines, I decided to go with KVM as it seems it will be supported longer than XEN</p>
<p>Of course regardless of virtualization platform the decision has to be made &#8211; how to store Virtual Disks?</p>
<p><a href="http://www.linux-kvm.org/page/Qcow2">KVM wiki</a>  suggests that qcow2 is fast enough, is it really?</p>
<p>Some benchmarks of clean install install of Ubuntu 9.10 with KVM, Virtual Disk stored in qcow2 format:</p>
<p>qcow2+ide</p>
<pre>
Version 1.03cÂ Â Â Â Â Â  ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
MachineÂ Â Â Â Â Â Â  Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CPÂ  /sec %CP
entropy.beÂ Â Â Â Â Â  4G 38684Â  43 53081Â Â  9 64187Â  13 55412Â  89 360629Â  43Â  5278Â  12
</pre>
<p>qcow2+virtio</p>
<pre>
Version 1.03cÂ Â Â Â Â Â  ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
MachineÂ Â Â Â Â Â Â  Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CPÂ  /sec %CP
entropy.beÂ Â Â Â Â Â  4G 58859Â  73 76112Â  13 74583Â  14 52058Â  91 546065Â  44  5725  32
</pre>
<p>raw(file)+ide</p>
<pre>
Version 1.03c       ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
entropy.be       4G 74111  83 86947  15 66292  14 50945  89 347763  41  5892   7
</pre>
<p>raw(file)+virtio:</p>
<pre>
Version 1.03c       ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
entropy.be       4G 74607  90 86478  16 20930   7 51069  88 658254  48  8676  64
</pre>
<p>as a comparison, native I/O on host filesystem:</p>
<pre>
Version 1.03c       ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
serwer3.itcoms. 16G 75336  82 89196  14 34498   5 46891  79 99439   5 421.1   1
</pre>
<p>It seems qcow2 perfomance in block input and output is still slightly worse than raw image. Also virtio is faster than ide for qcow2.</p>
<p>All benchmarks were run using `bonnie++ -u root -d /home` using kernel 2.6.31-20-server #58-Ubuntu SMP Fri Mar 12 05:40:05 UTC 2010 x86_64 GNU/Linux</p>
]]></content:encoded>
			<wfw:commentRss>http://mag.entropy.be/blog/2010/03/20/kvm-performance-qcow2-vs-raw-ide-vs-virtio/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>How badly debian/ubunutu openssl is fscked up?</title>
		<link>http://mag.entropy.be/blog/2008/05/13/how-badly-debianubunutu-openssl-is-fscked-up/</link>
		<comments>http://mag.entropy.be/blog/2008/05/13/how-badly-debianubunutu-openssl-is-fscked-up/#comments</comments>
		<pubDate>Tue, 13 May 2008 21:03:04 +0000</pubDate>
		<dc:creator>mag</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://mag.entropy.be/blog/2008/05/13/how-badly-debianubunutu-openssl-is-fscked-up/</guid>
		<description><![CDATA[Executive Summary: BADLY! At first I want to admit that this test may be silly but is fast and simple All test were done on my Lenovo Z61p running recent Fedora9 &#8211; debian openssl was compiled from source So, how to test what commenting out one line in openssl code changes? Let&#8217;s generate some random [...]]]></description>
			<content:encoded><![CDATA[<p>Executive Summary: <strong>BADLY!</strong><br />
<br />
At first I want to admit that this test may be silly but is fast and simple<br />
All test were done on my Lenovo Z61p running recent Fedora9 &#8211; debian openssl was compiled from source</p>
<p>So, how to test what commenting out one line in openssl code changes?</p>
<p>Let&#8217;s generate some random numbers using openssl. Quick, dirty and lame solution:   </p>
<pre>
$ for i in `seq 100000`; do ./openssl rand -base64 40 &gt;&gt; test; done  
</pre>
<p>and now quick check for randomness of this data:   </p>
<pre>
$ wc -l test; cat test | sort| uniq -c | sort | tail
</pre>
<p>
<strong>Results:</strong>   </p>
<p><strong>Fedora openssl:</strong></p>
<pre>
mag@viper:~$ wc -l test

100000 test   

mag@viper:~$ wc -l test; cat test | sort| uniq -c | sort | tail

100000 test

      1 ZzvfJF8Sh8s59kU+/hNoK8F4FfbyIoG7qY9NObjd24PwvMzm6CHuzw==

      1 ZZVN89z8LONs8nbk49enpEYbm47iZF8bFc0kvFwyEr0MzLuzOiQqQA==

      1 zZwbc+wuPBMCdR6gEXjkkaxrFF+Capaw8INv0DPhi8paqcTbvxX86w==

      1 ZZx1dP0xMsceZl9ozVeUvQgEP9AmE/56a+CgdIO8kCCDI6DdDTrxeA==

      1 zzxnavFvysTxniMWv+a0Rxyu1XtCZ2UZN5pVAB3b5FAtIZx+5EttqA==

      1 ZzyKbqW87iekJtK9niDu0FwKnR5ENXnKdKJFcCbNAp2qqEw9yrTn5A==

      1 zZZ9K7L4n7qKH5E5GYDaIZLchQvSn7e/g1FPL8SmZF+NW+1i3H3XRw==

      1 Zz/z9kwIDywXrxtrTNmWy9gFGGcass9k3g8fe8DTae3lCiAukILUtg==

      1 +zZ/ZKKqv5YQagg3HSpp2hLrFSuPIRRg0nDOEwZ2hf935Gk6zS7TFA==

      1 zZZwoogf3Ib5Xg9WMnMU/4IP2mbbvXhuecSnofxqscLg1QpA4R6N3g==
</pre>
<p>
Everything looks fine all seeds are unique, now debian openssl:  </p>
<p><strong>Debian openssl:</strong>   </p>
<pre>
mag@viper:~/tmp/openssl-0.9.8g/apps$ wc -l test

100000 test   

mag@viper:~/tmp/openssl-0.9.8g/apps$ wc -l test; cat test | sort| uniq -c | sort | tail

100000 test

      4 zYgla7UVURkIGH9Bol2otXKSTYfr/NBIVZa/68FKeidHgbtSAIVNog==

      4 zYJLIAIxG8AMtrf6smNMsdZFBADCQPyuZHQTmGFWnJg6PwESLL2e8g==

      4 ZyKePqCM93yGcYkNxlHJ0/y7ZOhAEtXJyyi4H6JVzUcRpe+2zhJeZg==

      4 zyuCidG1FPJm8Ut4CshJvI5A+g3SDvmFZ4lIN+ESUCA/m8DU1aJ5ww==

      4 ZZbFf3M7R0Pl+VPkJD9TJzsqSVbgCxydAJVzS8f752pYfXCyzVNP1g==

      4 zzrbuvwbw8XN61Bygi8KEKMUI7qOVZmQmglJYua/Zp7dDFH/Z45mJQ==

      4 zztQ5wdvkWiwCIEJpkSvyqkrVgb32UccogSmZwNRlLH7ieIZvXU+/A==

      4 zZUGNwhNUFHCdkPnHFYW0ME1+MlFwSo3eb1rLOwjDfL5FyHHqvFQ4g==

      4 zZVYlHlCIH4XHveWvvWgES2AwHuhy3aiIQk2JvyE7T3VKdNCWZU9QA==

      4 zzZPx/Z5iE29WkCpTVKunmo102m4p3GYHzXZ6B/TRgKSUFkJScGVqA==
</pre>
<p>Quick interpretation of results &#8211; first column is count of repeating seed. So in 100000 tries debian openssl random() generated 4 times same 40 byte string. <br />
This was used for openssh/ssl/etc key generation&#8230;</p>
<p>Conclusion: debian openssl was UNABLE to generate random numbers AT ALL!</p>
<p>and nobody noticed :-/</p>
<p>I leave the rest to you, happy regenerating all CA and ssl certificates. I only wonder what if Verisign or other &#8220;trusted&#8221; company used this for main CA generation.</p>
<p>If you think something is terribly wrong with this test please comment</p>
]]></content:encoded>
			<wfw:commentRss>http://mag.entropy.be/blog/2008/05/13/how-badly-debianubunutu-openssl-is-fscked-up/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Ubuntu Feisty &#8211; slightly better setup</title>
		<link>http://mag.entropy.be/blog/2007/08/07/ubuntu-feisty-slightly-better-setup/</link>
		<comments>http://mag.entropy.be/blog/2007/08/07/ubuntu-feisty-slightly-better-setup/#comments</comments>
		<pubDate>Mon, 06 Aug 2007 23:12:47 +0000</pubDate>
		<dc:creator>mag</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://mag.entropy.be/blog/2007/08/07/ubuntu-feisty-slightly-better-setup/</guid>
		<description><![CDATA[After my opensuse Factory install crashed last week I deceided to try something new and installed Ubuntu feisty on my private laptop. XFS StrangeÂ thingÂ butÂ grubÂ whichÂ isÂ shippedÂ withÂ ubuntuÂ canÂ notÂ bootÂ systemÂ fromÂ XFSÂ partition. SoÂ farÂ IÂ hadÂ notÂ investigatedÂ aÂ problemÂ andÂ IÂ amÂ bootingÂ systemÂ withÂ LILO. KDE FirstÂ thingÂ wasÂ toÂ deinstallÂ allÂ gnomeÂ appsÂ (Â leavingÂ onlyÂ openoficeÂ )Â Â then using metapackage I installed kde. I do not know why all big distributions are sticking to gnome and most users still use KDE. BOOTING Booting process in ubuntu [...]]]></description>
			<content:encoded><![CDATA[<p>After my opensuse Factory install crashed last week I deceided to try something new and installed Ubuntu feisty on my private laptop.</p>
<p><strong>XFS</strong></p>
<p>StrangeÂ thingÂ butÂ grubÂ whichÂ isÂ shippedÂ withÂ ubuntuÂ canÂ notÂ bootÂ systemÂ fromÂ XFSÂ partition.</p>
<p>SoÂ farÂ IÂ hadÂ notÂ investigatedÂ aÂ problemÂ andÂ IÂ amÂ bootingÂ systemÂ withÂ LILO.</p>
<p><strong>KDE</strong></p>
<p>FirstÂ thingÂ wasÂ toÂ deinstallÂ allÂ gnomeÂ appsÂ (Â leavingÂ onlyÂ openoficeÂ )Â Â then using metapackage I installed kde. I do not know why all big distributions are sticking to gnome and most users still use KDE.</p>
<p><strong>BOOTING</strong></p>
<p>Booting process in ubuntu is rather fast, but if you add some more daemon it is usefull to turn on concurency</p>
<p>editÂ /etc/init.d/rc</p>
<p>andÂ change:</p>
<p>CONCURRENCY=none</p>
<p>to:</p>
<p>CONCURRENCY=shell</p>
<p><strong>FIREFOX</strong></p>
<p>IfÂ youÂ meanÂ toÂ useÂ firefoxÂ itÂ isÂ allwaysÂ goodÂ toÂ disableÂ pango, just add</p>
<p>MOZ_DISABLE_PANGO=â€1â€³</p>
<p>toÂ /etc/environment</p>
<p><strong>PRELOAD</strong></p>
<p>IfÂ youÂ haveÂ plentyÂ ofÂ RAMÂ installingÂ preloadÂ mayÂ help</p>
<p># sudo apt-get install preload</p>
<p><strong>XOrg</strong></p>
<p>Ubuntu default config adds entries in /etc/X11/xorg.conf for wacom tablets. Unless you own one this is useless and only generates huge ~/.xsession-errors log file. Commenting out all devices besides used ones will help.</p>
]]></content:encoded>
			<wfw:commentRss>http://mag.entropy.be/blog/2007/08/07/ubuntu-feisty-slightly-better-setup/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>.NET and MONO</title>
		<link>http://mag.entropy.be/blog/2007/04/26/net-and-mono/</link>
		<comments>http://mag.entropy.be/blog/2007/04/26/net-and-mono/#comments</comments>
		<pubDate>Thu, 26 Apr 2007 06:58:05 +0000</pubDate>
		<dc:creator>mag</dc:creator>
				<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://mag.entropy.be/blog/2007/04/26/net-and-mono/</guid>
		<description><![CDATA[Yesterday i have listened to very interesting presentation that featured Â .NET and the compatible open source version &#8211; MONO IÂ wasÂ impressedÂ withÂ theÂ toolsÂ usedÂ - Microsoft Visual Studio 2005 and Visual Web Developer areÂ prettyÂ fastÂ andÂ easyÂ toÂ useÂ (Â unlikeÂ VistaÂ ;-).Â ComparingÂ to eclipseÂ theyÂ were really fast. MonoÂ aims to be 100% compatible with .NET compilesÂ C#,Â Java, boo and other languages to bytecode that is runÂ withÂ mono.Â SameÂ compiled codeÂ canÂ beÂ runÂ onÂ windows/linux/MacOS/etc.Â  Also windows forms can be [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday i have listened to very interesting presentation that featured  Â .NET and the compatible open source version &#8211; MONO</p>
<p>IÂ wasÂ impressedÂ withÂ theÂ toolsÂ usedÂ - Microsoft Visual Studio 2005 and Visual Web Developer areÂ prettyÂ fastÂ andÂ easyÂ toÂ useÂ (Â unlikeÂ VistaÂ ;-).Â ComparingÂ to eclipseÂ theyÂ were really fast.</p>
<p>MonoÂ aims to be 100% compatible with .NET compilesÂ C#,Â Java, boo and other <a target="_blank" href="http://www.mono-project.com/Languages">languages</a> to bytecode that is runÂ withÂ mono.Â SameÂ compiled codeÂ canÂ beÂ runÂ onÂ windows/linux/MacOS/etc.Â  Also windows forms can be used on Linux without modyfying the codebase.</p>
<p>YouÂ canÂ findÂ moreÂ informationÂ onÂ theÂ <a target="_blank" href="http://www.mono-project.com/">officialÂ site http://mono-project.com</a>Â and also on some community sites like <a href="http://gotmono.com" target="_blank">http://gotmono.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mag.entropy.be/blog/2007/04/26/net-and-mono/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.143 seconds -->
<!-- Cached page served by WP-Cache -->

