From owner-freebsd-questions@FreeBSD.ORG Wed Feb 27 06:52:32 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05CCB106566B for ; Wed, 27 Feb 2008 06:52:32 +0000 (UTC) (envelope-from tedm@toybox.placo.com) Received: from mail.freebsd-corp-net-guide.com (mail.freebsd-corp-net-guide.com [65.75.192.90]) by mx1.freebsd.org (Postfix) with ESMTP id 9FB0D13C45D for ; Wed, 27 Feb 2008 06:52:31 +0000 (UTC) (envelope-from tedm@toybox.placo.com) Received: from TEDSDSK (nat-rtr.freebsd-corp-net-guide.com [65.75.197.130]) by mail.freebsd-corp-net-guide.com (8.13.8/8.13.8) with SMTP id m1R6qP35015062; Tue, 26 Feb 2008 22:52:30 -0800 (PST) (envelope-from tedm@toybox.placo.com) From: "Ted Mittelstaedt" To: "Nikos Vassiliadis" , Date: Tue, 26 Feb 2008 22:53:29 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1914 In-Reply-To: <200802261148.47946.nvass@teledomenet.gr> Importance: Normal X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (mail.freebsd-corp-net-guide.com [65.75.192.90]); Tue, 26 Feb 2008 22:52:31 -0800 (PST) Cc: Dylan Smith Subject: RE: Normal CPU usage with a PPP connection X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Feb 2008 06:52:32 -0000 > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Nikos > Vassiliadis > Sent: Tuesday, February 26, 2008 1:49 AM > To: freebsd-questions@freebsd.org > Cc: Dylan Smith > Subject: Re: Normal CPU usage with a PPP connection > > > On Sunday 24 February 2008 14:34:37 Dylan Smith wrote: > > Hey guys, i'm running 6.3-R with (i think) userland ppp to connect to my > > ADSL provider over PPPoE. > > I build a number of graphs(mrtg) for system stats and i am noticing that > > under heavy load on my ppp connection, that is sustained 150KB/s for an > > hour or so my cpu usage, based on my graph, hovers around 20% (haven't > > looked at it in top yet but if there isn't a simple solution/reason for > > this i will look into what sort of usage it is). > > You should check top and tcpdump, it might be a big number of small > packets causing the load. > > > The box is a home > > router/server so at any 1 time isn't doing anything else that i can see > > would account for this. I also noticed that this usage increase does not > > occur with traffic coming/going on the inward facing interface, which > > regularly has transfer speeds around 10 MB/s. > > > > I'm running a AMD X2 3800+ with 2GB ram. Is this sort of usage normal? > > Can't really tell if it's normal, but it is known that userland ppp uses > much resources. I have seen it too using 20% CPU time running on > a much slower machine(I faintly remember that it was a Pentium > Celeron at 300MHz) and a much slower(384/128?) ADSL line. > > > Is there something i can do to bring it down? > > Fortunately yes, you could use net/mpd. The CPU load then, > will probably be near zero for normal traffic, the 150KB/s you > mention. If a million of small packets arrive at your router the > load will be higher, nevertheless orders of magnitude lower > than the load caused by userland ppp. > Or, you can ignore it? You still have 80% of the CPU doing nothing.... Ted