Is PythonService Slow, Or, Is It The Code?

John Abel johnfabel at btinternet.com
Thu May 22 14:13:37 EDT 2003


Aahz wrote:

>In article <mailman.1053590596.19937.python-list at python.org>,
>John Abel  <john.abel at pa.press.net> wrote:
>  
>
>>Aahz wrote:
>>    
>>
>>>In article <mailman.1053539135.6707.python-list at python.org>,
>>>John Abel  <johnfabel at btinternet.com> wrote:
>>>      
>>>
>>>>Using medusa, I've written a simple FTP server to run on my Win2000 
>>>>machine.  I have two versions, a Win32 service, and the other is 
>>>>launched from the command line.  I've noticed, that the Win32 service is 
>>>>drastically slower than the command line version.  As a test, I ftp'ed a 
>>>>148MB file from one machine to another (connected via a twisted cable, 
>>>>at 10Mbps).  Using the service, the file transfered at 31kb/sec; with 
>>>>the cli version, it transfered at 549kb/sec.
>>>>        
>>>>
>>>What happens when your CLI version is *not* the foreground window?
>>>      
>>>
>>Just checked.  There is no change in the transfer rate.
>>    
>>
>
>That's odd.  I've never actually used Win2K, so I may be talking out of
>my hat, but check and see if you can figure out what the priority level
>of each of those programs is.  (That's the only thing I can figure
>causing this.)  Also, is this Win2K Pro or Win2K Server?  M$ may be
>doing something nasty to create this -- I remember that from my NT days.
>I suspect that asking on some kind of M$ forum might lead to better
>information.
>

I'm running on Win2K Pro.  I did wonder if it was a limitation of 
running on Pro.  As far as I can tell, the PythonService process is 
running at normal (priority 7).  As another test, I'm going to put the 
asyncore.loop back in, just to eliminate the mod I made for it to be 
service friendly.

It's very odd.






More information about the Python-list mailing list