From owner-freebsd-current Tue Oct 10 15:26:33 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id PAA07581 for current-outgoing; Tue, 10 Oct 1995 15:26:33 -0700 Received: from localhost.cdrom.com (localhost.cdrom.com [127.0.0.1]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id PAA07576 for ; Tue, 10 Oct 1995 15:26:30 -0700 X-Authentication-Warning: freefall.freebsd.org: Host localhost.cdrom.com didn't use HELO protocol To: current Subject: phkmalloc & Olliviers numbers. MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7573.813363990.1@freefall.freebsd.org> Date: Tue, 10 Oct 1995 15:26:30 -0700 Message-ID: <7574.813363990@freefall.freebsd.org> From: Poul-Henning Kamp Sender: owner-current@FreeBSD.org Precedence: bulk Thanks for the numbers Ollivier, I have looked at them and I like them :-) I read the negative numbers in the "waste" to mean that the final sbrk isn't by definition the highest one, though I cannot know for sure I belive that is the only sane explanation. Anyway, if that is the case, then that would explain the relative big waste of phkmalloc, since it as default keeps 400K (100 pages) before starting to hand things back with sbrk(2). The reasoning for this is that sbrk(2) is relative expensive to do, you have to search and fiddle page-tables, and you have to bzero pages, so a pagein may actually be cheaper sometimes, and since phkmalloc doesn't touch these pages, they will not be faulted in until they are needed. You can try to modify this if you want, search for "malloc_cache = 100 <<". Apart from that I'm flattered :-) Can you try to run a test where you allocate a couple of megs more than you have RAM for, so that you start to page ? That is when phkmalloc >really< wins over gnu & the old bsd mallocs, and I'd like to see how the "DL" and "MR" mallocs compare on this metric. I guess if anything phkmalloc may lead to a slight increas in swap usage, but a drop in swap activity, but I defy anybody to measure it, and if you do anyway, you should have spent your time doing something useful instead :-) Thanks ! Poul-Henning