467,104 Members | 1,141 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,104 developers. It's quick & easy.

32-bit python on Opteron, Solaris 10?

I'm in the market for a server to run some python code which is
optimized via psyco.

Sun T2100 servers come with Solaris 10, which comes with python
pre-installed.

Since those servers use the 64-bit Opteron box, I would assume that the
Python is a 64-bit version. (Does anyone know whether this is
true/false?)

The Psyco documentation says that for psyco to work, Python needs to be
compiled in "32-bit compatibility mode". I've never compiled Python, or
tried having multiple versions running on Solaris. I looked at the
README for the Python source and didn't see anything about "32-bit
compatibility mode", though I may have missed it. Or is it a matter of
choosing a 32 bit compiler to compile against? Any info would be
appreciated.

Finally, I'm wondering if anyone could give any feedback about
problems/roadblocks in compiling Python in "32-bit compatibility mode"
and running it alongside the pre-installed Python that comes with
Solaris 10.

Any input or tips would be greatly appreciated.

Thanks
Gary
--

Gary Robinson
VP/Innovation
Emergent Music, LLC
gr*******@goombah.com
207-942-3463
Company: http://www.goombah.com
Blog: http://www.garyrobinson.net
Apr 6 '06 #1
  • viewed: 1619
Share:
2 Replies
The answers depend entirely on the cpu in my experience. I'm staring
at http://www.sun.com/servers/index.jsp and I can't see anything
called a T2100. I have 3 X2100 servers which are opterons. Psyco only
runs on x86 cpu hardware. Python cannot use psyco on opterons at all -
32 bit mode or otherwise. Pypy may fix this soon. The T2000 has a new
cpu for which I have no data about python performance. I am sure it
will run, but it may or may not be super fast if that's important to
you. On the ultrasparcs I have had an opportunity to fool with, python
runs "fast enough" for computationally intensive tasks (ie it's
useable) but relatively slowly compared to the x86 hardware I have
access to - particularly if psyco is available. I was once told that
python was more at home on CISC than on RISC CPU architecture and
being a trusting soul, accept this since it's consistent my own
limited experiments.

If you can benchmark your own code on a target machine, on solaris,
linux or windows, you can quickly figure out if it's "fast enough".
Exactly what means depends on the throughput you require and a stopwatch.

Your mileage may vary and there may be sun mavens on the list with
more reliable information than mine.

Gary Robinson wrote:
I'm in the market for a server to run some python code which is
optimized via psyco.

Sun T2100 servers come with Solaris 10, which comes with python
pre-installed.

Since those servers use the 64-bit Opteron box, I would assume that the
Python is a 64-bit version. (Does anyone know whether this is
true/false?)

The Psyco documentation says that for psyco to work, Python needs to be
compiled in "32-bit compatibility mode". I've never compiled Python, or
tried having multiple versions running on Solaris. I looked at the
README for the Python source and didn't see anything about "32-bit
compatibility mode", though I may have missed it. Or is it a matter of
choosing a 32 bit compiler to compile against? Any info would be
appreciated.

Finally, I'm wondering if anyone could give any feedback about
problems/roadblocks in compiling Python in "32-bit compatibility mode"
and running it alongside the pre-installed Python that comes with
Solaris 10.

Any input or tips would be greatly appreciated.

Thanks
Gary

Apr 7 '06 #2
Gary Robinson wrote:
I'm in the market for a server to run some python code which is
optimized via psyco.

Sun T2100 servers come with Solaris 10, which comes with python
pre-installed.


You can always install a 32bits version of Linux or Solaris on the X2100
yourself. The X2100 is even certified to run on it .
cf http://www.sun.com/servers/entry/x2100/os.jsp
Apr 9 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by barcaroller | last post: by
9 posts views Thread by beni.cherniavsky@gmail.com | last post: by
16 posts views Thread by chandanlinster | last post: by
3 posts views Thread by Barry | last post: by
6 posts views Thread by docbook.xml@gmail.com | last post: by
18 posts views Thread by lak | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.