Re: Development for dual core machine

2007-08-20 Thread Willi Richert
Andy wrote: > Thanks guys for the suggestions. > > Andy It might be that you have to set the CPU affinity for your python process so that it works at all. I had that problem on a dual core machine with hyperthread enabled. Using taskset (http://www.linuxcommand.org/man_pages/taskset1.html) helpe

Re: Development for dual core machine

2007-08-19 Thread Andy
Thanks guys for the suggestions. Andy -- http://mail.python.org/mailman/listinfo/python-list

Re: Development for dual core machine

2007-08-19 Thread Bjoern Schliessmann
Paul Rubin wrote: > Python threading doesn't support multiple CPU's because of the > GIL. :s/support/take full advantage of/ Regards, Björn -- BOFH excuse #46: waste water tank overflowed onto computer -- http://mail.python.org/mailman/listinfo/python-list

Re: Development for dual core machine

2007-08-19 Thread Bjoern Schliessmann
samwyse wrote: > The Python interpreter is not multi-cpu aware, so using Python > threads won't work on multiple CPUs. Are you sure about this? Regards, Björn -- BOFH excuse #12: dry joints on cable plug -- http://mail.python.org/mailman/listinfo/python-list

Re: Development for dual core machine

2007-08-19 Thread Paul Rubin
Andy <[EMAIL PROTECTED]> writes: > >From what I read, I think that simply by making the package run in > several separate processes (web server, database server, Python > interpreter, etc.), and/or using multiple threads (which I will > anyway) the package should be able to use multiple CPUs. Pyth

Re: Development for dual core machine

2007-08-19 Thread Bryan Olson
Andy wrote: > I'm going to develop a software package that includes a web server > (and PHP code) , a database, and some Python code of course. I am > being strongly suggested to make it to work on a dual- or multi-core > computer, but I'm confused on how to take advantage of the multiple > CPUs.

Re: Development for dual core machine

2007-08-19 Thread samwyse
Andy wrote: > Hi guys, > > I'm sorry, I'm not sure this is the correct group to be asking this > kind of question... > > I'm going to develop a software package that includes a web server > (and PHP code) , a database, and some Python code of course. I am > being strongly suggested to make it to

Re: Development for dual core machine

2007-08-19 Thread Bjoern Schliessmann
Andy wrote: > I'm going to develop a software package that includes a web server > (and PHP code) , a database, and some Python code of course. I am > being strongly suggested to make it to work on a dual- or > multi-core computer, No problem. CPython will work on any dual core CPU. > but I'm

Development for dual core machine

2007-08-19 Thread Andy
Hi guys, I'm sorry, I'm not sure this is the correct group to be asking this kind of question... I'm going to develop a software package that includes a web server (and PHP code) , a database, and some Python code of course. I am being strongly suggested to make it to work on a dual- or multi-co