<?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>developer.studivz.net &#187; mckoy</title>
	<atom:link href="http://developer.studivz.net/tag/mckoy/feed/" rel="self" type="application/rss+xml" />
	<link>http://developer.studivz.net</link>
	<description>where the VZ-Networks developers blog</description>
	<lastBuildDate>Wed, 10 Mar 2010 10:50:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>mckoy &#8211; [m]em[c]ache [k]ey [o]bservation [y]ield</title>
		<link>http://developer.studivz.net/2009/08/10/mckoy-memcache-key-observation-yield/</link>
		<comments>http://developer.studivz.net/2009/08/10/mckoy-memcache-key-observation-yield/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 13:02:22 +0000</pubDate>
		<dc:creator>levon</dc:creator>
				<category><![CDATA[Daily Business]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Operations]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[mckoy]]></category>
		<category><![CDATA[Memcache]]></category>

		<guid isPermaLink="false">http://developer.studivz.net/?p=1789</guid>
		<description><![CDATA[We wanted to speed up our web-applications by alleviating our database-loads. So we decided to use the distributed memory object caching system, memcached. Due to the many requests of our memcached-systems (about 1.5 million requests per second), we built a tool (called mckoy), which is capable to perform statistics and debugging information about all memcache-requests [...]]]></description>
			<content:encoded><![CDATA[<p>We wanted to speed up our web-applications by alleviating our database-loads. So we decided to use the distributed memory object caching system, <a href="http://www.danga.com/memcached/" target="_blank"><strong>memcached</strong></a>. Due to the many requests of our memcached-systems (about 1.5 million requests per second), we built a tool (called <strong>mckoy</strong>), which is capable to perform statistics and debugging information about all memcache-requests in our network.</p>
<p><strong>mckoy</strong> is a memcache protocol sniffer (based on pcap library) and statistics builder. It automatically detects and parses each key (and its value) and memcache-api methods.  At  the  end of the sniffing session, the results are used to build the statisticis.<strong> mckoy </strong>was written to analyse our web application and its usage of  memcache-api in PHP. For example: We wanted to know how many <em>set()</em> and <em>get() </em>methods were invoked in a given time. Based on these results,  we had to make changes to improve the usage of memcache-api for PHP. You can run <strong>mckoy</strong> on any UNIX based systems. It was tested on many *BSD and Linux systems. <strong>mckoy</strong> is licensed under GPLv3 and completely published as opensource project!</p>
<p>You can run <strong>mckoy</strong> in various modes (see manpage!). For example, if you want to sniff pattern &#8220;foobar&#8221; for all memcache-api methods and with live capturing, use:<strong> </strong></p>
<p><strong>mckoy</strong> -i <em>&lt;interface&gt;</em> -e <em>&#8220;port 11211&#8243;</em> -m <em>5</em> -k <em>foobar</em> -v</p>
<p>And this is, how it looks like:<br />
<img src="http://developer.studivz.net/wp-content/uploads/2009/08/mckoy2.png" alt="" width="730" height="500" /></p>
<p>Unfortunately, there are some known bugs. :) For example: An SIGSEGV will encounter when ^C is sent from user. Also, we noticed that <strong>mckoy </strong>isn&#8217;t able to handle memcached-1.2.8 &lt;= 1.4.* correctly. These bugs will be fixed in the next version as soon as possible! For the next version I also planned to build in udp and binary support.</p>
<p>You can offcially download <strong>mckoy</strong> from:<br />
<a href="http://www.lamergarten.de/releases.html"><em>http://www.lamergarten.de/releases.html </em></a><br />
or<br />
<a href="http://sourceforge.net/projects/mckoy/"><em>http://sourceforge.net/projects/mckoy/</em></a></p>
<p>cheers.</p>
]]></content:encoded>
			<wfw:commentRss>http://developer.studivz.net/2009/08/10/mckoy-memcache-key-observation-yield/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
