Lot of misses

2010-08-18 Thread marrra
Hi, I'm using memcached for caching search suggest box. I've done this: Set lifetime for all items to 30 hours and restart memcached. After 24hours are stored about 87000 items in memcached and in last 2 hours was added only few items. When I look at graf (bijk.com) I see cache hits and misses

Re: eliminating the taking lock for cqi_freelist

2010-08-18 Thread ilnarb
--- thread.c.orig 2010-04-03 11:07:16.0 +0400 +++ thread.c2010-08-18 13:03:50.0 +0400 @@ -11,7 +11,8 @@ #include string.h #include pthread.h -#define ITEMS_PER_ALLOC 64 +#define CACHE_LINE_SIZE 64 +#define ITEMS_PER_ALLOC 256 /* An item in the connection queue. */

Re: Issue 149 in memcached: memcached.exe exits with Failed to ignore SIGHUP

2010-08-18 Thread memcached
Comment #13 on issue 149 by kinguru2006: memcached.exe exits with Failed to ignore SIGHUP http://code.google.com/p/memcached/issues/detail?id=149 How to run memcached as a service? On windows it is a great prbolem, if you dont know. While creating with SC, service not starting. HELP! Use

Re: eliminating the taking lock for cqi_freelist

2010-08-18 Thread ilnarb
Some little bit changes: Using the fact that dispatcher keep balance between threads while dispatch new connections, we can move out freelist into conn_queue without any problem with unbalanced size of free items on each conn_queue. Also I eliminate tailing while .. free code in cq_push in my

Re: Issue 149 in memcached: memcached.exe exits with Failed to ignore SIGHUP

2010-08-18 Thread memcached
Comment #14 on issue 149 by skrolle: memcached.exe exits with Failed to ignore SIGHUP http://code.google.com/p/memcached/issues/detail?id=149 @kinguru: You have two options. The first solution is to run an older version of memcached that still can be installed and run as a service. You

Re: Lot of misses

2010-08-18 Thread Matt Ingenthron
marrra wrote: Hi, I'm using memcached for caching search suggest box. I've done this: Set lifetime for all items to 30 hours and restart memcached. After 24hours are stored about 87000 items in memcached and in last 2 hours was added only few items. When I look at graf (bijk.com) I see cache

Re: Lot of misses

2010-08-18 Thread marrra
I am new to memcached. if i understand it well, evictions menas memcached is out memory ? I've changed memory to 256MB. I hope it will work. Thank you. Best regards. On Aug 18, 6:41 pm, Matt Ingenthron ingen...@cep.net wrote: marrra wrote: Hi, I'm using memcached for caching search

Re: Lot of misses

2010-08-18 Thread Matt Ingenthron
marrra wrote: I am new to memcached. if i understand it well, evictions menas memcached is out memory ? Yes. memcached is an LRU(ish) cache. Therefore, when you go beyond the memory available, it'll find an old item to evict to store the new item you're asking it to store. Since

is there a way to tell if a memcached client is still alive / connected?

2010-08-18 Thread Chad Chen
I am trying to find a way to check if the memcachedclient is still alive or not but it seems to be there is no public api for me to do so. Can someone clarify this? Thanks. Chad

is there a way to tell if a memcached client is still alive / connected?

2010-08-18 Thread Chad
I am trying to find a way to check if the memcachedclient is still alive or not but it seems to be there is no public api for me to do so. Can someone clarify this? Thanks. Chad

Re: is there a way to tell if a memcached client is still alive / connected?

2010-08-18 Thread Matt Ingenthron
Chad wrote: I am trying to find a way to check if the memcachedclient is still alive or not but it seems to be there is no public api for me to do so. Can someone clarify this? Not really. You should be able to use system level tools (i.e. netstat -a | grep 11211) to see connections in the

Re: is there a way to tell if a memcached client is still alive / connected?

2010-08-18 Thread dormando
sto On Wed, 18 Aug 2010, Chad wrote: I am trying to find a way to check if the memcachedclient is still alive or not but it seems to be there is no public api for me to do so. Can someone clarify this? Thanks. Chad

Re: is there a way to tell if a memcached client is still alive / connected?

2010-08-18 Thread Matt Ingenthron
dormando wrote: sto I'm pretty sure he sent it only once. I think this is a problem with Google's SMTP and MTAs if I recall correctly. This happened on a majordomo based list I am on, and it died down after a little bit. I

Re: is there a way to tell if a memcached client is still alive / connected?

2010-08-18 Thread dormando
On Wed, 18 Aug 2010, Matt Ingenthron wrote: dormando wrote: sto I'm pretty sure he sent it only once. I think this is a problem with Google's SMTP and MTAs if I recall correctly. This happened on a majordomo based list I