[Zope] Threads Optimizing Linux.

Aitor Grajal Crespo aitor.grajal@inetsys.es
Mon, 16 Apr 2001 18:15:12 +0200


--=====_98743771241=_
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello , my question is a bit complex ( for me ). I have :

- Linux RH 6.1
- python 1.5.2 --with-thread (source compiled)
- zope 2.2.x or zope 2.3.x (source compiled)

In any program in python with Linux (inclusive Zope), the threads are=
 processes,i.e, they consume memory and don=B4t share it.
In Windows this is different.

In Linux, I have Zope running with 4 Threads. I have five processes and=
 everyone consuming about 12 MB =3D> 12 * 5 MB =3D 60 MB

In Windows in the same situation I only have one process and the threads=
 share the memory, which is the most desirable situation.
 
Why?? Does anybody know a solution for Linux, in order to have only one=
 process and threads sharing memory, as in Windows??

Thanks.
Aitor
/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
 
Aitor Grajal Crespo
Director General
e-mail: aitor.grajal@inetsys.es

INETSYS, S.L.
ETSI Inform=E1tica
Ctra. Colmenar, km. 15,500
28049 MADRID
SPAIN
Tfno : (34) 91 348 22 66 - Fax : (34) 91 348 22 66
http://www.inetsys.es
 
/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/


--=====_98743771241=_
Content-Type: text/html; charset="us-ascii"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<META content="MSHTML 5.00.3103.1000" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff style="FONT-FAMILY: Arial" text=#000000>
<DIV><FONT size=2>Hello , my question is a bit complex (&nbsp;for me ). I have 
:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>- Linux RH 6.1</FONT></DIV>
<DIV><FONT size=2>- python 1.5.2 --with-thread (source compiled)</FONT></DIV>
<DIV><FONT size=2>- zope 2.2.x or zope 2.3.x (source compiled)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>In any program in python&nbsp;with Linux (inclusive 
Zope),&nbsp;the threads are processes,i.e, they consume memory and don´t share 
it.</FONT></DIV>
<DIV><FONT size=2>In Windows this is different.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>In Linux, I have Zope running with 4 Threads. I have five 
processes and everyone consuming about 12 MB =&gt; 12 * 5 MB = 60 
MB</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>In Windows in the same situation I only have one process and 
the threads share the memory, which is the most desirable 
situation.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Why?? Does&nbsp;anybody know a solution for Linux, in order to 
have only one process and threads sharing memory, as in Windows??</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>Thanks.</FONT></DIV>
<DIV><FONT size=2>Aitor</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

<BR>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<META content="MSHTML 5.00.3103.1000" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff style="FONT-FAMILY: Arial" text=#000000><FONT size=2>
<DIV><FONT size=2>/_/_<FONT size=2>/_/_<FONT size=2>/_/_<FONT size=2>/_/_<FONT 
size=2>/_/_<FONT size=2>/_/_<FONT size=2>/_/_<FONT size=2>/_/_<FONT 
size=2>/_/_<FONT size=2>/_/_<FONT size=2>/_/_<FONT size=2>/_/_<FONT 
size=2>/_/_<FONT 
size=2>/_/</FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV>Aitor Grajal Crespo</DIV>
<DIV><FONT size=2>Director General</FONT></DIV>
<DIV><FONT size=2>e-mail: a<A 
href="mailto:itor.grajal@inetsys.es">itor.grajal@inetsys.es</A></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>INETSYS, S.L.</FONT></DIV>
<DIV><FONT size=2>ETSI Informática</FONT></DIV>
<DIV><FONT size=2>Ctra. Colmenar, km. 15,500</FONT></DIV>
<DIV><FONT size=2>28049 MADRID</FONT></DIV>
<DIV><FONT size=2>SPAIN</FONT></DIV>
<DIV><FONT size=2>Tfno : (34) 91 348 22 66 - Fax : (34) 91 348 22 
66</FONT></DIV>
<DIV><FONT size=2><A 
href="http://www.inetsys.es">http://www.inetsys.es</A></FONT></DIV>
<DIV><FONT size=2><FONT size=2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT size=2><FONT size=2>/_/_<FONT size=2>/_/_<FONT size=2>/_/_<FONT 
size=2>/_/_<FONT size=2>/_/_<FONT size=2>/_/_<FONT size=2>/_/_<FONT 
size=2>/_/_<FONT size=2>/_/_<FONT size=2>/_/_<FONT size=2>/_/_<FONT 
size=2>/_/_<FONT size=2>/_/_<FONT 
size=2>/_/</FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></DIV></FONT></BODY></HTML>


--=====_98743771241=_--