Date: Tue, 15 Oct 1996 18:13:00 +0100 (MET) From: Luigi Rizzo <luigi@labinfo.iet.unipi.it> To: hackers@freebsd.org Subject: iijppp suggestion for a fix Message-ID: <199610151713.SAA01147@labinfo.iet.unipi.it>
next in thread | raw e-mail | index | archive | help
If someone is looking after iijppp: I noticed (in mbuf.c) that each packet causes two or more calls to malloc() and a corresponding number of free(). Now malloc seems to be relatively efficient (at least phkmalloc), I measured less than 50us per malloc/free pair on my 486. But while I am typing this message (after a 15 minutes session) ppp reports more than 25000 malloc for about 6000 total packets, and (hear, hear) a peak memory occupation of less than 10KB. If someone has a little time to work on it, rewriting the allocator by keeping its own free list looks like an easy way to improve performance. 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/ ====================================================================
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610151713.SAA01147>