Received: by 10.52.240.229 with SMTP id wd5mr15398584vdc.8.1343657460494; Mon, 30 Jul 2012 07:11:00 -0700 (PDT) X-BeenThere: pinax-users@googlegroups.com Received: by 10.220.147.138 with SMTP id l10ls3539065vcv.7.gmail; Mon, 30 Jul 2012 07:10:59 -0700 (PDT) Received: by 10.52.178.166 with SMTP id cz6mr15496561vdc.1.1343657459548; Mon, 30 Jul 2012 07:10:59 -0700 (PDT) Received: by 10.52.178.166 with SMTP id cz6mr15496560vdc.1.1343657459531; Mon, 30 Jul 2012 07:10:59 -0700 (PDT) Return-Path: Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by gmr-mx.google.com with ESMTPS id y4si1398151vds.2.2012.07.30.07.10.59 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 30 Jul 2012 07:10:59 -0700 (PDT) Received-SPF: pass (google.com: domain of christos.jonathan.hayw...@gmail.com designates 209.85.212.54 as permitted sender) client-ip=209.85.212.54; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of christos.jonathan.hayw...@gmail.com designates 209.85.212.54 as permitted sender) smtp.mail=christos.jonathan.hayw...@gmail.com; dkim=pass header...@gmail.com Received: by mail-vb0-f54.google.com with SMTP id v11so4681563vbm.41 for ; Mon, 30 Jul 2012 07:10:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=52er58zQymX6PoKpPvpozYYf20nRjNCYEr+M24N/uZ4=; b=jF4hlyRYu085noiH0sJQOYUDGArK4s91H864qqM4O5QH28ZbxZXq8Eak8TBQwF7l9o BhaaHyE0wRXp8Oc0Cz2ly+bQwtW4U/ICN+HjTqaAQfMP0l+RK3NK6FFASYTa7APTNUEx PK1Z4Cuql0gXALaaElF+dXLvJx/Jveh0oh8cPbD0h8PrvC/CXCtFhJChK8cEUF5L3efl hCTCqn31GqXtUvOQtdvazkNyODJtLBwOALRhI6crPNXhFvhV4xfZ1WvZDPmMP+kRCu5s pf7Ye6HR2SW1mE2mRu+QFPxBNwWchcvTKsIA2selAI5Rm6ciexGcDaY91Jg/CmH/BHy+ 7WOg== MIME-Version: 1.0 Received: by 10.52.22.33 with SMTP id a1mr9724520vdf.104.1343657459349; Mon, 30 Jul 2012 07:10:59 -0700 (PDT) Received: by 10.52.160.66 with HTTP; Mon, 30 Jul 2012 07:10:59 -0700 (PDT) In-Reply-To: References: Date: Mon, 30 Jul 2012 09:10:59 -0500 Message-ID: Subject: Re: [pinax-users] Taking advantage of multiple cores From: Jonathan Hayward To: pinax-users@googlegroups.com Content-Type: multipart/alternative; boundary=20cf3079bdb0907a0404c60ca195 --20cf3079bdb0907a0404c60ca195 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable @all, thanks. Happily running with multiple processes now. On Fri, Jun 22, 2012 at 12:13 PM, Steve Schwarz wrot= e: > On Fri, Jun 22, 2012 at 9:33 AM, Jonathan Hayward < > christos.jonathan.hayw...@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 multipl= e > processes and nginx/Apache in front for static/cached resources. > > Best Regards, > Steve > Blogs: http://agilitynerd.com/ http://tech.agilitynerd.com/ > > -- > You received this message because you are subscribed to the Google Groups > "Pinax Users" group. > To post to this group, send email to pinax-users@googlegroups.com. > To unsubscribe from this group, send email to > pinax-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/pinax-users?hl=3Den. > --=20 [image: Christos Jonathan Hayward] Christos Jonathan Hayward, an Orthodox Christian author. *Amazon * =95 Author Bio =95 *Email * =95 Facebook =95 Google Plus =95 *Kindle * =95 LinkedIn =95 Orthodox Network (Profile ) =95 Twitter =95 *Web * =95 What's New? I invite you to visit my "theology, literature, and other creative works" site. *See one page of my website! * --20cf3079bdb0907a0404c60ca195 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable @all, thanks. Happily running with multiple processes now.

On Fri, Jun 22, 2012 at 12:13 PM, Steve Schwarz <agi= lityn...@gmail.com> wrote:
On Fri, Jun 22, 2012 = at 9:33 AM, Jonathan Hayward <christos.jonathan.hayward@= gmail.com> wrote:
Will a slightly older version of Pinax, inst= alled on top of a newer version of Django, take advantage (or be configurab= le to take advantage) of multiple cores?

In other words, if one request is rendering and another requ= est 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 a= re there race conditions or other risks?
=A0
IMHO - Python is really the issue that keeps you from= running multi-threaded effectively:
http://stackoverflow.com/questi= ons/2236321/will-python-use-all-processors-in-thread-mode=A0

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

Best Regards,
Steve

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



--
3D"Christos
C= hristos Jonathan Hayward, an Orthodox Christian author.

Amazon=A0= =95=A0Author Bio=A0=95=A0Email=A0=95=A0Facebook=A0=95=A0Google Plus=A0=95=A0= Kindle=A0=95=A0LinkedIn=A0=95=A0<= a href=3D"http://orthodox-network.com/" target=3D"_blank">Orthodox Network<= /a>=A0(Profile) =95=A0Twitter=A0=95=A0Web=A0=95=A0Wh= at's New?

I invite you to visit my "theol= ogy, literature, and other creative works" site.=A0See one page of my we= bsite!

--20cf3079bdb0907a0404c60ca195--