<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-22479</id>
	<title>Nabble - memcached</title>
	<updated>2009-11-10T14:18:26Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/memcached-f22479.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/memcached-f22479.html" />
	<subtitle type="html">&lt;a href=&quot;http://www.danga.com/memcached/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;memcached&lt;/a&gt;&amp;nbsp;is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26292317</id>
	<title>Failover mechanism for memcache server</title>
	<published>2009-11-10T14:18:26Z</published>
	<updated>2009-11-10T14:18:26Z</updated>
	<author>
		<name>ig77</name>
	</author>
	<content type="html">We have 2 memcached servers configured and use the Eniym client. When one of the server is down, it appears this server is added to the deadServers list (ServerPool.cs) and tries to resurrect the server every 10seconds (we have configured deadTimeOut to be 10seconds). Attempting to connect to the failed server causes a TCP timeout, the pages take a long time to load which results in bad user experience.
&lt;br&gt;&lt;br&gt;1) What is the standard way of resolving this issue? There are some posts about removing the server from the deadServers list. Is it okay to do this?
&lt;br&gt;&lt;br&gt;2) What is the recommended deadTimeOut setting (I understand by default it's 2 mins and we've changed it to 10seconds in our implementation)
&lt;br&gt;&lt;br&gt;3) Am I correct in my understanding that the cached data is not replicated across Server 1 and Server 2? If Server 1 is down, then it goes to the database to fetch these values (and it doesn't really check Server2)?
&lt;br&gt;&lt;br&gt;Any help is really appreciated.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Failover-mechanism-for-memcache-server-tp26292317p26292317.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26061529</id>
	<title>(nginx) fcgi+PHP+memcache on RedHat: Class 'Memcache' not found...</title>
	<published>2009-10-26T08:08:59Z</published>
	<updated>2009-10-26T08:08:59Z</updated>
	<author>
		<name>miradev</name>
	</author>
	<content type="html">Hello
&lt;br&gt;&lt;br&gt;I have installed:
&lt;br&gt;&amp;nbsp;- libevent
&lt;br&gt;&amp;nbsp;- libmemcached (&lt;a href=&quot;http://tangent.org/552/libmemcached.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://tangent.org/552/libmemcached.html&lt;/a&gt;)
&lt;br&gt;&amp;nbsp;- Done a PECL installation (pecl download memcached, phpize &amp;&amp; ./configure &amp;&amp; make)
&lt;br&gt;&amp;nbsp;- memcached 
&lt;br&gt;&lt;br&gt;&amp;gt; cat /etc/php.d/memcached.ini
&lt;br&gt;; Memcached default settings
&lt;br&gt;extension=memcache.so
&lt;br&gt;&lt;br&gt;&amp;gt; ls -1 &amp;nbsp;/usr/lib64/php/modules/memcache*
&lt;br&gt;/usr/lib64/php/modules/memcached.so
&lt;br&gt;/usr/lib64/php/modules/memcache.so
&lt;br&gt;&lt;br&gt;&amp;gt; memcached -h
&lt;br&gt;memcached 1.2.6
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;&amp;gt; php -v
&lt;br&gt;PHP 5.1.6 (cli) (built: Feb 26 2009 07:01:12) 
&lt;br&gt;Copyright (c) 1997-2006 The PHP Group
&lt;br&gt;Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
&lt;br&gt;&lt;br&gt;&lt;br&gt;/var/www/php_fcgi_memcache&amp;gt; cat memcache.php 
&lt;br&gt;&amp;lt;?php
&lt;br&gt;$memcache = new Memcache;
&lt;br&gt;print_r($memcache);
&lt;br&gt;?&amp;gt;
&lt;br&gt;&lt;br&gt;/var/www/php_fcgi_memcache&amp;gt; php memcache.php 
&lt;br&gt;PHP Fatal error: &amp;nbsp;Class 'Memcache' not found in /var/www/php_fcgi_memcache/memcache.php on line 2
&lt;br&gt;&lt;br&gt;Memcached is working fine (being use by Perl quite happily). 
&lt;br&gt;&lt;br&gt;PHP/FCGI is working OK and phpinfo() shows:
&lt;br&gt;memcached support	enabled
&lt;br&gt;Version 	1.0.0
&lt;br&gt;libmemcached version 	0.34
&lt;br&gt;Session support 	yes 
&lt;br&gt;&lt;br&gt;Any pointers in the right direction would so very much appreciated.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%28nginx%29-fcgi%2BPHP%2Bmemcache-on-RedHat%3A-Class-%27Memcache%27-not-found...-tp26061529p26061529.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25530138</id>
	<title>sizing memcached</title>
	<published>2009-09-20T15:01:01Z</published>
	<updated>2009-09-20T15:01:01Z</updated>
	<author>
		<name>rmenon</name>
	</author>
	<content type="html">Hi folks
&lt;br&gt;We are trying to determine how to size memcached (how much memory should we allocate). The easiest way seemed to be:
&lt;br&gt;&lt;br&gt;. start a memcached
&lt;br&gt;. keep writing items (that effectively do not expire) into the memcached till you start seeing evictions.
&lt;br&gt;&lt;br&gt;This would give us how many objects a given size store from which we can extrapolate.
&lt;br&gt;&lt;br&gt;When running such an experiment, I see the following stats after some time.
&lt;br&gt;&lt;br&gt;&lt;br&gt;stats
&lt;br&gt;STAT pid 5728
&lt;br&gt;STAT uptime 2076
&lt;br&gt;STAT time 1253483475
&lt;br&gt;STAT version 1.2.6
&lt;br&gt;STAT pointer_size 32
&lt;br&gt;STAT curr_items 7497
&lt;br&gt;STAT total_items 58725
&lt;br&gt;STAT bytes 14178576
&lt;br&gt;STAT curr_connections 7
&lt;br&gt;STAT total_connections 8
&lt;br&gt;STAT connection_structures 8
&lt;br&gt;STAT cmd_get 0
&lt;br&gt;STAT cmd_set 58725
&lt;br&gt;STAT get_hits 0
&lt;br&gt;STAT get_misses 0
&lt;br&gt;STAT evictions 0
&lt;br&gt;STAT bytes_read 110475920
&lt;br&gt;STAT bytes_written 27168152
&lt;br&gt;STAT limit_maxbytes 67108864
&lt;br&gt;STAT threads 1
&lt;br&gt;&lt;br&gt;----
&lt;br&gt;My question is why is curr_items so much less than total_items.? If the cache was bounced just before the experiment (which is the case here), should I consider total_items as the items stored in the cache? My sense from reading some other posts is that curr_items is not kept up to date due to efficiency reasons.
&lt;br&gt;&lt;br&gt;My guess in the above example is that this cache has total of 58725 items occupying 14178576 bytes.
&lt;br&gt;&lt;br&gt;Is this correct?
&lt;br&gt;&lt;br&gt;In general are there any articles on how to size memcached?
&lt;br&gt;&lt;br&gt;I saw some articles at &lt;a href=&quot;http://code.google.com/p/memcached/wiki/HowTo&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/memcached/wiki/HowTo&lt;/a&gt;&amp;nbsp;but none seem to cover the right way of sizing memcached.
&lt;br&gt;&lt;br&gt;In our specific case we have just one type of object being stored in memcached - which means we may be able to store them more efficiently by following guidelines in articles dealing with storing &amp;quot;small&amp;quot; objects.
&lt;br&gt;&lt;br&gt;Thank you!
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/sizing-memcached-tp25530138p25530138.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25111018</id>
	<title>need help while using mecahced keys</title>
	<published>2009-08-23T23:11:52Z</published>
	<updated>2009-08-23T23:11:52Z</updated>
	<author>
		<name>mvnr_83</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;&lt;br&gt;I am newbie to memcached. Currently i am working on PHP and i installed memcached on my system. I tired and succeed while create cache using set and get methods.
&lt;br&gt;&lt;br&gt;But i am confusing while assigning keys. Here is my requirement. 
&lt;br&gt;&lt;br&gt;1) If user1 comes and fetch results from a table, fetched results are stored in cache using some key(say 'countryinfo')
&lt;br&gt;&lt;br&gt;then user2 comes and wants to fetch the same result from the database. Then how do we know the cache is already existed with the name 'countryinfo'.
&lt;br&gt;&lt;br&gt;I don't want to give the key name as static. I want it to be dynamic , coz i am running hundrads of queries in my project. It much complicate to maintain static keys for each query.
&lt;br&gt;&lt;br&gt;2) I am fetching different data from the same table using different where conditions. for example
&lt;br&gt;&lt;br&gt;&amp;nbsp;SELECT * FROM tbl_users WHERE user_id = 40
&lt;br&gt;&lt;br&gt;SELECT username,gender FROM tbl_users WHERE user_id = 50
&lt;br&gt;........
&lt;br&gt;...........
&lt;br&gt;&lt;br&gt;In this case, How do i maintain cache
&lt;br&gt;&lt;br&gt;Thanks in advance</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/need-help-while-using-mecahced-keys-tp25111018p25111018.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24756448</id>
	<title>Re: PHP Warning: Memcache::pconnect(): Can't connect to 127.0.0.1:11211</title>
	<published>2009-07-31T06:30:47Z</published>
	<updated>2009-07-31T06:30:47Z</updated>
	<author>
		<name>uknownymous15</name>
	</author>
	<content type="html">hi its such a bs not at all
