Taking advantage of multiple cores

37 views
Skip to first unread message

Jonathan Hayward

unread,
Jun 22, 2012, 10:33:05 AM6/22/12
to django...@googlegroups.com, pinax...@googlegroups.com
Will a slightly older version of Pinax, installed on top of a newer version of Django, take advantage (or be configurable to take advantage) of multiple cores?

In other words, if one request is rendering and another request comes in while the first is rendering, will Django or Pinax offload the second request to another core?

If this isn't the default, can it be enabled, and are there race conditions or other risks?

Thanks,
--
Christos Jonathan Hayward
Jonathan Hayward, an Orthodox Christian author.

Amazon  Author Bio  Email • Facebook • Google Plus Kindle • LinkedIn • Twitter • Web • What's New?

I invite you to visit my "theology, literature, and other creative works" site. See a random page!

Steve Schwarz

unread,
Jun 22, 2012, 1:13:59 PM6/22/12
to pinax...@googlegroups.com
On Fri, Jun 22, 2012 at 9:33 AM, Jonathan Hayward <christos.jon...@gmail.com> wrote:
Will a slightly older version of Pinax, installed on top of a newer version of Django, take advantage (or be configurable to take advantage) of multiple cores?

In other words, if one request is rendering and another request comes in while the first is rendering, will Django or Pinax offload the second request to another core?

If this isn't the default, can it be enabled, and are there race conditions or other risks?
 
IMHO - Python is really the issue that keeps you from running multi-threaded effectively:
http://stackoverflow.com/questions/2236321/will-python-use-all-processors-in-thread-mode 

We saw big performance improvements (10-20%) by going with multiple processes instead of threading. We run Django under gunicorn with multiple processes and nginx/Apache in front for static/cached resources.

Jonathan Hayward

unread,
Jul 30, 2012, 10:10:59 AM7/30/12
to pinax...@googlegroups.com
@all, thanks. Happily running with multiple processes now.

--
You received this message because you are subscribed to the Google Groups "Pinax Users" group.
To post to this group, send email to pinax...@googlegroups.com.
To unsubscribe from this group, send email to pinax-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pinax-users?hl=en.



--
Christos Jonathan Hayward
Christos Jonathan Hayward, an Orthodox Christian author.

Amazon • Author Bio • Email • Facebook • Google Plus • Kindle • LinkedIn • Orthodox Network (Profile) • Twitter • Web • What's New?

I invite you to visit my "theology, literature, and other creative works" site. See one page of my website!

Reply all
Reply to author
Forward
0 new messages