Re: [memcache/PECL] Performance problems with set & data over 8KB

From: Date: Sun, 23 Apr 2006 20:00:56 +0000
Subject: Re: [memcache/PECL] Performance problems with set & data over 8KB
References: 1 2 3 4  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-3724@lists.php.net to get a copy of this message
When I run the test: 6KB comes up very quick -- 12662 set/s 13269 get/s 7KB comes up very quick -- 12116 set/s 13017 get/s 8KB comes up very slow -- 9810 set/s 11953 get/s 9KB comes up even slower- 10212 set/s -1092 get/s linux -- php 5.0.4 -- memcache2 w/ memcache.chunk_size = 32768 On 4/23/06, Mikael Johansson <mikael@synd.info> wrote: > Setting the chunk size > 16k seem to mitigate the problem, I've added an ini > config directive "memcache.chunk_size" for this purpose. Using > "memcache.chunk_size = 32768" in php.ini or > "ini_set('memcache.chunk_size', > 32768);" should do the trick. > > The changes are in CVS, checking out a copy is as easy as: > > cvs -d :pserver:cvsread@cvs.php.net:/repository login > cvs -d :pserver:cvsread@cvs.php.net:/repository co pecl/memcache > > Would you mind checking to see that the problem does indeed disappear with > larger chunk sizes in your environment? > > //Mikael > > ----- Original Message ----- > From: "Antony Dovgal" <antony@zend.com> > To: "Mikael Johansson" <mikael@synd.info> > Cc: "Jean-François Bustarret" <jfbubus@gmail.com>; > <memcached@lists.danga.com>; <pecl-dev@lists.php.net> > Sent: Sunday, April 23, 2006 7:53 PM > Subject: Re: [PECL-DEV] [memcache/PECL] Performance problems with set & data > over 8KB > > > > Probably this is somehow related to the problem I've met in the past: > > > > http://cvs.php.net/viewcvs.cgi/pecl/memcache/memcache.c?r1=1.8&r2=1..9 > > > > The problem is that two subsequent writes to memcached daemon are MUCH > > more slower than one writing the same data in one chunk. > > > > This was the reason why I had to patch PECL/memcache 2 years ago and make > > it write the data and the delimiter ("\r\n") in one call. > > I don't remember details of the conversation I had with Brad and Anatoly, > > but I still don't know the reasons of this behavior. > > -- > PECL development discussion Mailing List (http://pecl.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- ~~~ This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient (s) named above. Any use of the information contained herein ( including, but not limited to, total or partial reproduction, communication or distribution in any form) by other persons than the designated recipient (s) is prohibited. If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer.

« previous php.pecl.dev (#3724) next »