&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;kumar.c wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hi,
&lt;br&gt;&lt;br&gt;In my appliaction, &amp;nbsp;I am getting below error.
&lt;br&gt;*
&lt;br&gt;PHP Warning: &amp;nbsp;Memcache::pconnect(): Can't connect to 127.0.0.1:11211,
&lt;br&gt;Connection refused (111) in /var/www/html/sample/memcache.class.php on line
&lt;br&gt;26
&lt;br&gt;&lt;br&gt;Unable to connect the Memcache!!
&lt;br&gt;&lt;br&gt;*Please mail me the solution to fix above error.
&lt;br&gt;&lt;br&gt;Thanks in Advance,
&lt;br&gt;kumar
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PHP-Warning%3A-Memcache%3A%3Apconnect%28%29%3A-Can%27t-connect-to-127.0.0.1%3A11211-tp16985437p24756448.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24148303</id>
	<title>Memcached data expiry on last access</title>
	<published>2009-06-22T08:08:03Z</published>
	<updated>2009-06-22T08:08:03Z</updated>
	<author>
		<name>Greeno85</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Is anyone aware if you can choose to expire data from Memcached after a certain time period after the last update/access of the row?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Andy</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Memcached-data-expiry-on-last-access-tp24148303p24148303.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24069533</id>
	<title>Failover Mechanism with libmemcache</title>
	<published>2009-06-17T01:54:37Z</published>
	<updated>2009-06-17T01:54:37Z</updated>
	<author>
		<name>Anshulg</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;&amp;nbsp;I am using repcached (memcache servers with support for replication)
&lt;br&gt;&amp;nbsp;servers and “libmemcached-based” PHP client.
&lt;br&gt;&lt;br&gt;&amp;nbsp;The problem is that if the main repcached server goes for a toss, it
&lt;br&gt;&amp;nbsp;does not fallback to the other servers in the pool.
&lt;br&gt;&lt;br&gt;&amp;nbsp;The fallback is happening with “zlib-based” PHP memcached client.
&lt;br&gt;&lt;br&gt;&amp;nbsp;Is failover mechanism not there in the libmemcached based client ??
&lt;br&gt;&amp;nbsp;If there is any, how can I achieve this ?
&lt;br&gt;&amp;nbsp;I am currently using libmemcached-0.30 .
&lt;br&gt;&lt;br&gt;Any help would be greatly appreciated.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Anshul
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Failover-Mechanism-with-libmemcache-tp24069533p24069533.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23443169</id>
	<title>Repcached failover mechnism with libmemcached based PHP client</title>
	<published>2009-05-08T02:53:27Z</published>
	<updated>2009-05-08T02:53:27Z</updated>
	<author>
		<name>Anshulg</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I am using repcached (memcache servers with support for replication) servers and “libmemcached-based” PHP client.
&lt;br&gt;&lt;br&gt;The problem is that if the main repcached server goes for a toss, it does not fallback to the other servers in the pool.
&lt;br&gt;&lt;br&gt;The fallback is happening with “zlib-based” PHP memcached client.
&lt;br&gt;&lt;br&gt;Is failover mechanism not there in the libmemcached based client ?? If there is any, how can I achieve this ?</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Repcached-failover-mechnism-with-libmemcached-based-PHP-client-tp23443169p23443169.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20520886</id>
	<title>Re: Multi-Master Memcached Replication</title>
	<published>2008-11-15T16:04:56Z</published>
	<updated>2008-11-15T16:04:56Z</updated>
	<author>
		<name>Golan Zakai</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Kris Drebin wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;So that the memcached servers are staying in sync with each other, in a
&lt;br&gt;multi-master fashion. I found the tool repcached, but it is single-master,
&lt;br&gt;single slave. This will not work for my application. Any ideas?
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
Maybe this setup can help you:
&lt;br&gt;&lt;a href=&quot;http://golanzakai.blogspot.com/2008/11/memcached-replication-and-namespaces.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://golanzakai.blogspot.com/2008/11/memcached-replication-and-namespaces.html&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Multi-Master-Memcached-Replication-tp16817328p20520886.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20518164</id>
	<title>Memcached Replication and Namespaces using MySQL Infrastructure.</title>
	<published>2008-11-15T10:22:48Z</published>
	<updated>2008-11-15T10:22:48Z</updated>
	<author>
		<name>Golan Zakai</name>
	</author>
	<content type="html">I would like to share with you guys a configuration method for memcached replication using mysql engine.
&lt;br&gt;&lt;br&gt;I wrote a blog entry describing it, I wish to hear feedback about the concept and if someone is already implemented such configuration on production environment.
&lt;br&gt;&lt;a href=&quot;http://golanzakai.blogspot.com/2008/11/memcached-replication-and-namespaces.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://golanzakai.blogspot.com/2008/11/memcached-replication-and-namespaces.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;Golan Zakai</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Memcached-Replication-and-Namespaces-using-MySQL-Infrastructure.-tp20518164p20518164.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20420903</id>
	<title>Windows client hangs when exceeding max connections</title>
	<published>2008-11-10T06:26:42Z</published>
	<updated>2008-11-10T06:26:42Z</updated>
	<author>
		<name>bradrover</name>
	</author>
	<content type="html">We're running memcached 1.2.2 on linux, and using windows 2003 server clients. I noticed some of our memcache servers stopped responding to stats queries, and saw we have more client connection attempts than memcache was configured to handle. Using putty I could not get a stats query to respond from these servers, it would simply hang. Also a ruby script I wrote to get stats would not fail, it would just hang forever. 
&lt;br&gt;&lt;br&gt;This has really bad side effects on our apps, where it can actually lock up request threads and cause server timeouts. Why does memcache not give back an error immediately if the connection is not available, or is this a sockets issue on windows? I've bumped up the connection limit on the server side, but I would like to know if there is something else I can do to ensure the client never gets hung, even if memcache is at its max connection limit. Would a memcache version upgrade fix this particular problem? Thanks.</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Windows-client-hangs-when-exceeding-max-connections-tp20420903p20420903.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-20259063</id>
	<title>Memcached + PHP Cli</title>
	<published>2008-10-30T19:11:10Z</published>
	<updated>2008-10-30T19:11:10Z</updated>
	<author>
		<name>SgtSlaughter</name>
	</author>
	<content type="html">Memcached seems to work fine, but when I create a cron job to execute a php script using memcached, it complains about not findin the Memcache class. The cron job is simply a &amp;quot;php /var/www/schedule.php salt /var/www/schedule.log&amp;quot;
&lt;br&gt;&lt;br&gt;I tested that it was indeed the CLI by executing the same command in SSH and I get the same error.
&lt;br&gt;&lt;br&gt;How can I fix this?</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Memcached-%2B-PHP-Cli-tp20259063p20259063.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-19835890</id>
	<title>MemCacheServer clustering</title>
	<published>2008-10-06T04:10:46Z</published>
	<updated>2008-10-06T04:10:46Z</updated>
	<author>
		<name>jigna joshi</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I am using memcached-1[1].2.6-win32-bin version of MemCache server.
&lt;br&gt;&lt;br&gt;Now, I have 2 instances of this server on different machine. &amp;nbsp;I am using memcached-2[1].1.jar to make entry in memcache server through my java application.
&lt;br&gt;&lt;br&gt;When both servers are up, it makes entry in only one of the server.
&lt;br&gt;&lt;br&gt;Is it provide any configuration to make entry of Key-value in all memcache servers.
&lt;br&gt;&lt;br&gt;Waiting for your reply.
&lt;br&gt;Thanking You,
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Best Regards,
&lt;br&gt;&lt;br&gt;Jigna Joshi
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/MemCacheServer-clustering-tp19835890p19835890.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-19482338</id>
	<title>Re: memcached 1.2.4 Beta for Windows</title>
	<published>2008-09-14T10:22:19Z</published>
	<updated>2008-09-14T10:22:19Z</updated>
	<author>
		<name>hydn79</name>
	</author>
	<content type="html">Use this version of memcache for Windows. It's 1.2.5:
&lt;br&gt;&lt;a href=&quot;http://code.jellycan.com/memcached/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.jellycan.com/memcached/&lt;/a&gt;&lt;br&gt;&lt;br&gt;Works like a charm!</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/memcached-1.2.4-Beta-for-Windows-tp15868610p19482338.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-18745048</id>
	<title>$memcache-&gt;set() failing, why?</title>
	<published>2008-07-30T16:41:43Z</published>
	<updated>2008-07-30T16:41:43Z</updated>
	<author>
		<name>langdon</name>
	</author>
	<content type="html">How can I determine why a call to set would fail? &amp;nbsp;Are there any memcached logs or can I somehow peer into the process and read exceptions?
