Re: what should be memory size memcached for Django on Ubuntu Os?
On 27 Aug 2011, at 12:26, vikas ruhil wrote: > A brief Description of system On i need help for memcached size:- > 1)Cpu :- i7 intel , 16 Gb Ram , Internal SATA Hard-disk :640 Gb , External > Hardisk :-10 Tb, Os :- Ubuntu-32bit > 2)Cpu- i2 intel core2duo , 4Gb Ram, Internal SATA Hard-disk: 320 Gb , > External Hard-disk :- 2 Tb , Os:-Ubuntu-32bit > 3)Cpu- i2 intel core2duo , 4Gb Ram, Internal SATA Hard-disk: 320 Gb , > External Hard-disk :- 2 Tb , Os:-FreeBsd-7.0 (I am using FreeBsd with Lamson > for mailing system) > > Using Command line :- memcached -d -m -l 127.0.0.1 -p 11222 > Anybody able to suggest memory size for Django, or for Dynamic python usage > for high Performance computing > > Regards > Vikash Ruhil Ooops sorry sent my other request as a reply to this so sorry if it screws up this thread. As for how much memory you need for memcached that is something that is highly site dependant. Some sites can manage with a relatively low amount of RAM dedicated to memcache as they don't have a whole lot of data that needs to be cached at any one time. Others require huge amounts. I would suggest you do some experimentation and see what the effect on your server load as you play around with memory amounts. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
what should be memory size memcached for Django on Ubuntu Os?
A brief Description of system On i need help for memcached size:- 1)Cpu :- i7 intel , 16 Gb Ram , Internal SATA Hard-disk :640 Gb , External Hardisk :-10 Tb, Os :- Ubuntu-32bit 2)Cpu- i2 intel core2duo , 4Gb Ram, Internal SATA Hard-disk: 320 Gb , External Hard-disk :- 2 Tb , Os:-Ubuntu-32bit 3)Cpu- i2 intel core2duo , 4Gb Ram, Internal SATA Hard-disk: 320 Gb , External Hard-disk :- 2 Tb , Os:-FreeBsd-7.0 (I am using FreeBsd with Lamson for mailing system) Using Command line :- memcached -d -m -l 127.0.0.1 -p 11222 Anybody able to suggest memory size for Django, or for Dynamic python usage for high Performance computing Regards Vikash Ruhil -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
memcached with Django
I am working with using memcached with Django, and a problem came up. I have memcached running, and using the django.middleware.cache.CacheMiddleware to cache my entire site seems to be working. But when I try to use the low-level api Django way for caching ( http://www.djangoproject.com/documentation/cache/#the-low-level-cache-api )... from django.core.cache import cache if cache.get('temp') == None: cache.set('temp', 'hello world') return HttpResponse('cache failed to load: '+str(cache.get('temp'))) else: return HttpResponse('cache loaded fine: '+str(cache.get('temp'))) ...nothing ever seems to get set in the cache. The cache middleware does the same thing though, so how is it that it seems to work, and my view doesn't? Also, is there a way to see the stats of memcached? I know the stat command exists, but I have no idea how to use it to display the hits, misses, usage, etc. using either memcached from the command line, or the cmemcache library. Effbot apparently has a stats view ( http://effbot.org/zone/django-memcached-view.htm ) that uses python-memcache, and I am using cmemcache, and I am not sure how to translate the code from the python-memcache to cmemcache. Basically because I haven't been able to find any documentation, or examples of how to use cmemcache. Any help would be greatly appreciated. Thanks, Brandon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---