From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 687EF1F910 for ; Wed, 30 Nov 2022 21:08:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1669842517; bh=rka1mranpyTpXMZHyn7mFqJR2AF0Fp/GHOdzJDAhZG0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VyghBw3TFvSCI0g8MKP0I/sUQ0TCszN7nO24xdRD+gaAmCm/DJwzXDjsv8n+tMS0U g57DeDPRnGtl60Gdc489w2GgrKmAvtnczLl4ObWN8iUXnWOQsV6iU07VX9eMkbA+dr wzQ0ULAoY29HUeGD9metYcb3+gHikjNnS4CnbGJo= From: Eric Wong To: mwrap-perl@80x24.org Subject: [PATCH v2 0/2] support file-backed mmap on Linux Date: Wed, 30 Nov 2022 21:08:35 +0000 Message-Id: <20221130210837.17163-1-e@80x24.org> In-Reply-To: <20221130064930.5239-1-e@80x24.org> References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Modern Linux has O_TMPFILE which makes dealing with temporary files much easier, especially when we can't use tmpfile(3) before malloc is initialized. I needed these two patches to pack an objstore for linux.git containing 771 remotes and over 500k refs without OOM-ing. Adding more swap wouldn't have been desirable in my case since this was a "production" system and I didn't want high-priority, public-facing processes to suffer from swap traffic. And my /proc/sys/vm/max_map_count was already much larger than the system default. Eric Wong (2): use file-backed mmap on Linux increase DEFAULT_GRANULARITY to 64M mymalloc.h | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+)