[Setup] ZEO installation does not appear to use multiple cores
rok.garbas at gmail.com
Thu Jul 3 15:42:30 UTC 2008
On Thu, Jul 3, 2008 at 5:31 PM, xxxjimlxxx <jim.leek at eng.ox.ac.uk> wrote:
> We have a Sun Fire T2000 Server with a total of 16 1GHz CPUs running Solaris
> We have built Plone using the Universal Installer to run ZEO:
> ./install.sh zeo
> Plone works, but unfortunately runs very slowly compared to a test
> installation on a solaris desktop (the T2000 is three times slower).
> Tests have indicated that at any time python is only using ~6.3% of the CPU
> available to the system:
> PID USERNAME SIZE RSS STATE PRI NICE TIME CPU
> 11412 plone 1 32M 128M cpu4 10 0 2:58:54 6.3%
> 21618 root 2184K 1960K sleep 59 0 0:00:02 0.2%
> 21583 root 5144K 5112K sleep 59 0 0:00:02 0.1%
> 21579 root 4952K 4920K sleep 49 0 0:00:01 0.1%
> 21567 root 4952K 4920K cpu0 59 0 0:00:01 0.1%
> 21575 root 4952K 4920K sleep 59 0 0:00:01 0.1%
> 21587 root 4952K 4920K sleep 59 0 0:00:01 0.1%
> 21571 root 4952K 4920K sleep 59 0 0:00:01 0.1%
> 21636 root 2528K 2032K sleep 59 0 0:00:00 0.1%
> 21641 root 2528K 2032K sleep 59 0 0:00:00 0.1%
> This equates to 16th of the total processing power, or one CPU being used.
> Is there any way to configure plone/python to scale to the full number of
> CPUs in our installation?
> Cheers, Jim
i'm not aware of how universal installer configures plone, but from
what you shown i can conclude that you only run one zope instance.
you should have as many zope instances as many cpu's (cores) you want
to be used. and they all must poit to the same db backend (zeo).
infornt you should put somehting like pound to balanse the load. maybe
even simple load balanser from nginx would be ok for start.
More information about the Setup