Re: Inserting large values into memcached

2016-07-13 Thread dormando
I'm not sure why. you can validate the settings via the `stats settings` command. On Wed, 13 Jul 2016, Sonia wrote: > I tried inserting 10 values of size 100 bytes. I am able to insert all 10 > values but I guess only the last 3 are present in cache since I am getting > cache misses for

Re: Inserting large values into memcached

2016-07-13 Thread Sonia
I tried inserting 10 values of size 100 bytes. I am able to insert all 10 values but I guess only the last 3 are present in cache since I am getting cache misses for the first 7 key-value pairs. Is there a flag that we have to set in the memcached configuration file (I currently have the

Re: Memcache `delete_misses` are very high compared to `delete_hits` while `evictions` are 0

2016-07-13 Thread dormando
Do you have a specific question? Given the subject, possibly your app is issuing delete's for stuff that isn't in the cache for some reason? On Wed, 13 Jul 2016, Utkarsh Awasthi wrote: > Following are the stats of Memcached: > STAT pid 18323 > STAT uptime 384753 > STAT time 1468390067 > STAT

1.4.29 (large item support)

2016-07-13 Thread dormando
https://github.com/memcached/memcached/wiki/ReleaseNotes1429 enjoy. -- --- You received this message because you are subscribed to the Google Groups "memcached" group. To unsubscribe from this group and stop receiving emails from it, send an email to memcached+unsubscr...@googlegroups.com.

Re: Inserting large values into memcached

2016-07-13 Thread dormando
Hi, You're trying to store exactly 1024*1024 bytes, but an value in memcached encompasses the key and the datastructure behind it. Try (1024*1024 - 4096) and see if that stores. On Wed, 13 Jul 2016, Sonia wrote: > For 100,000 1MB values I guess the memory I have allocated is insufficient. >

Re: Inserting large values into memcached

2016-07-13 Thread Sonia
For 100,000 1MB values I guess the memory I have allocated is insufficient. However, I tried inserting 10 1MB values into memcached but this too fails and memcached_strerror() returns "ITEM TOO BIG" (The value I have is a random alpha-numeric char array of size 1048756 bytes). I am currently

Re: Inserting large values into memcached

2016-07-13 Thread dormando
Can you give more detail as to what exactly is failing? what error message are you getting, what client are you using, what is the `stats` output from some of your memcached instances, etc? 100,000 1 meg values are going to take at least 100 gigabytes of RAM. if you have 16 2G servers, you only

Inserting large values into memcached

2016-07-13 Thread Sonia
I have just started working with memcached and I am working on a test program where I want to insert 100,000 values of size 1 MB into memcached. I currently have 16 servers setup and I have setup the memory limit in the memcached configuration file as 2 GB but for some reason my code is still

Memcache `delete_misses` are very high compared to `delete_hits` while `evictions` are 0

2016-07-13 Thread Utkarsh Awasthi
Following are the stats of Memcached: STAT pid 18323 STAT uptime 384753 STAT time 1468390067 STAT version 1.4.27 STAT libevent 1.4.13-stable STAT pointer_size 64 STAT rusage_user 75.178571 STAT rusage_system 31.052279 STAT curr_connections 10 STAT total_connections 9517 STAT connection_structures