Re: [Sisuite-devel] To BT or not to BT

2006-01-05 Thread Andrea Righi

Bernard Li wrote:
 
Also, using the official BitTorrent bittorrent-console for seeding, I 
noticed that it was using up about 40% of CPU on my P3-1GHz machine - is 
this what you noticed Andrea?  Perhaps we should try using a more 
lightweight seeding program (like LibBT) instead of the python scripts.
 


On my pc the cpu reaches a load of ~40% only during the hash check of 
the tar file (so at the start of the first seeder), then it is stable at 
10%.. but I've to check the load when imaging...


Anyway I've found this project that seems to be very interesting:

http://starship.python.net/crew/atuining/cx_Freeze/

With this tool is possible to freeze python scripts into ELF 
executables. Tonight I'll try to do some tests...


Cheers,
-Andrea


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Sisuite-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-devel


RE: [Sisuite-devel] To BT or not to BT

2006-01-05 Thread Bernard Li
Title: Re: [Sisuite-devel] To BT or not to BT






I was just reading 
this:
 
 NOTE: Binary packages must be compatible 
with the Python installation on your system or you will get errors in your 
frozen executables about missing builtin modules or missing symbols. This is not 
likely to be a problem on Windows (since www.python.org is the only known 
distributor) but on Linux it is more likely (since Python is often packaged with 
the Linux distribution in different ways). If you get such errors, download the 
source package and build the binaries yourself. 
 
Maybe I misinterpreted 
it.
 
Cheers,
 
Bernard
 
P.S. That's a lot of files 
:-)