&lt;br&gt;&lt;br&gt;Oddly enough, I have some code here that fails to set *only* on certain keys...
&lt;br&gt;&lt;br&gt;For example, my script is as follows:
&lt;br&gt;&lt;br&gt;test_memcache('lb_top_selling_camera');
&lt;br&gt;test_memcache('lb_top_selling_camera');
&lt;br&gt;test_memcache('lb_top_selling_Printer');
&lt;br&gt;test_memcache('lb_top_selling_camera');
&lt;br&gt;test_memcache('lb_top_selling_camera');
&lt;br&gt;&lt;br&gt;And my output:
&lt;br&gt;&lt;br&gt;get lb_top_selling_camera
&lt;br&gt;get lb_top_selling_camera
&lt;br&gt;get lb_top_selling_printer
&lt;br&gt;&amp;nbsp;- set lb_top_selling_printer
&lt;br&gt;&amp;nbsp;- !!broken!!
&lt;br&gt;get lb_top_selling_camera
&lt;br&gt;get lb_top_selling_camera
&lt;br&gt;&lt;br&gt;The function (sloppy atm):
&lt;br&gt;&lt;br&gt;function test_memcache($memcache_key)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $g_memcache = memcache_init();
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; debug(&amp;quot;get $memcache_key&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $html = $g_memcache-&amp;gt;get($memcache_key);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($html === false)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $handle = @fopen('&lt;a href=&quot;http://www.google.com'&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.google.com'&lt;/a&gt;, 'r');
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($handle)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $html = '';
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while (!feof($handle))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $html += fgets($handle);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; debug(&amp;quot; - set $memcache_key&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $a = $g_memcache-&amp;gt;set($memcache_key, $html, 0, 86400) or $error = true;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($error === true &amp;&amp; is_admin())
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //if ($a === false)print'false';
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //debug(gettype($a));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; debug(' - !!broken!!');
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fclose($handle);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $html = array('Data not currently available.');
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;function memcache_init()
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (!class_exists('Memcache'))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nonfatal_error_alert('Memcache appears to be down!', false);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return false;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $memcache = new Memcache;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $memcache-&amp;gt;connect('localhost', 11211) or trigger_error('Memcache::Connect failed @ localhost:11211', FATAL);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return $memcache;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; catch (Exception $e)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nonfatal_error_alert('Memcache appears to be down!', false);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return false;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;function debug()
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; foreach(func_get_args() as $arg)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print '&amp;lt;xmp&amp;gt;';
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (is_array($arg) | is_object($arg)) print_r($arg); else print $arg;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print '&amp;lt;/xmp&amp;gt;';
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;Strangely enough, when I set $g_memcache outside of the function and use global $g_memcache, the call for &amp;quot;lb_top_selling_Printer&amp;quot; actually breaks the connection, and the subsequent camera calls fail as well.
&lt;br&gt;&lt;br&gt;Edit: I'm running PHP Version 5.2.0-8+etch11, memcached 1.1.12, and Debian 4.0r4.</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%24memcache-%3Eset%28%29-failing%2C-why--tp18745048p18745048.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-18268377</id>
	<title>Re: make: *** No targets specified and no makefile found.  Stop.</title>
	<published>2008-07-03T14:16:42Z</published>
	<updated>2008-07-03T14:16:42Z</updated>
	<author>
		<name>carise</name>
	</author>
	<content type="html">Hmm, I don't know if your Makefile really got generated. There's a libevent error at the end of the configure output. I'd suggest using the --with-libevent flag with your configure.
&lt;br&gt;&lt;br&gt;&lt;br&gt;./configure --with-libevent=/PATH/TO/LIBEVENT
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;rexzhen wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;the ./configure output looks fine. i only found Makefile.am Makefile.in there. Here is the output for the ./configure
&lt;br&gt;&lt;br&gt;[root@localhost memcached-1.2.2]# ./configure
&lt;br&gt;checking build system type... x86_64-unknown-linux-gnu
&lt;br&gt;checking host system type... x86_64-unknown-linux-gnu
&lt;br&gt;checking target system type... x86_64-unknown-linux-gnu
&lt;br&gt;checking for a BSD-compatible install... /usr/bin/install -c
&lt;br&gt;checking whether build environment is sane... yes
&lt;br&gt;checking for gawk... gawk
&lt;br&gt;checking whether make sets $(MAKE)... yes
&lt;br&gt;checking for gcc... gcc
&lt;br&gt;checking for C compiler default output file name... a.out
&lt;br&gt;checking whether the C compiler works... yes
&lt;br&gt;checking whether we are cross compiling... no
&lt;br&gt;checking for suffix of executables...
&lt;br&gt;checking for suffix of object files... o
&lt;br&gt;checking whether we are using the GNU C compiler... yes
&lt;br&gt;checking whether gcc accepts -g... yes
&lt;br&gt;checking for gcc option to accept ANSI C... none needed
&lt;br&gt;checking for style of include used by make... GNU
&lt;br&gt;checking dependency style of gcc... gcc3
&lt;br&gt;checking for a BSD-compatible install... /usr/bin/install -c
&lt;br&gt;checking for libevent directory... configure: error: libevent is required. &amp;nbsp;You &amp;nbsp; &amp;nbsp;can get it from &lt;a href=&quot;http://www.monkey.org/~provos/libevent/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.monkey.org/~provos/libevent/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; If it's already installed, specify its path using --with-libevent=/dir/
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/make%3A-***-No-targets-specified-and-no-makefile-found.--Stop.-tp18247363p18268377.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-18264133</id>
	<title>Re: make: *** No targets specified and no makefile found.  Stop.</title>
	<published>2008-07-03T10:10:21Z</published>
	<updated>2008-07-03T10:10:21Z</updated>
	<author>
		<name>rexzhen</name>
	</author>
	<content type="html">the ./configure output looks fine. i only found Makefile.am Makefile.in there. Here is the output for the ./configure
&lt;br&gt;&lt;br&gt;[root@localhost memcached-1.2.2]# ./configure
&lt;br&gt;checking build system type... x86_64-unknown-linux-gnu
&lt;br&gt;checking host system type... x86_64-unknown-linux-gnu
&lt;br&gt;checking target system type... x86_64-unknown-linux-gnu
&lt;br&gt;checking for a BSD-compatible install... /usr/bin/install -c
&lt;br&gt;checking whether build environment is sane... yes
&lt;br&gt;checking for gawk... gawk
&lt;br&gt;checking whether make sets $(MAKE)... yes
&lt;br&gt;checking for gcc... gcc
&lt;br&gt;checking for C compiler default output file name... a.out
&lt;br&gt;checking whether the C compiler works... yes
&lt;br&gt;checking whether we are cross compiling... no
&lt;br&gt;checking for suffix of executables...
&lt;br&gt;checking for suffix of object files... o
&lt;br&gt;checking whether we are using the GNU C compiler... yes
&lt;br&gt;checking whether gcc accepts -g... yes
&lt;br&gt;checking for gcc option to accept ANSI C... none needed
&lt;br&gt;checking for style of include used by make... GNU
&lt;br&gt;checking dependency style of gcc... gcc3
&lt;br&gt;checking for a BSD-compatible install... /usr/bin/install -c
&lt;br&gt;checking for libevent directory... configure: error: libevent is required. &amp;nbsp;You &amp;nbsp; &amp;nbsp;can get it from &lt;a href=&quot;http://www.monkey.org/~provos/libevent/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.monkey.org/~provos/libevent/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; If it's already installed, specify its path using --with-libevent=/dir/
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;rexzhen wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;My system is CentOS5.2
&lt;br&gt;&lt;br&gt;Whatever I do configure, when I do a make, I get this:
&lt;br&gt;&lt;br&gt;make: *** No targets specified and no makefile found. &amp;nbsp;Stop.
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I download memcached-1.2.5.tar.gz
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://www.danga.com/memcached/dist/memcached-1.2.5.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.danga.com/memcached/dist/memcached-1.2.5.tar.gz&lt;/a&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/make%3A-***-No-targets-specified-and-no-makefile-found.--Stop.-tp18247363p18264133.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-18247680</id>
	<title>Re: make: *** No targets specified and no makefile found.  Stop.</title>
	<published>2008-07-02T14:53:03Z</published>
	<updated>2008-07-02T14:53:03Z</updated>
	<author>
		<name>carise</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Rex Zhen-3 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;My system is CentOS5.2
&lt;br&gt;&lt;br&gt;Whatever I do configure, when I do a make, I get this:
&lt;br&gt;&lt;br&gt;make: *** No targets specified and no makefile found. &amp;nbsp;Stop.
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;I download memcached-1.2.5.tar.gz
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://www.danga.com/memcached/dist/memcached-1.2.5.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.danga.com/memcached/dist/memcached-1.2.5.tar.gz&lt;/a&gt;&amp;gt; 
&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
Sorry to ask a dumb question, but does your configure finish successfully? And does a Makefile exist after you run configure?</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/make%3A-***-No-targets-specified-and-no-makefile-found.--Stop.-tp18247363p18247680.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-18247363</id>
	<title>make: *** No targets specified and no makefile found.  Stop.</title>
	<published>2008-07-02T14:36:37Z</published>
	<updated>2008-07-02T14:36:37Z</updated>
	<author>
		<name>rexzhen</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;My system is CentOS5.2&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;Whatever I do configure, when I do a make, I get this:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;make: *** No targets specified and no makefile found.&amp;nbsp; Stop.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;I download &lt;a href=&quot;http://www.danga.com/memcached/dist/memcached-1.2.5.tar.gz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;memcached-1.2.5.tar.gz&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/make%3A-***-No-targets-specified-and-no-makefile-found.--Stop.-tp18247363p18247363.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-18240378</id>
	<title>Re: Announce: New feature-complete version of the BeIT Memcached Client released.</title>
	<published>2008-07-02T08:34:09Z</published>
	<updated>2008-07-02T08:34:09Z</updated>
	<author>
		<name>Henrik Schröder-3</name>
	</author>
	<content type="html">32-bit, I never managed to compile a 64-bit version, and since I don&amp;#39;t need one myself I didn&amp;#39;t spend a lot of effort on getting one. Feel free to use Brodie&amp;#39;s working src archives here: &lt;a href=&quot;http://code.jellycan.com/memcached/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.jellycan.com/memcached/&lt;/a&gt; to compile one yourself.&lt;br&gt;
&lt;br&gt;&lt;br&gt;/Henrik Schröder&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Jul 2, 2008 at 2:00 PM, Josef Finsel &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18240378&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;carpdeus@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Is that the 64 bit or 32 bit version?&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&amp;quot;If you see a whole thing - it seems that it&amp;#39;s always beautiful. Planets, lives... But up close a world&amp;#39;s all dirt and rocks. And day to day, life&amp;#39;s a hard job, you get tired, you lose the pattern.&amp;quot;&lt;br&gt;

Ursula K. Le Guin
&lt;br&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;Wj3C7c&quot;&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Jul 2, 2008 at 7:55 AM, Henrik Schröder &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18240378&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;skrolle@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;

I put up an archive at &lt;a href=&quot;http://code.google.com/p/beitmemcached/downloads/list&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/beitmemcached/downloads/list&lt;/a&gt;, grab it from there and test it out. Would love to get more people testing it so we know if the weird CPU usage is gone for good.&lt;br&gt;

&lt;font color=&quot;#888888&quot;&gt;
&lt;br&gt;&lt;br&gt;/Henrik Schröder&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Jul 2, 2008 at 1:33 PM, Stephen Johnston &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18240378&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stephen.johnston@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;

&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div&gt;I would be very much interested in a Windows Binary that didn&amp;#39;t eat up one of our cores.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;font color=&quot;#888888&quot;&gt;
&lt;div&gt;-Stephen&lt;br&gt;&lt;/div&gt;&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Jul 2, 2008 at 5:34 AM, Henrik Schröder &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18240378&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;skrolle@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;
&lt;div&gt;On Fri, Jun 6, 2008 at 12:27 AM, Henrik Schröder &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18240378&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;skrolle@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&lt;/div&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div&gt;
&lt;div&gt;On Thu, Jun 5, 2008 at 8:01 PM, Jeff Rodenburg &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18240378&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeff.rodenburg@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Henrik - can you elaborate on what you&amp;#39;ve found with this?&amp;nbsp; I&amp;#39;m not looking to resolve the issues, just trying to get a better picture of where the bodies are buried, and to convince an all-windows shop that it&amp;#39;s OK to run a few linux instances to support certain application services.&lt;br&gt;



&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div&gt;On our current project, we run memcached on two servers that are also web servers, and on both machines the memcached process consumes exactly 25% CPU. The weird thing is that those two servers have different hardware. One is a two-processor dual core Xeon at 2,5GHz, and the other is a two-processor dual core Xeon at 1,6GHz. The first one runs Windows Server 2008, the other Windows Server 2003. But the memcached process on each takes up exactly 25% CPU all the time. I can also see on the stats that the second server gets more memcached traffic than the first one, so the second server is slower than the first and gets more traffic, but the CPU use is 25% on both servers.&lt;br&gt;



&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;Ok, thanks to Brodie Thiesfield who managed to produce working Visual Studio projects of Libevent 1.4.4 and Memcached 1.2.5, I&amp;#39;ve compiled my own version. I took his project, added the old memcached icon (These things are important! :) ), fixed a file version number, and compiled everything in my Visual Studio 2005 with whatever optimizations it can do, and finally got to deploy this version live.&lt;br&gt;



&lt;br&gt;It&amp;#39;s been running for a day now, and so far it looks good, still at 0% CPU utilization so hopefully whatever problems the older windows versions of memcached had are gone. I&amp;#39;ll let it run for a week, and if it&amp;#39;s still behaving after that time, I&amp;#39;ll try to make available our binary for those that are interested.&lt;br&gt;



&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;&lt;br&gt;/Henrik Schröder&lt;br&gt;&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;Wj3C7c&quot;&gt;
--~--~---------~--~----~------------~-------~--~----~&lt;br&gt;
You received this message because you are subscribed to the Google Groups &amp;quot;memcached&amp;quot; group. &lt;br&gt; To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18240378&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;memcached@...&lt;/a&gt; &lt;br&gt;
 To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18240378&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;memcached-unsubscribe@...&lt;/a&gt; &lt;br&gt; For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/memcached?hl=en&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/memcached?hl=en&lt;/a&gt; &lt;br&gt;
 -~----------~----~----~----~------~----~------~--~---&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Announce%3A-New-feature-complete-version-of-the-BeIT-Memcached-Client-released.-tp17569729p18240378.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-18238145</id>
	<title>RE: Multi-instance on Win2K3?</title>
	<published>2008-07-02T06:59:51Z</published>
	<updated>2008-07-02T06:59:51Z</updated>
	<author>
		<name>Matthew Drayer-2</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=iso-8859-1&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 11 (filtered medium)&quot;&gt;
&lt;!--[if !mso]&gt;
&lt;style&gt;
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
&lt;/style&gt;
&lt;![endif]--&gt;


&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=blue&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;Yep, this will be a dedicated server for
Memcached.  It&amp;#8217;s most likely going to be a virtual server, and I think
the 2xCPU / 2xGB is a standard template for our Systems group, so it&amp;#8217;s
actually easier for them to deploy an instance this way.  Couple clicks and it&amp;#8217;s
ready to go.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div&gt;

&lt;div class=MsoNormal align=center style='text-align:center'&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;

&lt;hr size=2 width=&quot;100%&quot; align=center tabindex=-1&gt;

&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'&gt;From:&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;font-family:Tahoma'&gt; Henrik Schröder
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18238145&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;skrolle@...&lt;/a&gt;] &lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Sent:&lt;/span&gt;&lt;/b&gt; Tuesday, July 01, 2008 5:07
PM&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;To:&lt;/span&gt;&lt;/b&gt; Matthew Drayer&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Cc:&lt;/span&gt;&lt;/b&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18238145&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;memcached@...&lt;/a&gt;&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Subject:&lt;/span&gt;&lt;/b&gt; Re: Multi-instance on
Win2K3?&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-bottom:12.0pt'&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;Hi Matthew,&lt;br&gt;
&lt;br&gt;
Kinda derailing here, but are you only going to run memcached on that server?
If so, you really do not need the CPU power, spend the money on RAM instead.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
/Henrik Schröder&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;On Tue, Jul 1, 2008 at 10:30 PM, Matthew Drayer &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18238145&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mdrayer@...&lt;/a&gt;&amp;gt; wrote:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div link=blue vlink=blue&gt;

&lt;div&gt;

&lt;div&gt;

&lt;p&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:
Arial;color:navy'&gt;So, most likely our official deployment will be to a 64bit
Linux machine which would initially have 2GB of RAM and two monster CPUs.&amp;nbsp;
If situation #2 isn't an issue, would it be best to run a single instance of
Memcached, or split the RAM into two instances?&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:
Arial;color:navy'&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;div class=MsoNormal align=center style='text-align:center'&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;

&lt;hr size=2 width=&quot;100%&quot; align=center&gt;

&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;

&lt;p&gt;&lt;b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;font-family:Tahoma;
font-weight:bold'&gt;From:&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;font-family:Tahoma'&gt; Stephen Johnston [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18238145&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stephen.johnston@...&lt;/a&gt;]
&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Sent:&lt;/span&gt;&lt;/b&gt; Tuesday, July 01, 2008 4:26
PM&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;
font-family:Tahoma'&gt;&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;To:&lt;/span&gt;&lt;/b&gt; Matthew Drayer&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Cc:&lt;/span&gt;&lt;/b&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18238145&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;memcached@...&lt;/a&gt;&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Subject:&lt;/span&gt;&lt;/b&gt; Re: Multi-instance on
Win2K3?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;p&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div&gt;

&lt;p&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;I think
that CPU is rarely why people do this. From what I've seen and read there are a
few common cases:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;div&gt;

&lt;div&gt;

&lt;p&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;1. You
have 384mb on one machine and 128mb on another available. You make 4 instances
so their eviction pattern is similar and the client can treat them as
identical, and your expected behavior for them will be similar,&amp;nbsp;and write
across them equally without a 384mb &amp;lt;-&amp;gt; 128mb pair of server causing
wierd imbalances. The clients that I have seen don't take cache size into
account when considering which instance to use.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;2. You
have a situation where you store items with&amp;nbsp;no delete time (they live for
ever), but you have limited memory. your no delete time items are expensive to
recreate. You also have alot of less expensive items to recreate that may lead
to your expensive ones being evicted. You use one instance sized for the items
that live forever and another for the ongoing &amp;quot;evictable&amp;quot; items.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;I'm sure
others have some use cases, but those are the two I've seen mentioned commonly.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p style='margin-bottom:12.0pt'&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;-Stephen&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;On Tue,
Jul 1, 2008 at 4:17 PM, Matthew Drayer &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18238145&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mdrayer@...&lt;/a&gt;&amp;gt;
wrote:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div vlink=blue link=blue&gt;

&lt;div&gt;

&lt;p&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:
Arial;color:navy'&gt;Probably not at such a low level, no &lt;/span&gt;&lt;/font&gt;&lt;font size=2 color=navy face=Wingdings&gt;&lt;span style='font-size:10.0pt;font-family:
Wingdings;color:navy'&gt;J&lt;/span&gt;&lt;/font&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial;color:navy'&gt;&amp;nbsp; but, this was more
for a proof-of-concept to show my team how it might work.&amp;nbsp; I assume we'll
only distribute out if we find we're pushing the limits of RAM or CPU
utilization.&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:
Arial;color:navy'&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:
Arial;color:navy'&gt;Matt&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Multi-instance-on-Win2K3--tp18223078p18238145.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-18235925</id>
	<title>Re: Announce: New feature-complete version of the BeIT Memcached Client released.</title>
	<published>2008-07-02T05:00:05Z</published>
	<updated>2008-07-02T05:00:05Z</updated>
	<author>
		<name>Josef Finsel</name>
	</author>
	<content type="html">Is that the 64 bit or 32 bit version?&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&amp;quot;If you see a whole thing - it seems that it&amp;#39;s always beautiful. Planets, lives... But up close a world&amp;#39;s all dirt and rocks. And day to day, life&amp;#39;s a hard job, you get tired, you lose the pattern.&amp;quot;&lt;br&gt;
Ursula K. Le Guin
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Jul 2, 2008 at 7:55 AM, Henrik Schröder &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18235925&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;skrolle@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
I put up an archive at &lt;a href=&quot;http://code.google.com/p/beitmemcached/downloads/list&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/beitmemcached/downloads/list&lt;/a&gt;, grab it from there and test it out. Would love to get more people testing it so we know if the weird CPU usage is gone for good.&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;
&lt;br&gt;&lt;br&gt;/Henrik Schröder&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;Wj3C7c&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Jul 2, 2008 at 1:33 PM, Stephen Johnston &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18235925&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stephen.johnston@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div&gt;I would be very much interested in a Windows Binary that didn&amp;#39;t eat up one of our cores.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;font color=&quot;#888888&quot;&gt;
&lt;div&gt;-Stephen&lt;br&gt;&lt;/div&gt;&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Jul 2, 2008 at 5:34 AM, Henrik Schröder &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18235925&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;skrolle@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;
&lt;div&gt;On Fri, Jun 6, 2008 at 12:27 AM, Henrik Schröder &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18235925&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;skrolle@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&lt;/div&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div&gt;
&lt;div&gt;On Thu, Jun 5, 2008 at 8:01 PM, Jeff Rodenburg &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18235925&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeff.rodenburg@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Henrik - can you elaborate on what you&amp;#39;ve found with this?&amp;nbsp; I&amp;#39;m not looking to resolve the issues, just trying to get a better picture of where the bodies are buried, and to convince an all-windows shop that it&amp;#39;s OK to run a few linux instances to support certain application services.&lt;br&gt;


&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div&gt;On our current project, we run memcached on two servers that are also web servers, and on both machines the memcached process consumes exactly 25% CPU. The weird thing is that those two servers have different hardware. One is a two-processor dual core Xeon at 2,5GHz, and the other is a two-processor dual core Xeon at 1,6GHz. The first one runs Windows Server 2008, the other Windows Server 2003. But the memcached process on each takes up exactly 25% CPU all the time. I can also see on the stats that the second server gets more memcached traffic than the first one, so the second server is slower than the first and gets more traffic, but the CPU use is 25% on both servers.&lt;br&gt;


&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;Ok, thanks to Brodie Thiesfield who managed to produce working Visual Studio projects of Libevent 1.4.4 and Memcached 1.2.5, I&amp;#39;ve compiled my own version. I took his project, added the old memcached icon (These things are important! :) ), fixed a file version number, and compiled everything in my Visual Studio 2005 with whatever optimizations it can do, and finally got to deploy this version live.&lt;br&gt;


&lt;br&gt;It&amp;#39;s been running for a day now, and so far it looks good, still at 0% CPU utilization so hopefully whatever problems the older windows versions of memcached had are gone. I&amp;#39;ll let it run for a week, and if it&amp;#39;s still behaving after that time, I&amp;#39;ll try to make available our binary for those that are interested.&lt;br&gt;


&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;&lt;br&gt;/Henrik Schröder&lt;br&gt;&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;
--~--~---------~--~----~------------~-------~--~----~&lt;br&gt;
You received this message because you are subscribed to the Google Groups &amp;quot;memcached&amp;quot; group. &lt;br&gt; To post to this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18235925&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;memcached@...&lt;/a&gt; &lt;br&gt;
 To unsubscribe from this group, send email to &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18235925&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;memcached-unsubscribe@...&lt;/a&gt; &lt;br&gt; For more options, visit this group at &lt;a href=&quot;http://groups.google.com/group/memcached?hl=en&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.com/group/memcached?hl=en&lt;/a&gt; &lt;br&gt;
 -~----------~----~----~----~------~----~------~--~---&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Announce%3A-New-feature-complete-version-of-the-BeIT-Memcached-Client-released.-tp17569729p18235925.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-18235858</id>
	<title>Re: Announce: New feature-complete version of the BeIT Memcached Client released.</title>
	<published>2008-07-02T04:55:37Z</published>
	<updated>2008-07-02T04:55:37Z</updated>
	<author>
		<name>Henrik Schröder-3</name>
	</author>
	<content type="html">I put up an archive at &lt;a href=&quot;http://code.google.com/p/beitmemcached/downloads/list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/beitmemcached/downloads/list&lt;/a&gt;, grab it from there and test it out. Would love to get more people testing it so we know if the weird CPU usage is gone for good.&lt;br&gt;
&lt;br&gt;&lt;br&gt;/Henrik Schröder&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Jul 2, 2008 at 1:33 PM, Stephen Johnston &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18235858&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stephen.johnston@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div&gt;I would be very much interested in a Windows Binary that didn&amp;#39;t eat up one of our cores.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;font color=&quot;#888888&quot;&gt;
&lt;div&gt;-Stephen&lt;br&gt;&lt;/div&gt;&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;Wj3C7c&quot;&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Jul 2, 2008 at 5:34 AM, Henrik Schröder &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18235858&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;skrolle@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;
&lt;div&gt;On Fri, Jun 6, 2008 at 12:27 AM, Henrik Schröder &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18235858&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;skrolle@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&lt;/div&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div&gt;
&lt;div&gt;On Thu, Jun 5, 2008 at 8:01 PM, Jeff Rodenburg &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18235858&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeff.rodenburg@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Henrik - can you elaborate on what you&amp;#39;ve found with this?&amp;nbsp; I&amp;#39;m not looking to resolve the issues, just trying to get a better picture of where the bodies are buried, and to convince an all-windows shop that it&amp;#39;s OK to run a few linux instances to support certain application services.&lt;br&gt;

&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div&gt;On our current project, we run memcached on two servers that are also web servers, and on both machines the memcached process consumes exactly 25% CPU. The weird thing is that those two servers have different hardware. One is a two-processor dual core Xeon at 2,5GHz, and the other is a two-processor dual core Xeon at 1,6GHz. The first one runs Windows Server 2008, the other Windows Server 2003. But the memcached process on each takes up exactly 25% CPU all the time. I can also see on the stats that the second server gets more memcached traffic than the first one, so the second server is slower than the first and gets more traffic, but the CPU use is 25% on both servers.&lt;br&gt;

&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;Ok, thanks to Brodie Thiesfield who managed to produce working Visual Studio projects of Libevent 1.4.4 and Memcached 1.2.5, I&amp;#39;ve compiled my own version. I took his project, added the old memcached icon (These things are important! :) ), fixed a file version number, and compiled everything in my Visual Studio 2005 with whatever optimizations it can do, and finally got to deploy this version live.&lt;br&gt;

&lt;br&gt;It&amp;#39;s been running for a day now, and so far it looks good, still at 0% CPU utilization so hopefully whatever problems the older windows versions of memcached had are gone. I&amp;#39;ll let it run for a week, and if it&amp;#39;s still behaving after that time, I&amp;#39;ll try to make available our binary for those that are interested.&lt;br&gt;

&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;&lt;br&gt;/Henrik Schröder&lt;br&gt;&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Announce%3A-New-feature-complete-version-of-the-BeIT-Memcached-Client-released.-tp17569729p18235858.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-18235773</id>
	<title>Re: Announce: New feature-complete version of the BeIT Memcached Client released.</title>
	<published>2008-07-02T04:50:39Z</published>
	<updated>2008-07-02T04:50:39Z</updated>
	<author>
		<name>Henrik Schröder-3</name>
	</author>
	<content type="html">&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Jul 2, 2008 at 1:46 PM, Dean Harding &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18235773&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dean.harding@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
We use a version of 1.2.4 that was ported to win32 that we subsequently&lt;br&gt;
modified to compile in 64-bit mode that I could share if people are&lt;br&gt;
interested.&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;Which version of libevent did you compile that one against?&lt;br&gt;&lt;br&gt;&lt;br&gt;/Henrik Schröder&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Announce%3A-New-feature-complete-version-of-the-BeIT-Memcached-Client-released.-tp17569729p18235773.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-18235709</id>
	<title>Re: Announce: New feature-complete version of the BeIT Memcached Client released.</title>
	<published>2008-07-02T04:46:40Z</published>
	<updated>2008-07-02T04:46:40Z</updated>
	<author>
		<name>Dean Harding</name>
	</author>
	<content type="html">Stephen Johnston wrote:
&lt;br&gt;&amp;gt; I would be very much interested in a Windows Binary that didn't eat up 
&lt;br&gt;&amp;gt; one of our cores.
&lt;br&gt;&lt;br&gt;We use a version of 1.2.4 that was ported to win32 that we subsequently 
&lt;br&gt;modified to compile in 64-bit mode that I could share if people are 
&lt;br&gt;interested.
&lt;br&gt;&lt;br&gt;Shouldn't take much effort for me to update it to 1.2.5 or whatever the 
&lt;br&gt;latest is, either (once we got it working, we didn't really bother with 
&lt;br&gt;updating it :p)
&lt;br&gt;&lt;br&gt;Dean.
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Announce%3A-New-feature-complete-version-of-the-BeIT-Memcached-Client-released.-tp17569729p18235709.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-18235498</id>
	<title>Re: Announce: New feature-complete version of the BeIT Memcached Client released.</title>
	<published>2008-07-02T04:33:20Z</published>
	<updated>2008-07-02T04:33:20Z</updated>
	<author>
		<name>Stephen Johnston</name>
	</author>
	<content type="html">&lt;div&gt;I would be very much interested in a Windows Binary that didn&amp;#39;t eat up one of our cores.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;-Stephen&lt;br&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Jul 2, 2008 at 5:34 AM, Henrik Schröder &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18235498&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;skrolle@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid&quot;&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;
&lt;div class=&quot;Ih2E3d&quot;&gt;On Fri, Jun 6, 2008 at 12:27 AM, Henrik Schröder &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18235498&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;skrolle@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&lt;/div&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid&quot;&gt;
&lt;div class=&quot;Ih2E3d&quot;&gt;
&lt;div&gt;On Thu, Jun 5, 2008 at 8:01 PM, Jeff Rodenburg &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18235498&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeff.rodenburg@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid&quot;&gt;Henrik - can you elaborate on what you&amp;#39;ve found with this?&amp;nbsp; I&amp;#39;m not looking to resolve the issues, just trying to get a better picture of where the bodies are buried, and to convince an all-windows shop that it&amp;#39;s OK to run a few linux instances to support certain application services.&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;Ih2E3d&quot;&gt;On our current project, we run memcached on two servers that are also web servers, and on both machines the memcached process consumes exactly 25% CPU. The weird thing is that those two servers have different hardware. One is a two-processor dual core Xeon at 2,5GHz, and the other is a two-processor dual core Xeon at 1,6GHz. The first one runs Windows Server 2008, the other Windows Server 2003. But the memcached process on each takes up exactly 25% CPU all the time. I can also see on the stats that the second server gets more memcached traffic than the first one, so the second server is slower than the first and gets more traffic, but the CPU use is 25% on both servers.&lt;br&gt;
&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;Ok, thanks to Brodie Thiesfield who managed to produce working Visual Studio projects of Libevent 1.4.4 and Memcached 1.2.5, I&amp;#39;ve compiled my own version. I took his project, added the old memcached icon (These things are important! :) ), fixed a file version number, and compiled everything in my Visual Studio 2005 with whatever optimizations it can do, and finally got to deploy this version live.&lt;br&gt;
&lt;br&gt;It&amp;#39;s been running for a day now, and so far it looks good, still at 0% CPU utilization so hopefully whatever problems the older windows versions of memcached had are gone. I&amp;#39;ll let it run for a week, and if it&amp;#39;s still behaving after that time, I&amp;#39;ll try to make available our binary for those that are interested.&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;&lt;br&gt;/Henrik Schröder&lt;br&gt;&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Announce%3A-New-feature-complete-version-of-the-BeIT-Memcached-Client-released.-tp17569729p18235498.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-18233662</id>
	<title>Re: Announce: New feature-complete version of the BeIT Memcached Client released.</title>
	<published>2008-07-02T02:34:57Z</published>
	<updated>2008-07-02T02:34:57Z</updated>
	<author>
		<name>Henrik Schröder-3</name>
	</author>
	<content type="html">&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Jun 6, 2008 at 12:27 AM, Henrik Schröder &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18233662&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;skrolle@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div class=&quot;Ih2E3d&quot;&gt;On Thu, Jun 5, 2008 at 8:01 PM, Jeff Rodenburg &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18233662&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeff.rodenburg@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&lt;/div&gt;&lt;div class=&quot;Ih2E3d&quot;&gt;&lt;div class=&quot;gmail_quote&quot;&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Henrik - can you elaborate on what you&amp;#39;ve found with this?&amp;nbsp; I&amp;#39;m not looking to resolve the issues, just trying to get a better picture of where the bodies are buried, and to convince an all-windows shop that it&amp;#39;s OK to run a few linux instances to support certain application services.&lt;br&gt;


&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;On our current project, we run memcached on two servers that are also web servers, and on both machines the memcached process consumes exactly 25% CPU. The weird thing is that those two servers have different hardware. One is a two-processor dual core Xeon at 2,5GHz, and the other is a two-processor dual core Xeon at 1,6GHz. The first one runs Windows Server 2008, the other Windows Server 2003. But the memcached process on each takes up exactly 25% CPU all the time. I can also see on the stats that the second server gets more memcached traffic than the first one, so the second server is slower than the first and gets more traffic, but the CPU use is 25% on both servers.&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;Ok, thanks to Brodie Thiesfield who managed to produce working Visual Studio projects of Libevent 1.4.4 and Memcached 1.2.5, I&amp;#39;ve compiled my own version. I took his project, added the old memcached icon (These things are important! :) ), fixed a file version number, and compiled everything in my Visual Studio 2005 with whatever optimizations it can do, and finally got to deploy this version live.&lt;br&gt;
&lt;br&gt;It&amp;#39;s been running for a day now, and so far it looks good, still at 0% CPU utilization so hopefully whatever problems the older windows versions of memcached had are gone. I&amp;#39;ll let it run for a week, and if it&amp;#39;s still behaving after that time, I&amp;#39;ll try to make available our binary for those that are interested.&lt;br&gt;
&lt;br&gt;&lt;br&gt;/Henrik Schröder&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Announce%3A-New-feature-complete-version-of-the-BeIT-Memcached-Client-released.-tp17569729p18233662.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-18231713</id>
	<title>MemcacheDB 1.1.0 beta is released, new BerkeleyDB 4.7 support</title>
	<published>2008-07-02T00:18:48Z</published>
	<updated>2008-07-02T00:18:48Z</updated>
	<author>
		<name>Steve Chu</name>
	</author>
	<content type="html">*MemcacheDB* is a distributed key-value storage system designed for
&lt;br&gt;persistent. It is NOT a cache solution, but a persistent storage
&lt;br&gt;engine for fast and reliable key-value based object storage and
&lt;br&gt;retrieval. It conforms to memcache protocol(not completed, see below),
&lt;br&gt;so any memcached client can have connectivity with it. Memcachedb uses
&lt;br&gt;Berkeley DB as a storing backend, so lots of features including
&lt;br&gt;transaction and replication are supported.
&lt;br&gt;&lt;br&gt;ChangeLog since 1.0.3 version:
&lt;br&gt;&lt;br&gt;2008-07-03 Version 1.1.0-beta released
&lt;br&gt;&lt;br&gt;2008-06-26 Steve Chu &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18231713&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stvchu@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;* unix socket connectivity now has be well tested.
&lt;br&gt;&lt;br&gt;2008-06-13 Steve Chu &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18231713&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stvchu@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;* some code refactoring to improve a bit performance
&lt;br&gt;&lt;br&gt;2008-06-11 Steve Chu &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18231713&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stvchu@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;* now '-b' option is a tuning way, not a limit. item size that smaller than
&lt;br&gt;&amp;nbsp; &amp;nbsp;'-b' value use fast freelist alloc, otherwise, use system 'malloc' instead.
&lt;br&gt;&amp;nbsp; &amp;nbsp;Many thanks to Davies Liu &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18231713&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;davies.liu@...&lt;/a&gt;&amp;gt; for patches and ideas.
&lt;br&gt;&lt;br&gt;2008-06-03 Steve Chu &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18231713&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stvchu@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;* new support to BerkeleyDB 4.7
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- new version is BerkeleyDB 4.7 only, due to the changed bdb api
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- 'rep_set_request' now use time, not the number of messages
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;* Bugfix: 'pkget' and &amp;quot;multiple get&amp;quot; that return lots of items may
&lt;br&gt;&amp;nbsp; &amp;nbsp;cause memory overflow so the daemon crashes. Thanks to Davies Liu
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18231713&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;davies.liu@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;* flooded verbose messages of bdb and replication now move to '-vv' option
&lt;br&gt;&lt;br&gt;2008-04-13 Steve Chu &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18231713&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stvchu@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;* Changes:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- allow limitation to 'pkget' and 'pvget' command,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;use 'pkget/pvget &amp;lt;prefix&amp;gt; [limit]' to get limited matched items.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- 'memcache.py' is also patched for this feature.
&lt;br&gt;&lt;br&gt;2008-04-03 Steve Chu &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18231713&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stvchu@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;* New features:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- add '-T' option to set database type, 'btree' or 'hash'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- add '-E' option to enable second database, so we can use 'pvget'
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- new command 'pkget' that you can get items with a key prefix
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- new command 'pvget' that you can get items with a value prefix
&lt;br&gt;&amp;nbsp; &amp;nbsp;* Changes:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- add support to memcache.py for 'pkget' and 'pvget' command, see
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'tools/memcache.py'
&lt;br&gt;&lt;br&gt;for more info, please visit: &lt;a href=&quot;http://memcachedb.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://memcachedb.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Steve Chu
&lt;br&gt;&lt;a href=&quot;http://stvchu.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://stvchu.org&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/MemcacheDB-1.1.0-beta-is-released%2C-new-BerkeleyDB-4.7-support-tp18231713p18231713.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-18225571</id>
	<title>Re: Help? seg-fault...</title>
	<published>2008-07-01T14:20:27Z</published>
	<updated>2008-07-01T14:20:27Z</updated>
	<author>
		<name>Dustin Sallings</name>
	</author>
	<content type="html">&lt;br&gt;On Jul 1, 2008, at 13:35, Michael Wieher wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; It is a guarantee that &amp;quot;code&amp;quot; is never more than 8 characters,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; That's not a guarantee. &amp;nbsp;snprintf is a guarantee.
&lt;br&gt;&lt;br&gt;&amp;gt; file
&lt;br&gt;&amp;gt; ranges from 2-digits to 3, max, and location wouldn't ever be more
&lt;br&gt;&amp;gt; than 10 characters. &amp;nbsp;So, I'm looking at a string of max 21 chars, I
&lt;br&gt;&amp;gt; made it 32.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; These inputs come from controlled static sources, not user input.
&lt;br&gt;&amp;gt; However I did recompile w/asserts and they passed w/o issues.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I can't say for sure what's going on in your code without seeing it &amp;nbsp;
&lt;br&gt;as a whole, but these kinds of things are smells. &amp;nbsp;Any place you &amp;nbsp;
&lt;br&gt;assume something, just stick an assertion in the code to both document &amp;nbsp;
&lt;br&gt;and enforce it. &amp;nbsp;Makes it a lot harder to write bugs.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; You seem to be missing symbols from the valgrind output. &amp;nbsp;Perhaps &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; you should
&lt;br&gt;&amp;gt;&amp;gt; compile the debugging symbols in.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I know. &amp;nbsp;It's a bit of a strange situation, in that I'm actually
&lt;br&gt;&amp;gt; compiling a shared-library.so file that is imported into and run by
&lt;br&gt;&amp;gt; Python, but the compilation itself of the C++ library is done with -g
&lt;br&gt;&amp;gt; ... so I'm at a bit of a loss as how to get a different angle on it,
&lt;br&gt;&amp;gt; without basically writing a wrapper-driver to compile &amp; test the
&lt;br&gt;&amp;gt; sucker at the C/C++ level, before then wrapping it into Python.
&lt;/div&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Yeah, definitely test the parts in the most simple way possible. &amp;nbsp; 
&lt;br&gt;You've got a really simple error somewhere. &amp;nbsp;The less code you have to &amp;nbsp;
&lt;br&gt;look at, the easier it'll be to find.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; See also: &amp;nbsp;The Underhaded C Contest. &amp;nbsp;:)
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Dustin Sallings
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Help--seg-fault...-tp18223537p18225571.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-18225325</id>
	<title>Re: Multi-instance on Win2K3?</title>
	<published>2008-07-01T14:07:04Z</published>
	<updated>2008-07-01T14:07:04Z</updated>
	<author>
		<name>Henrik Schröder-3</name>
	</author>
	<content type="html">Hi Matthew,&lt;br&gt;&lt;br&gt;Kinda derailing here, but are you only going to run memcached on that server? If so, you really do not need the CPU power, spend the money on RAM instead.&lt;br&gt;&lt;br&gt;&lt;br&gt;/Henrik Schröder&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;
On Tue, Jul 1, 2008 at 10:30 PM, Matthew Drayer &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18225325&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mdrayer@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;










&lt;div link=&quot;blue&quot; vlink=&quot;blue&quot; lang=&quot;EN-US&quot;&gt;

&lt;div&gt;

&lt;div&gt;

&lt;p&gt;&lt;font size=&quot;2&quot; color=&quot;navy&quot; face=&quot;Arial&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial; color: navy;&quot;&gt;So, most likely our official deployment
will be to a 64bit Linux machine which would initially have 2GB of RAM and two monster
CPUs.&amp;nbsp; If situation #2 isn't an issue, would it be best to run a single
instance of Memcached, or split the RAM into two instances?&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=&quot;2&quot; color=&quot;navy&quot; face=&quot;Arial&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial; color: navy;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div style=&quot;text-align: center;&quot; align=&quot;center&quot;&gt;&lt;font size=&quot;3&quot; face=&quot;Times New Roman&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;

&lt;hr size=&quot;2&quot; width=&quot;100%&quot; align=&quot;center&quot;&gt;

&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;

&lt;p&gt;&lt;b&gt;&lt;font size=&quot;2&quot; face=&quot;Tahoma&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Tahoma; font-weight: bold;&quot;&gt;From:&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size=&quot;2&quot; face=&quot;Tahoma&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Tahoma;&quot;&gt; Stephen Johnston
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18225325&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stephen.johnston@...&lt;/a&gt;] &lt;br&gt;
&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Sent:&lt;/span&gt;&lt;/b&gt; Tuesday, July 01, 2008 4:26
PM&lt;div class=&quot;Ih2E3d&quot;&gt;&lt;br&gt;
&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;To:&lt;/span&gt;&lt;/b&gt; Matthew Drayer&lt;br&gt;
&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Cc:&lt;/span&gt;&lt;/b&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18225325&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;memcached@...&lt;/a&gt;&lt;br&gt;
&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Subject:&lt;/span&gt;&lt;/b&gt; Re: Multi-instance on
Win2K3?&lt;/div&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;p&gt;&lt;font size=&quot;3&quot; face=&quot;Times New Roman&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div&gt;

&lt;p&gt;&lt;font size=&quot;3&quot; face=&quot;Times New Roman&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;I think that CPU is rarely why people do this. From what I&amp;#39;ve seen and
read there are a few common cases:&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;Wj3C7c&quot;&gt;

&lt;div&gt;

&lt;p&gt;&lt;font size=&quot;3&quot; face=&quot;Times New Roman&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p&gt;&lt;font size=&quot;3&quot; face=&quot;Times New Roman&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;1. You have 384mb on one machine and 128mb on another available. You
make 4 instances so their eviction pattern is similar and the client can treat
them as identical, and your expected behavior for them will be
similar,&amp;nbsp;and write across them equally without a 384mb &amp;lt;-&amp;gt; 128mb
pair of server causing wierd imbalances. The clients that I have seen don&amp;#39;t
take cache size into account when considering which instance to use.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p&gt;&lt;font size=&quot;3&quot; face=&quot;Times New Roman&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p&gt;&lt;font size=&quot;3&quot; face=&quot;Times New Roman&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;2. You have a situation where you store items with&amp;nbsp;no delete time
(they live for ever), but you have limited memory. your no delete time items
are expensive to recreate. You also have alot of less expensive items to recreate
that may lead to your expensive ones being evicted. You use one instance sized
for the items that live forever and another for the ongoing
&amp;quot;evictable&amp;quot; items.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p&gt;&lt;font size=&quot;3&quot; face=&quot;Times New Roman&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p&gt;&lt;font size=&quot;3&quot; face=&quot;Times New Roman&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;I&amp;#39;m sure others have some use cases, but those are the two I&amp;#39;ve seen
mentioned commonly.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p&gt;&lt;font size=&quot;3&quot; face=&quot;Times New Roman&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p style=&quot;margin-bottom: 12pt;&quot;&gt;&lt;font size=&quot;3&quot; face=&quot;Times New Roman&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;-Stephen&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p&gt;&lt;font size=&quot;3&quot; face=&quot;Times New Roman&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;On Tue, Jul 1, 2008 at 4:17 PM, Matthew Drayer &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18225325&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mdrayer@...&lt;/a&gt;&amp;gt; wrote:&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;


&lt;div vlink=&quot;blue&quot; link=&quot;blue&quot;&gt;

&lt;div&gt;

&lt;p&gt;&lt;font size=&quot;2&quot; color=&quot;navy&quot; face=&quot;Arial&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial; color: navy;&quot;&gt;Probably not at such a low level, no &lt;/span&gt;&lt;/font&gt;&lt;font size=&quot;2&quot; color=&quot;navy&quot; face=&quot;Wingdings&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Wingdings; color: navy;&quot;&gt;J&lt;/span&gt;&lt;/font&gt;&lt;font size=&quot;2&quot; color=&quot;navy&quot; face=&quot;Arial&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial; color: navy;&quot;&gt;&amp;nbsp; but, this was more
for a proof-of-concept to show my team how it might work.&amp;nbsp; I assume we&amp;#39;ll
only distribute out if we find we&amp;#39;re pushing the limits of RAM or CPU
utilization.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=&quot;2&quot; color=&quot;navy&quot; face=&quot;Arial&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial; color: navy;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=&quot;2&quot; color=&quot;navy&quot; face=&quot;Arial&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial; color: navy;&quot;&gt;Matt&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;

&lt;/div&gt;


&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Multi-instance-on-Win2K3--tp18223078p18225325.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-18224934</id>
	<title>Re: Multi-instance on Win2K3?</title>
	<published>2008-07-01T13:43:57Z</published>
	<updated>2008-07-01T13:43:57Z</updated>
	<author>
		<name>Janusz Dziemidowicz</name>
	</author>
	<content type="html">2008/7/1 Stephen Johnston &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18224934&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stephen.johnston@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; I think that CPU is rarely why people do this. From what I've seen and read
&lt;br&gt;&amp;gt; there are a few common cases:
&lt;br&gt;&lt;br&gt;Another case is if memcached crashes or must be restarted (for example
&lt;br&gt;due to some critical bugfix). Sometimes it is very painful to restart
&lt;br&gt;one instance with few GBs of cached data, it is better to have a
&lt;br&gt;couple if instances with less data that can be restarted one at a
&lt;br&gt;time. But this depends on what is cached and how painful it is when
&lt;br&gt;the cache is lost.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Janusz Dziemidowicz
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Multi-instance-on-Win2K3--tp18223078p18224934.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-18224792</id>
	<title>Re: Help? seg-fault...</title>
	<published>2008-07-01T13:35:16Z</published>
	<updated>2008-07-01T13:35:16Z</updated>
	<author>
		<name>Michael Wieher</name>
	</author>
	<content type="html">&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;sprintf(qstring,&amp;quot;%s%d%lu&amp;quot;,code,cur-&amp;gt;file,cur-&amp;gt;location);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; sprintf is generally not recommended. &amp;nbsp;It doesn't seem terribly hard to get
&lt;br&gt;&amp;gt; it to exceed your stack buffer here.
&lt;br&gt;&lt;br&gt;It is a guarantee that &amp;quot;code&amp;quot; is never more than 8 characters, file
&lt;br&gt;ranges from 2-digits to 3, max, and location wouldn't ever be more
&lt;br&gt;than 10 characters. &amp;nbsp;So, I'm looking at a string of max 21 chars, I
&lt;br&gt;made it 32.
&lt;br&gt;These inputs come from controlled static sources, not user input.
&lt;br&gt;However I did recompile w/asserts and they passed w/o issues.
&lt;br&gt;&lt;br&gt;&amp;gt; You seem to be missing symbols from the valgrind output. &amp;nbsp;Perhaps you should
&lt;br&gt;&amp;gt; compile the debugging symbols in.
&lt;br&gt;&lt;br&gt;I know. &amp;nbsp;It's a bit of a strange situation, in that I'm actually
&lt;br&gt;compiling a shared-library.so file that is imported into and run by
&lt;br&gt;Python, but the compilation itself of the C++ library is done with -g
&lt;br&gt;... so I'm at a bit of a loss as how to get a different angle on it,
&lt;br&gt;without basically writing a wrapper-driver to compile &amp; test the
&lt;br&gt;sucker at the C/C++ level, before then wrapping it into Python.
&lt;br&gt;&lt;br&gt;thanks though...
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Help--seg-fault...-tp18223537p18224792.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-18224739</id>
	<title>RE: Multi-instance on Win2K3?</title>
	<published>2008-07-01T13:30:26Z</published>
	<updated>2008-07-01T13:30:26Z</updated>
	<author>
		<name>Matthew Drayer-2</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 11 (filtered medium)&quot;&gt;
&lt;!--[if !mso]&gt;
&lt;style&gt;
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
&lt;/style&gt;
&lt;![endif]--&gt;


&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=blue&gt;

&lt;div class=Section1&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;So, most likely our official deployment
will be to a 64bit Linux machine which would initially have 2GB of RAM and two monster
CPUs.&amp;nbsp; If situation #2 isn&amp;#8217;t an issue, would it be best to run a single
instance of Memcached, or split the RAM into two instances?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div class=MsoNormal align=center style='text-align:center'&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;

&lt;hr size=2 width=&quot;100%&quot; align=center tabindex=-1&gt;

&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'&gt;From:&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;font-family:Tahoma'&gt; Stephen Johnston
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18224739&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stephen.johnston@...&lt;/a&gt;] &lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Sent:&lt;/span&gt;&lt;/b&gt; Tuesday, July 01, 2008 4:26
PM&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;To:&lt;/span&gt;&lt;/b&gt; Matthew Drayer&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Cc:&lt;/span&gt;&lt;/b&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18224739&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;memcached@...&lt;/a&gt;&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Subject:&lt;/span&gt;&lt;/b&gt; Re: Multi-instance on
Win2K3?&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;I think that CPU is rarely why people do this. From what I've seen and
read there are a few common cases:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;1. You have 384mb on one machine and 128mb on another available. You
make 4 instances so their eviction pattern is similar and the client can treat
them as identical, and your expected behavior for them will be
similar,&amp;nbsp;and write across them equally without a 384mb &amp;lt;-&amp;gt; 128mb
pair of server causing wierd imbalances. The clients that I have seen don't
take cache size into account when considering which instance to use.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;2. You have a situation where you store items with&amp;nbsp;no delete time
(they live for ever), but you have limited memory. your no delete time items
are expensive to recreate. You also have alot of less expensive items to recreate
that may lead to your expensive ones being evicted. You use one instance sized
for the items that live forever and another for the ongoing
&amp;quot;evictable&amp;quot; items.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;I'm sure others have some use cases, but those are the two I've seen
mentioned commonly.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal style='margin-bottom:12.0pt'&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;-Stephen&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;On Tue, Jul 1, 2008 at 4:17 PM, Matthew Drayer &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18224739&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mdrayer@...&lt;/a&gt;&amp;gt; wrote:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div vlink=blue link=blue&gt;

