From owner-freebsd-net Tue Feb 19 10:24:28 2002 Delivered-To: freebsd-net@freebsd.org Received: from mdv.dhs.org (mdv.xs4all.nl [213.84.209.48]) by hub.freebsd.org (Postfix) with ESMTP id 6759D37B400 for ; Tue, 19 Feb 2002 10:24:17 -0800 (PST) Received: (from root@localhost) by mdv.dhs.org (8.11.6/8.11.6) id g1JIOGB02673 for freebsd-net@freebsd.org; Tue, 19 Feb 2002 19:24:16 +0100 (CET) (envelope-from mdevries@haveityourway.nl) Received: from marcel.haveityourway.nl (marcel.mdv.int [192.168.1.3]) by mdv.dhs.org (8.11.6/8.11.6av) with ESMTP id g1JIODZ02666 for ; Tue, 19 Feb 2002 19:24:13 +0100 (CET) (envelope-from mdevries@haveityourway.nl) Message-Id: <5.1.0.14.2.20020219192110.01f45e48@outshine> X-Sender: mdevries@outshine X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 19 Feb 2002 19:24:09 +0100 To: freebsd-net@freebsd.org From: Marcel de Vries Subject: RE: network buffer problem -/- natd In-Reply-To: References: <5.1.0.14.2.20020219154939.00bb52d8@outshine> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org After 4 hours of pinging and listening to a shoutcast stream natd rised to his state of eating 34% proctime (top) Connection timed out, did a restart of mpd and everything is running normal agian. Bugs me. Grtz, Marcel At 15:40 19-02-2002 +0000, you wrote: > i too am currently looking into natd - it seems to eat more cpu as the >number of connections it handles goes uip - not just the throughput. > > - i'm not an expert but truss, strace and grof show that most of the time >is spent in sendto() ... > > ... i find this odd becuase recvfrom seems not to be so intensive. > > ps - can anyone tell me if the following assumption is correct: > > * if gprof, strace, etc show most of the time spent in sendto() > then it immediately follows that this is what is using > CPU time? > > > * i know its a bit off topic but i could make a syscall which > simpy sleeps, > so shows up as taking time but isn;t doing much really? > >am i right? > > >intY has automatically scanned this email with Sophos Anti-Virus >(www.inty.com) > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-net" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message