Seph
Seph

Reputation: 8703

Implications of changing MemCached maximum block size

What (if any) are the downsides of running MemCached with say 100MB maximum cache block sizes?

Would it run any significantly different to using 10MB or 1MB pages? Reversely, why would you run MemCached with smaller pages such as 100k?

If MemCached was set to use 100MB maximum size, would it actually allocate 100MB for every memory unit regardless of how big it actually was?

Upvotes: 0

Views: 1198

Answers (2)

Seph
Seph

Reputation: 8703

I found my answer here:

http://dev.mysql.com/doc/refman/5.0/en/ha-memcached-using-memory.html

Upvotes: 1

Dustin
Dustin

Reputation: 90980

memcached is an object cache that is most beneficial for accessing objects with low latency.

If your items are 100MB, you'd have to have a ridiculously fast network for latency to be an issue. At that point, you should just use varnish or similar and deal with the parsing overhead of an HTTP request since the bulk of the load time is going to be in transfer.

Upvotes: 0

Related Questions