<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>1MB limit on object size</title>
        <description> Hi,

I am using
memcached server version 1.4.4 on Linux and
spy memcached client version 2.4.2

I performed a test by storing and retrieving objects of size 1.8MB and
3.6MB. I am able to retrieve the objects successfully without any
error. My load tests show some timeout exceptions when memcached
server is under heavy load, which is expected.

Memcached wiki website states that one of the reasons we should not be
using memcached is if the object size exceeds 1MB. I want to know if
this is a hard limit, or just that memcached is not efficient in that
scenario due to the storage model.

The reason for my question is that I have just one object(which is a
list) which might exceed 1MB in future, but currently, it is not
exceeding the limit. I considered storing it in several chunks and
using bulkGet() to retrieve the multiple small objects. The response
times are not efficient in case of bulkGet(). I should not be using
memcached for this object( and should look into other caching
mechanisms) but dont want to change the implementation till next
release. Please suggest.

Thanks,</description>
        <link>http://www.serverphorums.com/read.php?9,214797,214797#msg-214797</link>
        <lastBuildDate>Thu, 20 Jun 2013 11:22:01 +0200</lastBuildDate>
        <generator>Phorum 5.2.18</generator>
        <item>
            <guid>http://www.serverphorums.com/read.php?9,214797,217554#msg-217554</guid>
            <title>Re: 1MB limit on object size</title>
            <link>http://www.serverphorums.com/read.php?9,214797,217554#msg-217554</link>
            <description><![CDATA[ Peter and Dustin,<br />
<br />
Thanks a ton for your replies. The info did help me.<br />
<br />
-Sakuntala.<br />
<br />
<br />
On Oct 15, 12:58 pm, Dustin &lt;dsalli...@gmail.com&gt; wrote:<br />
&gt; On Oct 15, 9:56 am, &quot;Peter J. Holzer&quot; &lt;h...@hjp.at&gt; wrote:<br />
&gt;<br />
&gt; &gt; Yes, it's a hard limit (but you can recompile memcached if you want a<br />
&gt; &gt; higher limit). But most client libraries can compress the<br />
&gt; &gt; objects before storing it. If you have enabled compression in spy<br />
&gt; &gt; memcached client (which might be the default) it is possible that you<br />
&gt; &gt; can store items much larger than 1MB if they compress well.<br />
&gt;<br />
&gt;  If you don't want to recompile it, you can just use -I at runtime.<br />
&gt;<br />
&gt; -I            Override the size of each slab page. Adjusts max item<br />
&gt; size<br />
&gt;               (default: 1mb, min: 1k, max: 128m)]]></description>
            <dc:creator>Sakuntala</dc:creator>
            <category>Memcached</category>
            <pubDate>Tue, 19 Oct 2010 20:40:16 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?9,214797,215298#msg-215298</guid>
            <title>Re: 1MB limit on object size</title>
            <link>http://www.serverphorums.com/read.php?9,214797,215298#msg-215298</link>
            <description><![CDATA[ On Oct 15, 9:56 am, &quot;Peter J. Holzer&quot; &lt;h...@hjp.at&gt; wrote:<br />
&gt; Yes, it's a hard limit (but you can recompile memcached if you want a<br />
&gt; higher limit). But most client libraries can compress the<br />
&gt; objects before storing it. If you have enabled compression in spy<br />
&gt; memcached client (which might be the default) it is possible that you<br />
&gt; can store items much larger than 1MB if they compress well.<br />
<br />
 If you don't want to recompile it, you can just use -I at runtime.<br />
<br />
<br />
-I            Override the size of each slab page. Adjusts max item<br />
size<br />
              (default: 1mb, min: 1k, max: 128m)]]></description>
            <dc:creator>Dustin</dc:creator>
            <category>Memcached</category>
            <pubDate>Fri, 15 Oct 2010 19:00:13 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?9,214797,215297#msg-215297</guid>
            <title>Re: 1MB limit on object size</title>
            <link>http://www.serverphorums.com/read.php?9,214797,215297#msg-215297</link>
            <description><![CDATA[ On 2010-10-14 11:08:59 -0700, Sakuntala wrote:<br />
&gt; I am using<br />
&gt; memcached server version 1.4.4 on Linux and<br />
&gt; spy memcached client version 2.4.2<br />
&gt; <br />
&gt; I performed a test by storing and retrieving objects of size 1.8MB and<br />
&gt; 3.6MB. I am able to retrieve the objects successfully without any<br />
&gt; error. My load tests show some timeout exceptions when memcached<br />
&gt; server is under heavy load, which is expected.<br />
&gt; <br />
&gt; Memcached wiki website states that one of the reasons we should not be<br />
&gt; using memcached is if the object size exceeds 1MB. I want to know if<br />
&gt; this is a hard limit, or just that memcached is not efficient in that<br />
&gt; scenario due to the storage model.<br />
<br />
Yes, it's a hard limit (but you can recompile memcached if you want a<br />
higher limit). But most client libraries can compress the<br />
objects before storing it. If you have enabled compression in spy<br />
memcached client (which might be the default) it is possible that you<br />
can store items much larger than 1MB if they compress well.<br />
<br />
	hp<br />
<br />
-- <br />
   _  | Peter J. Holzer    | Openmoko has already embedded<br />
|_|_) | Sysadmin WSR       | voting system.<br />
| |   | <a href="mailto:&#104;&#106;&#112;&#64;&#104;&#106;&#112;&#46;&#97;&#116;">&#104;&#106;&#112;&#64;&#104;&#106;&#112;&#46;&#97;&#116;</a>         | Named &quot;If you want it -- write it&quot;<br />
__/   | <a href="http://www.hjp.at/" target="_blank"  rel="nofollow">http://www.hjp.at/</a> |  -- Ilja O. on <a href="mailto:&#99;&#111;&#109;&#109;&#117;&#110;&#105;&#116;&#121;&#64;&#108;&#105;&#115;&#116;&#115;&#46;&#111;&#112;&#101;&#110;&#109;&#111;&#107;&#111;&#46;&#111;&#114;&#103;">&#99;&#111;&#109;&#109;&#117;&#110;&#105;&#116;&#121;&#64;&#108;&#105;&#115;&#116;&#115;&#46;&#111;&#112;&#101;&#110;&#109;&#111;&#107;&#111;&#46;&#111;&#114;&#103;</a>]]></description>
            <dc:creator>Peter J. Holzer</dc:creator>
            <category>Memcached</category>
            <pubDate>Fri, 15 Oct 2010 19:00:13 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?9,214797,214797#msg-214797</guid>
            <title>1MB limit on object size</title>
            <link>http://www.serverphorums.com/read.php?9,214797,214797#msg-214797</link>
            <description><![CDATA[ Hi,<br />
<br />
I am using<br />
memcached server version 1.4.4 on Linux and<br />
spy memcached client version 2.4.2<br />
<br />
I performed a test by storing and retrieving objects of size 1.8MB and<br />
3.6MB. I am able to retrieve the objects successfully without any<br />
error. My load tests show some timeout exceptions when memcached<br />
server is under heavy load, which is expected.<br />
<br />
Memcached wiki website states that one of the reasons we should not be<br />
using memcached is if the object size exceeds 1MB. I want to know if<br />
this is a hard limit, or just that memcached is not efficient in that<br />
scenario due to the storage model.<br />
<br />
The reason for my question is that I have just one object(which is a<br />
list) which might exceed 1MB in future, but currently, it is not<br />
exceeding the limit. I considered storing it in several chunks and<br />
using bulkGet() to retrieve the multiple small objects. The response<br />
times are not efficient in case of bulkGet(). I should not be using<br />
memcached for this object( and should look into other caching<br />
mechanisms) but dont want to change the implementation till next<br />
release. Please suggest.<br />
<br />
Thanks,]]></description>
            <dc:creator>Sakuntala</dc:creator>
            <category>Memcached</category>
            <pubDate>Thu, 14 Oct 2010 20:40:07 +0200</pubDate>
        </item>
    </channel>
</rss>
