Re: occasional error message

2011-07-25 Thread rob
Thanks for the reply. I use python-memcached http://www.tummy.com/Community/software/python-memcached/ So you think this is a python/django problem? I will start a thread on the Django mailing list about this issue.

Re: Overriding the size of each slab page

2011-07-25 Thread dormando
> On memcached version 1.4.5-1ubuntu1, there are two entries for the ‘- > I’ parameter in the memcached(1) man page. > > -I Override the size of each slab page in bytes. In mundane > words, it adjusts the maximum item size that memcached will accept. > You can use the suffixes K and M to spec

Overriding the size of each slab page

2011-07-25 Thread David Mitchell
On memcached version 1.4.5-1ubuntu1, there are two entries for the ‘- I’ parameter in the memcached(1) man page. -I Override the size of each slab page in bytes. In mundane words, it adjusts the maximum item size that memcached will accept. You can use the suffixes K and M to specify the si

Re: Solaris 10 - not thread safe

2011-07-25 Thread Trond Norbye
You should use a more recent version of gcc (or use Solaris studio which is free) I don't think anyone wants to add extra code to support an ancient version of gcc ... Trond On Jul 25, 2011 8:00 PM, "Marcin Ochab" wrote: > Hello, > > I was compiling memcache 1.4.6 on Solaris 10 ( SunOS grom 5.10

Re: Memcached and Perl

2011-07-25 Thread dormando
> Hello, > > I have been playing with Memcached between two servers using Perl and > Memcached::Client which is working great. I would like to take it one step > further and use AnyEvent to trigger when a new key and value has been written > to Memcached. I am struggling to understand how to do

Re: occasional error message

2011-07-25 Thread dormando
On Mon, 25 Jul 2011, rob wrote: > I use memcached on a low traffic website with Django. Sometimes I get > this error message in my mail (full error below): > > AttributeError: 'NoneType' object has no attribute 'recv' > > I use memcache to cache some Twitter messages. I fetch them using this > i

Re: Memcached not fast enough?

2011-07-25 Thread Dustin
On Jul 25, 4:57 am, benjabcn wrote: > Testing 1000 GETs. > Memcache Testing... > Value size : 149780 Bytes > Time: 13.78 seconds. What kind of network are you using here? That's a bit over 80Mbps.

Re: Please clarify me on memcached efficiency

2011-07-25 Thread dormando
http://code.google.com/p/memcached/wiki/NewPerformance On Mon, 25 Jul 2011, Chetan Gadgilwar wrote: >  I have one question, if multiple users are accessing a DB then the speed get > decreases then is it the same thing with memcached if number of users > access the same cached data? or it would w

Re: Memcached not fast enough?

2011-07-25 Thread Brian Moon
That is not normal. I would guess that you have some network issues on your server(s). Why are you running 3 instances of memcached per server? That seems a bit silly. Brian. http://brian.moonspot.net On 7/25/11 6:57 AM, benjabcn wrote: Using : Nginx + PHP-FPM on Gentoo. PHP 5.4.3 with PECL:M

Re: Memcached not fast enough?

2011-07-25 Thread dormando
> I'm using both APC and Memcached. I had to setup a "two-layers" > caching system. First I'm caching into Memcached and then caching into > APC. I guess it's pretty dirty but that's the only solution I found to > reduce significantly the amount of GET to Memcache. > > APC is local to each web obvi

Memcached not fast enough?

2011-07-25 Thread benjabcn
Using : Nginx + PHP-FPM on Gentoo. PHP 5.4.3 with PECL:Memcache 3.0.5 40 Web servers and 2 memcache servers (3 instances of memcached on each) with plenty of CPU and RAM, they are not loaded at all. Each memcached instance receives about 3,000 GET/s. I'm using both APC and Memcached. I had to set

Re: Please clarify me on memcached efficiency

2011-07-25 Thread Siddharth Jagtiani
Chetan, In short, memcached, stores data on "memory", not on "secondary device like a HDD". DB is stored on a "hdd". This makes memcached very fast as compared to a DB. But since memory is limited, it only stores some data. So MFU (Most Frequently Used) algo can be configured. Or Most Recently Use

occasional error message

2011-07-25 Thread rob
I use memcached on a low traffic website with Django. Sometimes I get this error message in my mail (full error below): AttributeError: 'NoneType' object has no attribute 'recv' I use memcache to cache some Twitter messages. I fetch them using this in a context-preprocessor: def latest_tweet( req

Solaris 10 - not thread safe

2011-07-25 Thread Marcin Ochab
Hello, I was compiling memcache 1.4.6 on Solaris 10 ( SunOS grom 5.10 Generic_141444-09 sun4v sparc SUNW,Sun-Fire-T200 ) with gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath). In compilation there were warnings that parameter -pthread is bad, but it compiled anyway. It should be -D_REENTRANT

Memcached and Perl

2011-07-25 Thread Organic Spider
Hello, I have been playing with Memcached between two servers using Perl and Memcached::Client which is working great. I would like to take it one step further and use AnyEvent to trigger when a new key and value has been written to Memcached. I am struggling to understand how to do it though a

Re: memcached

2011-07-25 Thread Chetan Gadgilwar
how to get this memcached stats. I am using ubantu as a server. On Mon, Jul 25, 2011 at 12:50 PM, Andrej van der Zee < andrejvander...@gmail.com> wrote: > Thanks for your reply. > > >> Personally I prefer _all_ stats, not just a subset ;) >> > > Yeah sorry > > STAT pid 8486 > STAT uptime 576

Please clarify me on memcached efficiency

2011-07-25 Thread Chetan Gadgilwar
I have one question, if multiple users are accessing a DB then the speed get decreases then is it the same thing with memcached if number of users access the same cached data? or it would work smoothly without any effect if number of users are increases? -- Best wishes, Chetan Gadgilwar

Re: memcached

2011-07-25 Thread Andrej van der Zee
Thanks for your reply. > Personally I prefer _all_ stats, not just a subset ;) > Yeah sorry STAT pid 8486 STAT uptime 576620 STAT time 1311578356 STAT version 1.2.2 STAT pointer_size 64 STAT rusage_user 27.69 STAT rusage_system 74.85 STAT curr_items 94035 STAT total_items 154518 STA

Re: memcached

2011-07-25 Thread Trond Norbye
On Mon, Jul 25, 2011 at 8:45 AM, Andrej van der Zee < andrejvander...@gmail.com> wrote: > >> *) What is the number of items on your server and the memory they consume? >> Could it be that you're not storing the items in the first place? >> > > I guess you mean those stats: > > Personally I prefer