cvs commit: src/usr.sbin/ppp ip.c

Diomidis Spinellis dds at FreeBSD.org
Thu May 13 02:03:01 PDT 2004


dds         2004/05/13 02:03:00 PDT

  FreeBSD src repository

  Modified files:
    usr.sbin/ppp         ip.c 
  Log:
  Make getprotobynumber() calls in FilterCheck conditional on the log
  levels by which they are used.  On a typical production setting (no
  debug or filter logging) this will save an open/read/close system
  call sequence per packet, approximately halving the system overhead
  and reducing the overall overhead by 38%.
  
  dd bs=1k count=512 if=/usr/share/dict/web2 |
  ssh ppp-linked-host dd of=/dev/null
  
  # time original-ppp -nat -foreground connection
  Working in foreground mode
  Using interface: tun0
  2.822u 2.404s 2:00.31 4.3%    392+496k 8+18io 3pf+0w
  
  # time new-ppp  -nat -foreground connection
  Working in foreground mode
  Using interface: tun0
  2.082u 1.173s 1:26.06 3.7%    379+450k 0+18io 0pf+0w
  
  MFC after:      3 weeks
  
  Revision  Changes    Path
  1.101     +43 -13    src/usr.sbin/ppp/ip.c


More information about the cvs-all mailing list