Re: HELP ! How Memcached objects are stored in the good SLAB

2015-11-16 Thread dormando
key + 1b val + 2b item struct 48b [optional CAS] 8b then the suffix trailer printf: please read the manpage for snprintf: snprintf(suffix, 40, " %d %d\r\n", flags, nbytes - 2); there are four characters in there. two spaces, and then \r and \n. the two %d's change into: "0" for flags, and "90" fo

Re: HELP ! How Memcached objects are stored in the good SLAB

2015-11-16 Thread Nicolas Martinez
The test was : •Key : test •Data : 90 bytes •Flags : 0 :( Le lundi 16 novembre 2015 19:01:50 UTC+1, Nicolas Martinez a écrit : > > Ok... i think i have understood what you say: > > Key (Characters Number) + 1 + Data (Characters Number) + Header + Chunk > Size + CAS Size > > Header = Flags (Char

Re: Can memcached be used for true clustering...still unclear...

2015-11-16 Thread Nicolas Martinez
Hi you could see Dynomite project which permit Cluster/replication master/master functions. Le lundi 26 octobre 2015 14:35:21 UTC+1, Jonas Steinberg a écrit : > > I've been reading the web for an hour now and I'm still unclear as to > whether memcached can actually be used to create a cluster wi

Re: HELP ! How Memcached objects are stored in the good SLAB

2015-11-16 Thread Nicolas Martinez
Ok... i think i have understood what you say: Key (Characters Number) + 1 + Data (Characters Number) + Header + Chunk Size + CAS Size Header = Flags (Characters Number) + Key (Characters Numbers) + 2 bytes ( \r\n ) + 4 bytes (2 spaces and 1 \r) Chunk Size = 48 bytes (default) CA

Re: HELP ! How Memcached objects are stored in the good SLAB

2015-11-16 Thread Nicolas Martinez
Thank you very much for yours answers. Ok for CAS... i don't use -C so i have to add 8 bytes i still don"t understand these lines : >> 2b appended to data_bytes for an extra "\r\n" + So, \r\n == 2b ? >> + 4 bytes for spaces and \r\n which spaces? What is this \r\n ? Isn't already counted before