Memcached stats issue
dormando
dormando at rydia.net
Mon Jun 23 21:13:06 UTC 2008
Peter J. Holzer wrote:
> On 2008-06-11 16:16:31 +0200, Mattias Karlsson wrote:
>> The file "doc/protocol.txt" says:
>>
>> bytes 64u Current number of bytes used by this server to store items
>> limit_maxbytes 32u Number of bytes this server is allowed to use for storage.
>>
>> So my question is: how can 'bytes' be larger than 'limit_maxbytes' ?
>
> On a related note: Shouldn't limit_maxbytes be a 64u, too? 4 Gigs of RAM
> isn't that much any more, and conceptionally, "bytes" and
> "limit_maxbytes" should be the same type, IMHO.
>
> hp
Weird! I hadn't noticed that. 'maxbytes' is actually a size_t, which
will be 64-bit on a 64-bit OS, but 32-bit on a 32-bit OS, etc. So it's
fine as is, but the documentation is weird. Should we say 32u/64u? :)
-Dormando
More information about the memcached
mailing list