Re: memcached - expire (again)

2009-07-28 Thread Mike Lambert
Werner you never mentioned which version of memcache you're using. For what it's worth, it seems things differ between 1.4.0 and 1.2.6. (Haven't peeked at 1.3.x series.) 1.2.6 will allocate a new slab if memory is available, before grabbing the last item off the free list (which may or may not ha

Re: memcached - expire (again)

2009-07-28 Thread dl4ner
Mike, > Werner you never mentioned which version of memcache you're using. For > what it's worth, it seems things differ between 1.4.0 and 1.2.6. > (Haven't peeked at 1.3.x series.) Sorry. I started this before 1.4 has been out, and as we are running in production environment, we are using 1.2.6

Re: hashing question

2009-07-28 Thread Henrik Schröder
I don't know, I'm just guessing. :-) But there's really only two scenarios that are possible: 1) Ajeet's test is broken, he doesn't really store 5 million unique items, and fails to detect the cache misses. 2) Stats is broken, Ajeet stores 5 million unique items, but the server counts them incorr

Memcache Question

2009-07-28 Thread Beyza
Hi, This is not an important question, but I wonder the answer. When I develop websites by using memcache, I also use it for spam checking. For example; When someone post a comment, or report something, or search something, I create a memcache object and set an expiration time, i.e. 5 seconds.

Re: Memcache Question

2009-07-28 Thread Josef Finsel
Another question you might want to ask is how are you going to handle it if the item has been evicted from the cache? Someone could be spamming you and you wouldn't catch it. Granted, that would have to be a cache with a high-eviction rate but it's still a possibility you might want to consider.

Re: Memcache Question

2009-07-28 Thread Adam Lee
No, this is not very expensive. We use memcached for a lot of our rate-control here. On Tue, Jul 28, 2009 at 12:04 PM, Beyza wrote: > > Hi, > > This is not an important question, but I wonder the answer. > > When I develop websites by using memcache, I also use it for spam > checking. > > For e

Re: Memcache Question

2009-07-28 Thread Colin Pitrat
Well, I'd say that for double-post and spam control, it's not a big problem if sometime it doesn't work. I mean, with this kind of algorithm he already accept one spamming message, so two is not a problem. 2009/7/28 Josef Finsel : > Another question you might want to ask is how are you going to h

Re: Memcache Question

2009-07-28 Thread Josef Finsel
Granted, Colin, but I wouldn't want anyone coming across a simple implementation like this and then expand upon it without the realization that memcached is not a persistent data store. On Tue, Jul 28, 2009 at 12:41 PM, Colin Pitrat wrote: > > Well, I'd say that for double-post and spam control,

Re: Memcache Question

2009-07-28 Thread Adam Lee
This sort of information is inherently fairly transient, though, I'd say. Unless you're getting a huge amount of spam from a lot of different user IDs or your cache is already running very near to capacity (in which cases you already have bigger problems), I'd say it should work in the great major

Re: Patch to allow -F option to disable flush_all

2009-07-28 Thread Aaron Stone
Maybe more esoteric options should come through a single flag, ala ssh, where you can have "-o UnusualOption=foo". That reduces the number of single-letter flags in the command-line flag namespace. On Sat, Jul 25, 2009 at 2:33 AM, Trond Norbye wrote: > > > On 25. juli. 2009, at 11.14, Toru Maesa

Re: Facebook-memcached

2009-07-28 Thread Harish Kumar
Is there any one who could help me ? At least few links which gives little more information. Is it a wrong place to ask for this version of memcached ? On Jul 21, 12:59 pm, Harish Kumar wrote: > Yes, there is an idea in our group which could be helpful in > delivering the better performance and

Re: Patch to allow -F option to disable flush_all

2009-07-28 Thread Adrian Otto
Aaron, That's a great suggestion. I'm willing to write the patch accordingly if I get the green light indicating we can get this into the trunk. Thanks, Adrian On Jul 28, 2009, at 11:04 AM, Aaron Stone wrote: Maybe more esoteric options should come through a single flag, ala ssh, where

Re: Facebook-memcached

2009-07-28 Thread Eric Bergen
Are you having a problem with performance, fragmentation and stuff in the current memcached version? On Tue, Jul 28, 2009 at 11:56 AM, Harish Kumar wrote: > > Is there any one who could help me ? > At least few links which gives little more information. Is it a wrong > place to ask for this versi

Re: Facebook-memcached

2009-07-28 Thread Dustin
On Jul 28, 11:56 am, Harish Kumar wrote: > Is there any one who could help me ? > At least few links which gives little more information. Is it a wrong > place to ask for this version of memcached ? I don't think anyone supports that version. We kind of look at it as a research project. Fac

Re: Patch to allow -F option to disable flush_all

2009-07-28 Thread Dustin
On Jul 28, 11:04 am, Aaron Stone wrote: > Maybe more esoteric options should come through a single flag, ala > ssh, where you can have "-o UnusualOption=foo". That reduces the > number of single-letter flags in the command-line flag namespace. Do note that we had a -o issue and some changes t

Re: Patch to allow -F option to disable flush_all

2009-07-28 Thread Aaron Stone
On Tue, Jul 28, 2009 at 12:46 PM, Dustin wrote: > > > On Jul 28, 11:04 am, Aaron Stone wrote: >> Maybe more esoteric options should come through a single flag, ala >> ssh, where you can have "-o UnusualOption=foo". That reduces the >> number of single-letter flags in the command-line flag namespa

Memcached 1.4.0 server segmentation fault

2009-07-28 Thread thomas
Hi guys, I have been trying to diagnose a memcached segmentation fault. It is running on a 32 bit Linux 2.6.20 build (Gentoo). The memcached server is being connected through the standard PHP (5.2.6 module to Apache 2) client. After a few reloads of the provided script, the server will crash (