Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

Running Python on a MOSIX cluster

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


mikko.huhtala at abo

Aug 25, 2001, 12:04 PM

Post #1 of 3 (265 views)
Permalink
Running Python on a MOSIX cluster

I am trying to run Python programs on a MOSIX cluster (Linux kernel
2.4.8 + MOSIX 1.2.2). A single Python process runs nicely and finishes
cleanly but if there are more than one Python process launched from
the same shell or from a Python program, all but the one (not
necessarily the one that started first) terminate with a segfault and
core dump. The output from the segfaulted processes is not complete.

I tried RPM packaged Pythons 1.5.2 and 2.1.1 as well as 2.1.1 compiled
from source on the MOSIX cluster. The result was the same with all of
them.

I am not very familiar with the inner workings of either Python or
MOSIX. Does the Python interpreter make a full copy of itself for each
Python process? For some reason concurrent Python processes do not
like each other on a MOSIX kernel.


Mikko Huhtala


stepken at little-idiot

Aug 29, 2001, 2:13 AM

Post #2 of 3 (234 views)
Permalink
Running Python on a MOSIX cluster [In reply to]

Mikko Huhtala wrote:

> I am trying to run Python programs on a MOSIX cluster (Linux kernel
> 2.4.8 + MOSIX 1.2.2). A single Python process runs nicely and finishes
> cleanly but if there are more than one Python process launched from
> the same shell or from a Python program, all but the one (not
> necessarily the one that started first) terminate with a segfault and
> core dump. The output from the segfaulted processes is not complete.
>
> I tried RPM packaged Pythons 1.5.2 and 2.1.1 as well as 2.1.1 compiled
> from source on the MOSIX cluster. The result was the same with all of
> them.
>
> I am not very familiar with the inner workings of either Python or
> MOSIX. Does the Python interpreter make a full copy of itself for each
> Python process? For some reason concurrent Python processes do not
> like each other on a MOSIX kernel.
>
>
> Mikko Huhtala
>

Python 2.1.1 IMHO is stackless python ....green threads means, that python
interpreter itself is doing multitasking. Older versions 1.5, 1.6 ... need
kernel-threads - so older versions may spread over the mosix cluster.

regards, Guido Stepken


aahz at panix

Aug 29, 2001, 7:08 AM

Post #3 of 3 (257 views)
Permalink
Running Python on a MOSIX cluster [In reply to]

In article <3b8cb023$0$1816$9b622d9e [at] news>,
Guido Stepken <stepken [at] little-idiot> wrote:
>
>Python 2.1.1 IMHO is stackless python ....green threads means, that python
>interpreter itself is doing multitasking. Older versions 1.5, 1.6 ... need
>kernel-threads - so older versions may spread over the mosix cluster.

That is incorrect; Python 2.1.1 still uses kernel threads, and I believe
Stackless has not yet been ported to Python 2.1.1.
--
--- Aahz <*> (Copyright 2001 by aahz [at] pobox)

Hugs and backrubs -- I break Rule 6 http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista

"Plus ca change, plus c'est la meme chose."

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.