From owner-freebsd-current Sun Jan 26 08:50:33 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id IAA14704 for current-outgoing; Sun, 26 Jan 1997 08:50:33 -0800 (PST) Received: from tfs.com (tfs.com [140.145.250.1]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id IAA14697 for ; Sun, 26 Jan 1997 08:50:31 -0800 (PST) Received: from schizo.dk.tfs.com by tfs.com (smail3.1.28.1) with SMTP id m0voXlo-0003wLC; Sun, 26 Jan 97 08:49 PST Received: from critter.dk.tfs.com (critter-home [193.162.32.19]) by schizo.dk.tfs.com (8.8.2/8.7.3) with ESMTP id RAA18208; Sun, 26 Jan 1997 17:49:24 +0100 (MET) Received: from critter.dk.tfs.com (localhost [127.0.0.1]) by critter.dk.tfs.com (8.8.2/8.8.2) with ESMTP id RAA07599; Sun, 26 Jan 1997 17:50:54 +0100 (MET) To: Bruce Evans cc: dg@root.com, swallace@ece.uci.edu, current@FreeBSD.ORG Subject: Re: exec bug In-reply-to: Your message of "Mon, 27 Jan 1997 00:50:34 +1100." <199701261350.AAA31786@godzilla.zeta.org.au> Date: Sun, 26 Jan 1997 17:50:53 +0100 Message-ID: <7597.854297453@critter.dk.tfs.com> From: Poul-Henning Kamp Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In message <199701261350.AAA31786@godzilla.zeta.org.au>, Bruce Evans writes: >What is the library malloc()+free() doing to be 5 times slower than >read+lseek()? The kernel malloc() is fast enough to use :-). It takes >a couple of usec for small allocations. You're timing the initialization and allocation of the "page table". Try adding free(malloc(1)); before you take the first timestamp. -- Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. whois: [PHK] | phk@tfs.com TRW Financial Systems, Inc. Power and ignorance is a disgusting cocktail.