From owner-freebsd-hackers Thu Mar 7 10:22:44 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from artemis.drwilco.net (diana.drwilco.net [66.48.127.79]) by hub.freebsd.org (Postfix) with ESMTP id 71F1337B41B for ; Thu, 7 Mar 2002 10:22:34 -0800 (PST) Received: from ceres.drwilco.net (docwilco.xs4all.nl [213.84.68.230]) by artemis.drwilco.net (8.11.6/8.11.6) with ESMTP id g27IMIV96900 (using TLSv1/SSLv3 with cipher DES-CBC3-SHA (168 bits) verified NO); Thu, 7 Mar 2002 13:22:20 -0500 (EST) (envelope-from drwilco@drwilco.net) Message-Id: <5.1.0.14.0.20020307193205.01c3b0f0@mail.drwilco.net> X-Sender: lists@mail.drwilco.net X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 07 Mar 2002 19:33:10 +0100 To: Mike Silbersack , Tom From: "Rogier R. Mulhuijzen" Subject: Re: Swapping performance Cc: Dimitar Peikov , cjp , In-Reply-To: <20020307120940.E2778-100000@patrocles.silby.com> References: <20020307095452.D18855-100000@frond.minions.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >Once Dimitar posts his test program, we'll be able to generate a more >clear picture about what's really happening. Until then, please control >the ranting. Am I the only one who saw that he attached it to his 1st mail? Here you go: #include #include #include #define MALLOC_SIZE 1024*1024*256 int main(int argc, char **argv) { char *ptr; int i, i_count; int j; ptr = (char *) malloc(MALLOC_SIZE); bzero(ptr, MALLOC_SIZE); i_count = MALLOC_SIZE / 16; fprintf(stderr, "*"); for (i = 0; i < i_count; i ++) { ptr[i >> 4] = ptr[(i >> 3) + 1]++; } fprintf(stderr, "#"); for (j = 0; j < i_count; j ++) { ptr[j << 4] = ptr[(j >> 3) + 1]++; } free(ptr); return 0; } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message