From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by sourceware.org (Postfix) with ESMTPS id 87E5C3858C52 for ; Tue, 17 Oct 2023 18:17:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 87E5C3858C52 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=owlfolio.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=owlfolio.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 87E5C3858C52 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=66.111.4.28 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697566681; cv=none; b=vOxLT/dsh1PiJ6V14Na4hVtg/lVsApfrGRdxyY/9SyAtch4cbgQcOv+JlruGOpdAAqsU5kgMQqC+e2i7csTM8GTWdubG2lIGcmGrd1Abi4hxKO1gAKNgF6UJeeAt+m8onGA9Jg81ZPlJDfauLQ6q1OxFrjk1l9lb2MGNyc+/2xQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697566681; c=relaxed/simple; bh=Jy0LnsWIi1cC6EsNkHC4Lsd5flDOSFurX5YgwcoFc8w=; h=DKIM-Signature:DKIM-Signature:MIME-Version:Message-Id:Date:From: To:Subject; b=BoyVOy15wsh9wzj7VRw6ftDOQgI3A//BNSWHzP6swt8+MQ5gOYIbPGPrrOXWZRrq07harHiSMJF4nmwXPizrk5+m8IEivAI1OEg2AmaQYse2/LeaAGt8bVeFeqMpz1y4SPmPPowVFzU1mBL4/GmsM7j1T0RWiowwnv3W6keTWYY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id B24875C03ED; Tue, 17 Oct 2023 14:17:55 -0400 (EDT) Received: from imap45 ([10.202.2.95]) by compute5.internal (MEProxy); Tue, 17 Oct 2023 14:17:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owlfolio.org; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1697566675; x=1697653075; bh=Jy 0LnsWIi1cC6EsNkHC4Lsd5flDOSFurX5YgwcoFc8w=; b=aBMgiwEZmujgYxuTXe xlIMjBHyDvW8jYyUQK836djuV0D+BkvzWzoUqXthDT6Gxqu4EivQ04viOXR1RanT geVKmRNi5l8UgBddZwGCxl2/ZieM0YpkMUTs+h4WP+Lu3Djt+iMgH9kSy9LkVS+Z HvAtSsMlkBdRIGhdH3wz+F+Kpk1inFxRc8PIaIMTCufHynqtI4wCCKK7DSL28WOL Wli2humI/2NXENWNRBchvtzVOnWgz95MRPCHvdZ9r+E9dvR4u25mhVCFgI5DB3bo GdYwXjNC0pO9nFRdBMTByY11qgG5Ye2h7BdC+wzar7CZvflXYOgvmktrgcxE0Hkn G+BA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1697566675; x=1697653075; bh=Jy0LnsWIi1cC6 EsNkHC4Lsd5flDOSFurX5YgwcoFc8w=; b=FLlYBDoXTksYneGgHRnvhFNkEiWDy BpmhK7eIPTr9rdTulkOqzlo+4jGFmhzSNsnAyRJA/+3bN3/dPqvZdNNh3qSzjYHw sWGnw3avzqPDp15oJAxGBaPSTUlxn8z7bpwIQNRZGl6oFc7Hj5GBW1HJz3Mp3c88 SSQJYogOoWzBSj2XRjzKaMht08O/FOH9xFfY5StcKvefyEK7+V2HOo+AqeGO/n1Q 61EO3z6aJbIQA8lDwnL7VxoWF5unqiTcohNCzZYeadR1hNuEr2kLaayH7uQ72F7j WPJsZuzfwYxA64JiZsKI2iFoAy9/XmIeMvjwLWfO52IZ2gtn8MliLmq4A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrjedvgdduvdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedfkggr tghkucghvghinhgsvghrghdfuceoiigrtghksehofihlfhholhhiohdrohhrgheqnecugg ftrfgrthhtvghrnhephfelfeehudfhleegheegjeevheeuieehvdfgueeuteetleeiieet heefhfeludeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepiigrtghksehofihlfhholhhiohdrohhrgh X-ME-Proxy: Feedback-ID: i876146a2:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 6D36C272007B; Tue, 17 Oct 2023 14:17:55 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1019-ged83ad8595-fm-20231002.001-ged83ad85 MIME-Version: 1.0 Message-Id: <281c8c05-6c7c-4929-9bc5-d99653090b40@app.fastmail.com> In-Reply-To: References: Date: Tue, 17 Oct 2023 14:17:34 -0400 From: "Zack Weinberg" To: "DJ Delorie" Cc: "Adhemerval Zanella" , "GNU libc development" Subject: Re: RFC: system-wide default tunables Content-Type: text/plain X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,JMQ_SPF_NEUTRAL,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue, Oct 17, 2023, at 1:47 PM, DJ Delorie wrote: > "Zack Weinberg" writes: >> Even better to open() unconditionally and ignore ENOENT failures. > > From a security/performance perspective, which is better - open() and > read a line at a time, or mmap() and parse in place? Huh? You cannot mmap without having opened first. zw