Re: Memcached make many SI (Software Interrupts)

2010-09-28 Thread Jay Paroline
We've run into this exact same issue and narrowed it down to the NIC, but don't really know where to go from there. I'm going to look up Dormando's suggestions but if anyone else has experience with this and can point us in the right direction, it would be greatly appreciated. Thanks, Jay On

Re: Suggestions for deferring DB write using memcached

2010-06-04 Thread Jay Paroline
One more shop here that uses gearmand for this!

Re: memcached limitation

2010-04-20 Thread Jay Paroline
:evicted_time 0 STAT items:40:outofmemory 0 STAT items:40:tailrepairs 0 END On Apr 20, 12:40 am, Dustin dsalli...@gmail.com wrote: On Apr 19, 9:04 pm, Jay Paroline boxmon...@gmail.com wrote: Interestingly, I also recently noticed that we are using around 75% of the allocated space on each of our

Re: memcached limitation

2010-04-19 Thread Jay Paroline
Interestingly, I also recently noticed that we are using around 75% of the allocated space on each of our buckets even though they have been up for 7.5 months. For us that's still more than enough space so I'm not worried about it. If it helps at all we're using an older version of memcached,

Re: PHP and persistent connections

2010-04-07 Thread Jay Paroline
Ok, I think I wasn't clear enough in my question, so I wrote a simple example. ?php set_time_limit(0); $m = new Memcached('pool'); $m-addServer('172.16.0.64', 11211); $m-add('monkeys', '5'); while(1){ $m-get('monkeys'); sleep(5); } ? If 5 of these are running at the same time, I would

PHP and persistent connections

2010-04-06 Thread Jay Paroline
Currently we are (still) stuck using the PECL memcache extension, but hopefully soon we will be moving to the libmemcached based PECL memcached extension. I am trying to figure out if there is any way to set it up to use persistent/shared connections. Currently every apache/PHP process ends up

Re: Switching from pecl/memcache to pecl/memcached

2010-02-02 Thread Jay Paroline
if they set the same flag when sending compressed data.  I have not had a reason to look into it. A simple test would tell you for sure. Just try it out on your test systems and see how it works.  Report back. Brian. http://brian.moonspot.net/ On 2/1/10 11:51 PM, Jay Paroline wrote

Switching from pecl/memcache to pecl/memcached

2010-02-01 Thread Jay Paroline
Hi all, We're in the process of switching from the pecl memcache extension to the pecl memcached extension, but we would like to start out by doing a very limited rollout of the memcached extension so we can compare performance and make sure everything is working as expected. The documentation

Problems with binary protocol and memcached PECL extension

2010-01-06 Thread Jay Paroline
Hi guys, I posted this to the libmemcached mailing list a while ago and didn't get a response, but this list is a lot more active so I'm hoping someone here will have answers for me. :) I've taken some time to work on porting our code from using the PHP PECL memcache extension to using the PECL

Re: Problems with binary protocol and memcached PECL extension

2010-01-06 Thread Jay Paroline
://brian.moonspot.net/ On 1/6/10 3:38 PM, Jay Paroline wrote: Hi guys, I posted this to the libmemcached mailing list a while ago and didn't get a response, but this list is a lot more active so I'm hoping someone here will have answers for me. :) I've taken some time to work on porting our code

Re: Problems with binary protocol and memcached PECL extension

2010-01-06 Thread Jay Paroline
. http://brian.moonspot.net/ On 1/6/10 3:45 PM, Jay Paroline wrote: It looks like both/either. I added print statements in front of each, and it doesn't get to the get. If I comment out the set, then it hangs on the get. Thanks, Jay On Jan 6, 4:43 pm, Brian Moonbr

Re: Problems with binary protocol and memcached PECL extension

2010-01-06 Thread Jay Paroline
^^the above works What the heck is the difference? Jay On Jan 6, 5:15 pm, Trond Norbye trond.nor...@gmail.com wrote: Try running your server from a console and add -vvv to the command line. Does ti print out any progress? On Wednesday, January 6, 2010, Jay Paroline boxmon...@gmail.com wrote

