Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 163 by unluckypixie: Buggy mem_requested values
http://code.google.com/p/memcached/issues/detail?id=163
What steps will reproduce the problem?
1.Run memcache on a busy server for a few days...
2.telnet in and run "stats slabs"
What is the expected output? What do you see instead?
Not sure what the exact figure should be but sometimes the mem_requested
figure is clearly completely nuts:
STAT 9:chunk_size 600
STAT 9:chunks_per_page 1747
STAT 9:total_pages 1
STAT 9:total_chunks 1747
STAT 9:used_chunks 62
STAT 9:free_chunks 67
STAT 9:free_chunks_end 1618
STAT 9:mem_requested 18446744073709550041
STAT 9:get_hits 87214
STAT 9:cmd_set 16292
STAT 9:delete_hits 0
STAT 9:incr_hits 0
STAT 9:decr_hits 0
STAT 9:cas_hits 0
STAT 9:cas_badval 0
STAT 34:chunk_size 161720
STAT 34:chunks_per_page 6
STAT 34:total_pages 1
STAT 34:total_chunks 6
STAT 34:used_chunks 2
STAT 34:free_chunks 4
STAT 34:free_chunks_end 0
STAT 34:mem_requested 18446744073709494083
STAT 34:get_hits 372
STAT 34:cmd_set 278
STAT 34:delete_hits 0
STAT 34:incr_hits 0
STAT 34:decr_hits 0
STAT 34:cas_hits 0
STAT 34:cas_badval 0
This is only on some slabs and seems to be quite random.
What version of the product are you using? On what operating system?
memcached 1.4.5
Debian Squeeze
Linux 2.6.36-trunk-amd64 #1 SMP Wed Oct 27 14:28:29 UTC 2010 x86_64
GNU/Linux
Please provide any additional information below.
Only one memcache client, the localhost through PHP (using to cache web
stuff)
I was investigating a problem where the dump of memcache keys does not seem
to include keys which when requested directly do return a value. (that
might be entirely unrelated to this and could be a bug in our dump script
not memcache itself!!) and noticed these huge mem_requested figures which
are clearly rubbish.