diff options
| author | beatrice <beatrice@dangofactory.net> | 2026-11-22 19:25:05 +0900 |
|---|---|---|
| committer | beatrice <beatrice@dangofactory.net> | 2026-11-22 19:25:05 +0900 |
| commit | c7a201b58080c7a0f57b38c59e7865aa42c1d029 (patch) | |
| tree | cde6146e3aada31e68594fd4f034abe90621ce34 /SPEED | |
| download | vsftpd-master.tar.gz vsftpd-master.zip | |
Import vsftpd-3.0.5.tar.gzHEADlocal/vsftpdmaster
Diffstat (limited to 'SPEED')
| -rw-r--r-- | SPEED | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -0,0 +1,37 @@ +- See also BENCHMARKS + +This FTPd should be very performant. The reasons for this are below, followed +by specific benchmarks as and when I get them. + +1) Generally, it is a fairly minimal FTPd. There should not be much code and/or +syscall bloat. + +2) For binary downloads, Linux sendfile() is used. This is a lot lighter on +CPU/syscall usage than your regular read()/write() loop. + +3) The "ls" command is fully internal. That is to say, an external "ls" command +does not need to be launch. Launching an external process is costly because +of the fork(), exec(), ELF loader startup, etc. + + +It is not all good news, of course. Potential sources of poor performance +include + +1) Overhead of two processes per session (in some common configurations). + +2) Excessive heap usage hidden behind the string API. + + +BENCHMARKS +========== + +1) vsftpd downloads ASCII data at at least twice the rate of wu-ftpd. + +2) vsftpd has achieved 86Mbyte/sec download over Gigabit ethernet between +Linux-2.4.x boxes (thanks to sendfile()) + +3) vsftpd has smaller virtual memory usage (and RSS, it seems) + +4) Various reports have trickled in and indicate that vsftpd thumps wu-ftpd +in performance tests. + |
