curr_bytes overflow
Jan Cermak
jan.cermak at jyxo.com
Fri Jun 6 08:43:00 UTC 2008
Hi,
I am using memcached-1.2.5 and there is after some time overfloating
stats.curr_bytes.
I added to item.c code some output (in int do_item_link(item *it), int
do_item_unlink(item *it)) and print out action, bytes adding/removing
and curr_bytes value.
This happens:
...
+ 100 104097203
- 100 104097103
+ 100 104097203
- 78 104097125
+ 79 104097204
- -1214627623 18446744070733309147
+ 85 18446744070733309232
- 1848 18446744070733307384
+ do_item_link
- do_item_unlink
second column = bytes from ITEM_ntotal(item) macro
third column = curr_bytes
After few hours, it print out removing of -1214627623 bytes (must be
positive).
The negative number was from _stritem.nbytes, which is int. I don't know
if this could be unsigned int..
It is on 32bit Debian Etch, 1 thread 1GB memcached, are some other
information required?
Thanks,
Jan Cermak
More information about the memcached
mailing list