-
-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question]: About pre-fork model #641
Comments
As far as I remember, the parent / master process "passes" every new connection to one of the workers, so this may make things slower compared to the 1 process async model. If this is true, you may have more luck changing your benchmark so that it downloads, say, 10 files of 1G each instead of 50k files of 64K each. But it's just a supposition. Also, what are you using for your benchmarks? Is it only one client downloading the file serially or there's multiple clients in parallel? Note: I've never conducted benchmarks for the pre-fork model, so you're a pioneer in this sense. :) |
PS: I see you're from Shenzhen. My wife is from there. :-) |
Is "passes" means any new ftp connection need to allocated by parent/master process? If subprocess was busied, parent process will waiting?
It's an uploads test. I use |
Hi, I'm a
pyftpdlib
user, and I'm looking to enhance the performance of my FTP server implementation. I came across the pre-fork model in the tutorial (https://github.com/giampaolo/pyftpdlib/blob/master/docs/tutorial.rst#pre-fork), but I'm having difficulty grasping how worker processes acquire connections. I attempted to integrate this model intounix_daemon.py
, but it didn't yield any significant performance improvements.Look forward to hearing from you
The text was updated successfully, but these errors were encountered: