Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 May 1995 09:58:14 -0700
From:      "Garrett A. Wollman" <wollman>
To:        CVS-commiters, cvs-libexec
Subject:   cvs commit: src/libexec/ftpd ftpd.c
Message-ID:  <199505031658.JAA04851@freefall.cdrom.com>

next in thread | raw e-mail | index | archive | help
wollman     95/05/03 09:58:13

  Modified:    libexec/ftpd  ftpd.c
  Log:
  Speed up ftpd and make it more efficient:
  
  - set TCP_NOPUSH to keep from sending short packets at each write(2) boundary
  - set SO_SNDBUF to 64k so we have a reasonable amount of buffer space
  - for a regular file in binary mode which is not being restarted and is
  . smaller than 16 Meg, use mmap(2) and write(2) the whole file in one big
    gulp
  
  In the most common circumstances, this should dramatically reduce the
  system-call load from ftpd, since the call to write() will not return until
  the entire file has been written, rather than writing just a few K at a time
  in a loop.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199505031658.JAA04851>