Busybox: Upgrade to 1.21.1 (stable). lsof active.
[tomato.git] / release / src / router / vsftpd / TUNING
blob228b82ccd60ab4880209cbbcf95c646b410031e1
1 So, you want vsftpd to go quickly?
3 Here are some random assorted performance tips.
5 1) vsftpd thrives because of its lightweight RSS and vm usage. If you run
6 a glibc based system (e.g. RedHat 5+), look in /etc/nsswitch.conf, and
7 if possible, disable the "nis" and "nisplus" options for "passwd", "shadow"
8 and "group". This prevents unneeded runtime libraries being added into
9 the vsftpd virtual memory space.
11 2) vsftpd will attempt to save CPU power by using sendfile() on capable
12 operating systems. Currently, Linux 2.2+ and FreeBSD 3.0+ use sendfile().
13 Consider running on these excellent operating systems.
15 3) Irritated by vsftpd using _two_ processes per connection? Don't be, it's
16 a very secure architecture. However, if you run Linux 2.4+, or Linux 2.2.19+, a
17 "one process" security model is possible thanks to nifty security features.
18 See the vsftpd.conf man page.
20 4) Avoid large directories (e.g. thousands of entries) if possible. Many
21 filesystems do not handle such cases efficiently at all. Preparing large
22 directory listings will require vsftpd to use moderate amounts of memory
23 and CPU. If you _must_ have large directories, consider either making them
24 unreadable, or use a filesystem which copes well with large directories such
25 as reiserfs.