Re: Problems with binary protocol and memcached PECL extension

2010-01-06 Thread Jay Paroline
/bin I made a sym link from /usr/bin to /usr/local/bin and restarted, and it works like magic. Jay On Jan 6, 8:11 pm, Jay Paroline boxmon...@gmail.com wrote: This is very odd. If I run it from the command line (with or without vv) it works as expected. If it starts from init.d it doesn't work

Using memcached as a distributed file cache

2009-11-02 Thread Jay Paroline
I'm running this by you guys to make sure we're not trying something completely insane. ;) We already rely on memcached quite heavily to minimize load on our DB with stunning success, but as a music streaming service, we also serve up lots and lots of 5-6MB files, and right now we don't have a

Re: Using memcached as a distributed file cache

2009-11-02 Thread Jay Paroline
for this purpose, e.g. squid set up as a reverse proxy. On Mon, Nov 2, 2009 at 4:35 PM, Jay Paroline boxmon...@gmail.com wrote: I'm running this by you guys to make sure we're not trying something completely insane. ;) We already rely on memcached quite heavily to minimize load on our DB

Re: dormando's awesome memcached top v0.1

2009-10-29 Thread Jay Paroline
Just got this running on my box pointing at all our servers, so far it's looking good! The only hiccup for me was that it expected the yaml file to be in /etc and I was just editing it in place. Paying attention to the error message made it pretty obvious what I did wrong though. Jay dormando

Re: Copy complete cache from one server to an other via script

2009-08-19 Thread Jay Paroline
Actually if anyone can provide hints about existing memcached replication solutions, especially for php, that would make me very happy. We have some keys that are very expensive to regenerate when they fall out of memcached, so losing a bucket due to server failure, maintenance, etc. is very

1.2.6 to 1.2.8 or 1.4.0?

2009-08-05 Thread Jay Paroline
Hello, We've been having some intermittent memcached connection issues and I noticed that we are a couple of releases behind. Our current version is 1.2.6. Before I nag our admin about upgrading, is there any reason why it might be more wise to go to 1.2.8 rather than make the leap to 1.4.0?

Re: memcache VS mysql query cache

2009-06-22 Thread Jay Paroline
Another major disadvantage to the mysql query cache is that any time data in a table is modified, all queries in the cache selecting or joining across that table have to be invalidated. If you have a lot of writes happening, your query cache will be virtually useless. At Grooveshark we have

Re: Problem with memcached + hibernate: Timeout waiting for value

2009-06-11 Thread Jay Paroline
This might be an obvious question, but have you verified that memcached is not going in to swap? thengil wrote: I've turned on GC logging and unfortunately it seems that the problem is not ONLY due to full GCs. We've observed a full GC that took 1.2 seconds and that led to timeouts, but we've

Re: Memcached Use In Low Latency, High Write environments

2009-06-01 Thread Jay Paroline
We are doing slightly more writes than reads, and performance is still quite acceptable. Unfortunately I don't have any recent benchmarks, however.

Re: typical expiration times?

2009-04-20 Thread Jay Paroline
We look at the expiration time as the answer to the question: how stale can your data be and still be ok? for anything that is remotely likely to fail to be invalidated. For us, 24 hours is what we use for general system-state data and cached search results. Nobody really cares or can tell if

Re: creating a key

2009-04-15 Thread Jay Paroline
Using a prefix can be handy. If you need to flush all queries from memcache at the same time, while leaving other data in memcache, for example, a simple way to do that is to simply change the prefix you are using for queries. The key will be different, so all the old entries are automatically no

Re: Webconsole debugging tool built into memcached

2009-03-13 Thread Jay Paroline
Hi Clint, This looks like a potentially incredibly useful tool for debugging. I would be hesitant to commit to having that on our production servers, but I would certainly run it on our dev servers. Anyway, being able to see all keys by name is actually not all that helpful for me because we