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 ABCB71F4C1 for ; Wed, 30 Nov 2022 06:49:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1669790970; bh=5sL0HP1zeqyu8/hPUaXROH6hpa2i6FzdiaUW8xKIMss=; h=From:To:Subject:Date:From; b=gwh9vgmMH/N5d9qK3+vhueqT5OBprMwtpkKbXlD5iIwT+jp5nMmCq70Su25KdXBC1 yKtpc2NrAFl8sX5B5NqY2NAKwgGtrrUy1unc57xCVJPngTqeOTinkIwYdo1TY4jwNn 15whTpgiBP8PYGYCffX//Nb3DwP//Rp7CyN6PH9A= From: Eric Wong To: mwrap-perl@80x24.org Subject: [PATCH 0/2] support file-backed mmap on Linux Date: Wed, 30 Nov 2022 06:49:28 +0000 Message-Id: <20221130064930.5239-1-e@80x24.org> 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 | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+)