Re: Tools : phpMemCacheAdmin

2010-05-18 Thread Artur Ejsmont
hi, if you want you can have a look at the memcache stats scripts i have modified some time ago and published here http://artur.ejsmont.org/blog/content/first-version-of-memcache-stats-script-based-on-memcachephp probably same thing, i just added some slabs stats, maybe you will find something mi

Re: Memcached as web page cache

2010-05-19 Thread Artur Ejsmont
You should be able to do everything with memcached. From what i read Facebook even developed mysql extension to push data to cache on update. Not sure if they release it. Probably would be cool in some use cases. Check the API. On 19 May 2010 04:25, "Joseph Engo" wrote: You might be better off w

Re: Memcached as web page cache

2010-05-19 Thread Artur Ejsmont
hehe i did not even think of that as i assumed he is developing some app and wants to use cache and control what and how is cached : ) ps. it could be good idea but then you have to make sure you dont have sessions and other stuff that may make your pages non cacheable. if its static site (o

Re: Force memcached to write to all servers in Pool for reliability

2010-05-23 Thread Artur Ejsmont
i guess you could do it this way - may be slow though as its not asyncronous so has to write to all instances. No matter what you do using @ operator is a very bad idea. this is how undetectable bugs happen, id check for response and throw exception if error is important. if you have many server

Re: Force memcached to write to all servers in Pool for reliability

2010-05-24 Thread Artur Ejsmont
iable > LAN environment. > Would you make a new instance to do this or makes it sense to use the > standard instance to save this keys, when utilizing consistent hashing > on my normal memcache instance? > > Thanks! > > On 24 Maj, 02:14, Artur Ejsmont wrote: > > i guess you coul

Re: Problems with ping latencies...

2010-06-18 Thread Artur Ejsmont
seems like networking issue or box severely overloaded. maybe net card is shot? mabye kernel settings are different? maybe cables or some other networking elements? happened to me once that one of cards had different duplex setting and entire net segment was crawling. connect a sniffer into the

Re: Scalability and benchmarks

2010-07-01 Thread Artur Ejsmont
hehe Oracle has Sun and they have Oracle Coherence (more fully-featured data grid) so they have to come up with studies with lots of scary numbers to make sure the message goes out that open source sucks and you should stay away from it. Buy the real enterprise product today and save tomorrow ;- )

Re: Using PCIe SSDs instead of RAM

2010-07-14 Thread Artur Ejsmont
That actually sounds like an awesome idea! memcached is great but having persistence would give a whole new quality! Storing sessions or whatever state you need would be much more reliable. Space available would grow 10 fold as well :- ) Great idea, would love to see it as an option in productio

Re: using memcached for php session management - high load site

2010-10-12 Thread Artur Ejsmont
we have a cluster of 2 remote memcache servers for session handling but im am not supper happy with the built in handler. Id prefer to have my own PHP level written handler ... unfortunately task gets pushed from release to release and its always bottom priority ; ) Memcached session works stable

Re: MemCached Evictions

2010-11-05 Thread Artur Ejsmont
Mikael can be right. Each slab is 1mb and its designated to hold items of particualr size. So if you had 5000 items over 500KB inserted into the cache at some time ( at the beginning ) they would consume 5GB (they would take 1MB each even if they were 501KB). So after some time caching patterns c

Re: MemCached Evictions

2010-11-30 Thread Artur Ejsmont
Chen wrote: > Is there any way to shrink slab class so that space allocated at peak > time can be reused for other slab classes later? > > Thanks, > kc > > 2010/11/5 Artur Ejsmont : >> Mikael can be right. >> >> Each slab is 1mb and its designated to hold ite

Re: Evictions with Free Space

2010-12-03 Thread Artur Ejsmont
100mb free is across entire slabs set i assume. If so its not a bug. You have some slabs full and some not. If you have a lot of activity on particular slab size it will cause evictions even that other sizes are sitting around half empty. Art On 3 December 2010 23:12, NerdyNick wrote: > I'm not

Re: evictions and total_items

2011-02-13 Thread Artur Ejsmont
Evictions are bad for you. It means you have too little space or insert incorrectly items ( wrong cache key policy ). Eviction happens when items did not expire yet but have to be deleted to make space. Its unrelated to total items count as evictions count grows with time. Total items count it mor

Re: How to determine if memcache is full

2011-05-30 Thread Artur Ejsmont
I don't know if possible maybe you have Apache threads mounting up on web servers to the default limit of 1024 sockets on the memcached? Used to happen to us a few times on DB timeouts. We also used to have crashes of memcached from time to time so maybe buggy version? Art On May 30, 2011 11:12 P

Re: Error storing data in cache for Key

2011-06-09 Thread Artur Ejsmont
I may be totally wrong but its not that your key is 2k long, is it? Easily done when concatenating lots of variables for cache key. Key has lenght limit 250 characters. Art On Jun 8, 2011 12:25 AM, "Pramod Sadalage" wrote: > Hello, > > We see errors in MemCached as shown below with "error storin

Re: Algorithm for automatic cache invalidation

2012-04-27 Thread Artur Ejsmont
This post was just AWESOME! Many thanks for time spent and so much detail. Gratulacje, na prawde doskonala robota. Thanks Art On Apr 28, 2012 8:14 AM, "Jakub Łopuszański" wrote: > *There are only two hard things in Computer Science: cache invalidation > and naming things. > -- Phil Karlton >

Re: Algorithm for automatic cache invalidation

2013-02-06 Thread Artur Ejsmont
Awesome ! Thanks a million , will read the paper right after my holiday. Thanks a lot for sharing. Art On Feb 6, 2013 6:32 PM, "Jakub Łopuszański" wrote: > As I really want this ideas to be well understood and wide spread I > prepared: > - a paper

udp sessions in PHP

2010-02-08 Thread Artur Ejsmont
Hi there, I cant find sufficient documentation for the udp support and i am a bit confused. Is it true that get command is not supported in udp mode or is it just old versions? I run 1.4.4 on debian (memcached -u root -vv) and connect to it from command line like this: echo $'stats\r\nquit\r\n'