&lt;div&gt;

&lt;p&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:
Arial;color:navy'&gt;Probably not at such a low level, no &lt;/span&gt;&lt;/font&gt;&lt;font size=2 color=navy face=Wingdings&gt;&lt;span style='font-size:10.0pt;font-family:
Wingdings;color:navy'&gt;J&lt;/span&gt;&lt;/font&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial;color:navy'&gt;&amp;nbsp; but, this was more
for a proof-of-concept to show my team how it might work.&amp;nbsp; I assume we'll
only distribute out if we find we're pushing the limits of RAM or CPU
utilization.&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:
Arial;color:navy'&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:
Arial;color:navy'&gt;Matt&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Multi-instance-on-Win2K3--tp18223078p18224739.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-18224611</id>
	<title>Re: Multi-instance on Win2K3?</title>
	<published>2008-07-01T13:25:44Z</published>
	<updated>2008-07-01T13:25:44Z</updated>
	<author>
		<name>Stephen Johnston</name>
	</author>
	<content type="html">&lt;div&gt;I think that CPU is rarely why people do this. From what I&amp;#39;ve seen and read there are a few common cases:&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;1. You have 384mb on one machine and 128mb on another available. You make 4 instances so their eviction pattern is similar and the client can treat them as identical, and your expected behavior for them will be similar,&amp;nbsp;and write across them equally without a 384mb &amp;lt;-&amp;gt; 128mb pair of server causing wierd imbalances. The clients that I have seen don&amp;#39;t take cache size into account when considering which instance to use.&lt;/div&gt;

