Re: hashing question

2009-08-13 Thread smolix
Hi Ajeet, you could also simply invoke memcached with the -M option. This way it will not retire elements unless you force-retire them. Memcached will simply report an error when you get memory overflow. Have a look at my post on memcached as a distributed RAM disk two days ago. Cheers, Alex

Re: hashing question

2009-08-11 Thread Ajeet
On Jul 28, 2:52 am, Henrik Schröder wrote: > 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. > This should be impossible. Each ke

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

Re: hashing question

2009-07-27 Thread Jozef Sevcik
Sounds interesting, is that possible ? What are the conditions stats *may* be wrong ? Thanks 2009/7/27 Henrik Schröder : > Another possibility is of course that the stats are wrong. > > > /Henrik > > On Mon, Jul 27, 2009 at 20:15, Ajeet wrote: >> >> > >> > > 2. The data that I inserted is not th

Re: hashing question

2009-07-27 Thread Henrik Schröder
Another possibility is of course that the stats are wrong. /Henrik On Mon, Jul 27, 2009 at 20:15, Ajeet wrote: > > > > > > 2. The data that I inserted is not there anymore and has been evicted > > > ( while inserting the timeout was 30 days, all the testing was done in > > > a matter of hours)

Re: hashing question

2009-07-27 Thread Ajeet
> > > 2. The data that I inserted is not there anymore and has been evicted > > ( while inserting the timeout was 30 days, all the testing was done in > > a matter of hours) > > Possible.  Are you storing lots of things the same size?  Memcached uses > slabs to allocate memory.  Each slab stores o

Re: hashing question

2009-07-23 Thread Brian Moon
Does memcached do some kind of open hashing, so that multiple objects could be stored for the same hash key? This should be so, otherwise memcached would be returning incorrect data. The hash only decides where to store the data. It does not use the hash to actual store anything. My use c

hashing question

2009-07-23 Thread Ajeet
Hi guys, Does memcached do some kind of open hashing, so that multiple objects could be stored for the same hash key? This should be so, otherwise memcached would be returning incorrect data. My use case is as follows. I am inserting a large number of unique keys into memcache. The server has su