successive writes are lost
Jan Pfeifer
pfjan at yahoo.com.br
Wed Jan 24 22:09:52 UTC 2007
Cool, thanks :)
So I'm using the 1.2.1, on Ubuntu Edgy (Linux 2.6).
I'm sending the code to you (and my friend) only, as it is part of a bigger test program, and I don't want to consume the list bandwidth -- but feel free to send to the list if you prefer
cheers,
- jan
----- Original Message ----
From: Steven Grimm <sgrimm at facebook.com>
To: Jan Pfeifer <pfjan at yahoo.com.br>
Cc: memcached list <memcached at lists.danga.com>; Peter Yen <peteryen at yahoo-inc.com>
Sent: Wednesday, January 24, 2007 2:00:53 PM
Subject: Re: successive writes are lost
Any chance you can send your test program to me? If I can reproduce
that, I'll definitely work on fixing it. We haven't noticed that
behavior but I suppose if it's a rare condition, it might have been
happening infrequently enough to escape our attention.
Which version of memcached are you running against?
-Steve
Jan Pfeifer wrote:
> hi,
>
> I was re-running some performance test, after a friend commented that memcache lost some writes in some cases.
>
> I
> noticed that if I do a program to write 50k entries (keys are the
> number 1 to 50000 in string format, and values are a 100 chars string)
> in a 500mb cache (enough space), I only get ~65% of them written
> (according to "stats items" and to the cache miss ratio I get after
> writting).
>
> But, if I do a 10microsec pause in between each write, they all get through without a problem.
>
> I
> edited the server, and adding a few printf's I noticed that item_alloc
> and slab_alloc are called the 50k times, and return an ok results
> ("STORED").
>
>
> any ideas of what is happening, and how can we avoid this ?
>
>
> thanks :)
>
> - jan
>
>
>
>
>
>
>
>
>
> ____________________________________________________________________________________
> Don't pick lemons.
> See all the new 2007 cars at Yahoo! Autos.
> http://autos.yahoo.com/new_cars.html
>
____________________________________________________________________________________
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: =?utf-8?q?t.cc?=
Type: text/x-c++src
Size: 6623 bytes
Desc: not available
Url : http://lists.danga.com/pipermail/memcached/attachments/20070124/00d1e946/utf-8qt-0001.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: =?utf-8?q?MemCache.hh?=
Type: text/x-c++hdr
Size: 1775 bytes
Desc: not available
Url : http://lists.danga.com/pipermail/memcached/attachments/20070124/00d1e946/utf-8qMemCache-0001.hpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: =?utf-8?q?MemCache.cc?=
Type: text/x-c++src
Size: 867 bytes
Desc: not available
Url : http://lists.danga.com/pipermail/memcached/attachments/20070124/00d1e946/utf-8qMemCache-0001.cc
More information about the memcached
mailing list