From owner-freebsd-bugs Wed Jan 1 07:20:33 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id HAA01082 for bugs-outgoing; Wed, 1 Jan 1997 07:20:33 -0800 (PST) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id HAA01077 for ; Wed, 1 Jan 1997 07:20:30 -0800 (PST) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id PAA00270; Wed, 1 Jan 1997 15:36:27 +0100 From: Luigi Rizzo Message-Id: <199701011436.PAA00270@labinfo.iet.unipi.it> Subject: Re: bin/2347: sysinstall: ppp: recursive call in malloc() To: phk@critter.dk.tfs.com Date: Wed, 1 Jan 1997 15:36:27 +0100 (MET) Cc: freebsd-bugs@freefall.freebsd.org In-Reply-To: <199701011000.CAA21981@freefall.freebsd.org> from "Poul-Henning Kamp" at Jan 1, 97 01:59:43 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > >When installing via PPP I got the message on vty2 (the PPP screen anyway): > >ppp in malloc(): warning: recursive call. > > Alternatively any program like ppp that uses SIGALRM for a state machine > is severely limited in its implementation. I am using ppp here (basically 2.1R + phkmalloc) without the above problem. On passing, iijppp is extremely bad since it does a couple of malloc()/free() per packet (one for the header, one for the packet itself). On a 14.4 modem this amounts to at least 10 malloc/free per second, think what this means on a modem server. This could be easily fixed, if someone wants to look at it (I am afraid bu I don't have the time to work on this, but some of the people who added NAT might be relatively familiar with iijppp code). The code is relatively well structured and distinguishes between different classes of objects, so handling free lists withih iijppp for each class should be highly efficient. Luigi -----------------------------+-------------------------------------- Luigi Rizzo | Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it | Universita' di Pisa tel: +39-50-568533 | via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 | http://www.iet.unipi.it/~luigi/ _____________________________|______________________________________