From: Andrea Righi 
[mailto:[EMAIL PROTECTED]Sent: Thu 05/01/2006 10:02To: 
Bernard LiCc: [email protected]: 
Re: [Sisuite-devel] To BT or not to BT

Bernard Li wrote:> Don't you still need python installed 
on the system to run these binaries?> > 
Cheers,> > BernardThe tool produces a full binary 
with all the required shared libs, 
forexample:[EMAIL PROTECTED]:/tmp/bt> file 
bittorrent-consolebittorrent-console: ELF 32-bit LSB executable, Intel 
80386, version 1(SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared 
libs), stripped[EMAIL PROTECTED]:/tmp/bt> ls -ltotal 
4492-rw-r--r--  1 righiandr users   36075 2005-02-07 16:51 
array.so-rw-r--r--  1 righiandr users   20356 2005-02-07 
16:51 binascii.so-rwxr-xr-x  1 righiandr users 2652456 2006-01-05 19:01 
bittorrent-console-rw-r--r--  1 righiandr users   17363 
2005-02-07 16:51 cStringIO.so-rw-r--r--  1 righiandr users   
15962 2005-02-07 16:51 fcntl.so-rw-r--r--  1 righiandr 
users   86724 2004-12-20 18:10 gobject.so-rw-r--r--  1 
righiandr users 1091647 2004-12-20 18:10 gtk._gtk.so-rw-r--r--  1 
righiandr users   24690 2005-02-07 16:51 
itertools.so-rw-r--r--  1 righiandr users   19369 2005-02-07 
16:51 _locale.so-rw-r--r--  1 righiandr users   17220 
2005-02-07 16:51 math.so-rw-r--r--  1 righiandr users   14346 
2005-02-07 16:51 md5.so-rw-r--r--  1 righiandr users   83564 
2004-12-20 18:10 pango.so-rw-r--r--  1 righiandr 
users    9562 2005-02-07 16:51 pwd.so-rw-r--r--  1 
righiandr users  190596 2004-12-17 20:57 pyexpat.so-rw-r--r--  1 
righiandr users   11545 2005-02-07 16:51 
_random.so-rw-r--r--  1 righiandr users   15673 2005-02-07 
16:51 select.so-rw-r--r--  1 righiandr users   14064 
2005-02-07 16:51 sha.so-rw-r--r--  1 righiandr users   52326 
2005-02-07 16:51 _socket.so-rw-r--r--  1 righiandr users   
19559 2005-02-07 16:51 _ssl.so-rw-r--r--  1 righiandr users   
25162 2005-02-07 16:51 strop.so-rw-r--r--  1 righiandr 
users   25722 2005-02-07 16:50 struct.so-rw-r--r--  1 
righiandr users   18494 2005-02-07 16:51 
termios.so-rw-r--r--  1 righiandr users   19397 2005-02-07 
16:51 time.so-rw-r--r--  1 righiandr users    7305 
2005-02-07 16:50 _weakref.so-rw-r--r--  1 righiandr users   
20896 2005-02-07 16:51 zlib.so




RE: [Sisuite-devel] To BT or not to BT

2006-01-05 Thread Bernard Li
Title: Re: [Sisuite-devel] To BT or not to BT






Don't you still need python 
installed on the system to run these binaries?
 
Cheers,
 
Bernard


From: Andrea Righi 
[mailto:[EMAIL PROTECTED]Sent: Thu 05/01/2006 09:48To: 
Bernard LiCc: [email protected]: 
Re: [Sisuite-devel] To BT or not to BT

Bernard Li wrote:> > Also, using the official 
BitTorrent bittorrent-console for seeding, I> noticed that it was using 
up about 40% of CPU on my P3-1GHz machine - is> this what you noticed 
Andrea?  Perhaps we should try using a more> lightweight seeding 
program (like LibBT) instead of the python scripts.> On my 
pc the cpu reaches a load of ~40% only during the hash check ofthe tar file 
(so at the start of the first seeder), then it is stable at10%.. but I've to 
check the load when imaging...Anyway I've found this project that seems 
to be very interesting:http://starship.python.net/crew/atuining/cx_Freeze/With 
this tool is possible to freeze python scripts into ELFexecutables. Tonight 
I'll try to do some 
tests...Cheers,-Andrea




Re: [Sisuite-devel] To BT or not to BT

2006-01-05 Thread Andrea Righi

Bernard Li wrote:

Don't you still need python installed on the system to run these binaries?
 
Cheers,
 
Bernard


The tool produces a full binary with all the required shared libs, for 
example:


[EMAIL PROTECTED]:/tmp/bt> file bittorrent-console
bittorrent-console: ELF 32-bit LSB executable, Intel 80386, version 1 
(SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped

[EMAIL PROTECTED]:/tmp/bt> ls -l
total 4492
-rw-r--r--  1 righiandr users   36075 2005-02-07 16:51 array.so
-rw-r--r--  1 righiandr users   20356 2005-02-07 16:51 binascii.so
-rwxr-xr-x  1 righiandr users 2652456 2006-01-05 19:01 bittorrent-console
-rw-r--r--  1 righiandr users   17363 2005-02-07 16:51 cStringIO.so
-rw-r--r--  1 righiandr users   15962 2005-02-07 16:51 fcntl.so
-rw-r--r--  1 righiandr users   86724 2004-12-20 18:10 gobject.so
-rw-r--r--  1 righiandr users 1091647 2004-12-20 18:10 gtk._gtk.so
-rw-r--r--  1 righiandr users   24690 2005-02-07 16:51 itertools.so
-rw-r--r--  1 righiandr users   19369 2005-02-07 16:51 _locale.so
-rw-r--r--  1 righiandr users   17220 2005-02-07 16:51 math.so
-rw-r--r--  1 righiandr users   14346 2005-02-07 16:51 md5.so
-rw-r--r--  1 righiandr users   83564 2004-12-20 18:10 pango.so
-rw-r--r--  1 righiandr users9562 2005-02-07 16:51 pwd.so
-rw-r--r--  1 righiandr users  190596 2004-12-17 20:57 pyexpat.so
-rw-r--r--  1 righiandr users   11545 2005-02-07 16:51 _random.so
-rw-r--r--  1 righiandr users   15673 2005-02-07 16:51 select.so
-rw-r--r--  1 righiandr users   14064 2005-02-07 16:51 sha.so
-rw-r--r--  1 righiandr users   52326 2005-02-07 16:51 _socket.so
-rw-r--r--  1 righiandr users   19559 2005-02-07 16:51 _ssl.so
-rw-r--r--  1 righiandr users   25162 2005-02-07 16:51 strop.so
-rw-r--r--  1 righiandr users   25722 2005-02-07 16:50 struct.so
-rw-r--r--  1 righiandr users   18494 2005-02-07 16:51 termios.so
-rw-r--r--  1 righiandr users   19397 2005-02-07 16:51 time.so
-rw-r--r--  1 righiandr users7305 2005-02-07 16:50 _weakref.so
-rw-r--r--  1 righiandr users   20896 2005-02-07 16:51 zlib.so


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Sisuite-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-devel


Re: [Sisuite-devel] To BT or not to BT

2006-01-05 Thread Andrea Righi

Bernard Li wrote:

I was just reading this:

NOTE: Binary packages must be compatible with the Python installation
on your system or you will get errors in your frozen executables
about missing builtin modules or missing symbols. This is not likely
to be a problem on Windows (since www.python.org is the only known
distributor) but on Linux it is more likely (since Python is often
packaged with the Linux distribution in different ways). If you get
such errors, download the source package and build the binaries
yourself.



Maybe also some python libs are needed (and not only the libs generated 
by the tool), but to be sure I need to do a real test first... ;)


Cheers,
-Andrea


Maybe I misinterpreted it.

Cheers,

Bernard

P.S. That's a lot of files :-)



From: Andrea Righi [mailto:[EMAIL PROTECTED] Sent: Thu 05/01/2006
10:02 To: Bernard Li Cc: [email protected] Subject:
Re: [Sisuite-devel] To BT or not to BT



Bernard Li wrote:


Don't you still need python installed on the system to run these
binaries?

Cheers,

Bernard



The tool produces a full binary with all the required shared libs,
for example:

[EMAIL PROTECTED]:/tmp/bt> file bittorrent-console 
bittorrent-console: ELF 32-bit LSB executable, Intel 80386, version 1

 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs),
stripped [EMAIL PROTECTED]:/tmp/bt> ls -l total 4492 -rw-r--r--  1
righiandr users   36075 2005-02-07 16:51 array.so -rw-r--r--  1
righiandr users   20356 2005-02-07 16:51 binascii.so -rwxr-xr-x  1
righiandr users 2652456 2006-01-05 19:01 bittorrent-console 
-rw-r--r--  1 righiandr users   17363 2005-02-07 16:51 cStringIO.so 
-rw-r--r--  1 righiandr users   15962 2005-02-07 16:51 fcntl.so 
-rw-r--r--  1 righiandr users   86724 2004-12-20 18:10 gobject.so 
-rw-r--r--  1 righiandr users 1091647 2004-12-20 18:10 gtk._gtk.so 
-rw-r--r--  1 righiandr users   24690 2005-02-07 16:51 itertools.so 
-rw-r--r--  1 righiandr users   19369 2005-02-07 16:51 _locale.so 
-rw-r--r--  1 righiandr users   17220 2005-02-07 16:51 math.so 
-rw-r--r--  1 righiandr users   14346 2005-02-07 16:51 md5.so 
-rw-r--r--  1 righiandr users   83564 2004-12-20 18:10 pango.so 
-rw-r--r--  1 righiandr users9562 2005-02-07 16:51 pwd.so 
-rw-r--r--  1 righiandr users  190596 2004-12-17 20:57 pyexpat.so 
-rw-r--r--  1 righiandr users   11545 2005-02-07 16:51 _random.so 
-rw-r--r--  1 righiandr users   15673 2005-02-07 16:51 select.so 
-rw-r--r--  1 righiandr users   14064 2005-02-07 16:51 sha.so 
-rw-r--r--  1 righiandr users   52326 2005-02-07 16:51 _socket.so 
-rw-r--r--  1 righiandr users   19559 2005-02-07 16:51 _ssl.so 
-rw-r--r--  1 righiandr users   25162 2005-02-07 16:51 strop.so 
-rw-r--r--  1 righiandr users   25722 2005-02-07 16:50 struct.so 
-rw-r--r--  1 righiandr users   18494 2005-02-07 16:51 termios.so 
-rw-r--r--  1 righiandr users   19397 2005-02-07 16:51 time.so 
-rw-r--r--  1 righiandr users7305 2005-02-07 16:50 _weakref.so 
-rw-r--r--  1 righiandr users   20896 2005-02-07 16:51 zlib.so






---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
Sisuite-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-devel