&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;2. You have a situation where you store items with&amp;nbsp;no delete time (they live for ever), but you have limited memory. your no delete time items are expensive to recreate. You also have alot of less expensive items to recreate that may lead to your expensive ones being evicted. You use one instance sized for the items that live forever and another for the ongoing &amp;quot;evictable&amp;quot; items.&lt;/div&gt;

&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;I&amp;#39;m sure others have some use cases, but those are the two I&amp;#39;ve seen mentioned commonly.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;-Stephen&lt;br&gt;&lt;br&gt;&lt;/div&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Jul 1, 2008 at 4:17 PM, Matthew Drayer &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=18224611&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mdrayer@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid&quot;&gt;
&lt;div lang=&quot;EN-US&quot; vlink=&quot;blue&quot; link=&quot;blue&quot;&gt;
&lt;div&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; color=&quot;navy&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial&quot;&gt;Probably not at such a low level, no &lt;/span&gt;&lt;/font&gt;&lt;font face=&quot;Wingdings&quot; color=&quot;navy&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Wingdings&quot;&gt;J&lt;/span&gt;&lt;/font&gt;&lt;font face=&quot;Arial&quot; color=&quot;navy&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial&quot;&gt;&amp;nbsp; but, this was more for a proof-of-concept to show my team how it might work.&amp;nbsp; I assume we'll only distribute out if we find we're pushing the limits of RAM or CPU utilization.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;font face=&quot;Arial&quot; color=&quot;navy&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; color=&quot;navy&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial&quot;&gt;Matt&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Multi-instance-on-Win2K3--tp18223078p18224611.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-18224585</id>
	<title>Re: Help? seg-fault...</title>
	<published>2008-07-01T13:24:14Z</published>
	<updated>2008-07-01T13:24:14Z</updated>
	<author>
		<name>Dustin Sallings</name>
	</author>
	<content type="html">&lt;html&gt;&lt;body style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;&lt;br&gt;&lt;div&gt;&lt;div&gt;On Jul 1, 2008, at 13:03, Michael Wieher wrote:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;(a few spaces would make this easier to read)&lt;/div&gt;&lt;br class=&quot;Apple-interchange-newline&quot;&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: rgb(0, 0, 0); font-family: -webkit-monospace; font-size: 10px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; &quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;sprintf(qstring,&quot;%s%d%lu&quot;,code,cur-&gt;file,cur-&gt;location);&lt;/span&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;sprintf is generally not recommended. &amp;nbsp;It doesn't seem terribly hard to get it to exceed your stack buffer here.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;It would be valuable at least to check the return value to ensure it is strictly less than the size of your buffer.&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;An assert(strlen(qstring) &amp;lt; sizeof(qstring)) would also help with that.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: rgb(0, 0, 0); font-family: -webkit-monospace; font-size: 10px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; &quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;char * tempbuff = (char*)calloc(sizeof(char),cur-&gt;size);&lt;/span&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;assert(tempbuff);&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;You seem to be missing symbols from the valgrind output. &amp;nbsp;Perhaps you should compile the debugging symbols in.&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; &quot;&gt;&lt;div style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;&lt;div&gt;--&amp;nbsp;&lt;/div&gt;&lt;div&gt;Dustin Sallings&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; &lt;/div&gt;&lt;br&gt;&lt;/body&gt;&lt;/html&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Help--seg-fault...-tp18223537p18224585.html" />
</entry>

</feed>
