Date: Thu, 13 May 2004 02:03:00 -0700 (PDT) From: Diomidis Spinellis <dds@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/ppp ip.c Message-ID: <200405130903.i4D930tS085950@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405130903.i4D930tS085950>