From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id E08CC3858C52 for ; Tue, 17 Oct 2023 18:21:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E08CC3858C52 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E08CC3858C52 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697566871; cv=none; b=pKCFoHkZ8BwHRwiOsZBwdD9NvzmYBsSJOANxderuSlgqZYX8r1S8OUpd/FSPyiY9dALOBlXFDC5cEYJvT58wJeOMJ2T/6836lZKY5VFqaW6JH4j3tzHDRkfseRYwNvjCjw/eHLSW+qHki3ZwZmZakdLRWrZTuqUyheaBfL4k2fc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697566871; c=relaxed/simple; bh=Bp6SGSxXFfmalLtt4WvVydjBa50sucsCaqeojXG2cug=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Cz/Lkps9y9kFnWp1emWh+JkZtsqnSg0RLJTTJhIN8o9bsuofOoCOl7d5BKt7RYeHugrCAoy/B7gUooTholsK1lBYX8OltYRt6wEGCyqNwYGexTZyiS31ZUsQ9YfFivvy4MQuuUx4ssFIYkgYgS1C6wwRv794EO1hBgXSo0/AiAE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697566870; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to; bh=Bp6SGSxXFfmalLtt4WvVydjBa50sucsCaqeojXG2cug=; b=PPy1PTZ0VpH4sjUyZqIr2PkuPO4/wNMjFCd3Ltfz07xnJ7QIxGSeMLVSMeW9Qrrebm7FCI A6rSNZQ7ODcLVZDEc2VYgts8LJD1dgIGN1sOuo5+Ue1O9noNxIvnNNBC8abuEb09cb7NQF 7i0dHVT69jfxvNMjOwrQwSUf2WJ9TIE= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-152-3Jv0tpKLP42qSGtURfoq7Q-1; Tue, 17 Oct 2023 14:21:07 -0400 X-MC-Unique: 3Jv0tpKLP42qSGtURfoq7Q-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C2D2288B7B8; Tue, 17 Oct 2023 18:21:06 +0000 (UTC) Received: from greed.delorie.com (unknown [10.22.9.85]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A847CC15BB8; Tue, 17 Oct 2023 18:21:06 +0000 (UTC) Received: from greed.delorie.com.redhat.com (localhost [127.0.0.1]) by greed.delorie.com (8.15.2/8.15.2) with ESMTP id 39HIL6p92732047; Tue, 17 Oct 2023 14:21:06 -0400 From: DJ Delorie To: "Zack Weinberg" Cc: adhemerval.zanella@linaro.org, libc-alpha@sourceware.org Subject: Re: RFC: system-wide default tunables In-Reply-To: <281c8c05-6c7c-4929-9bc5-d99653090b40@app.fastmail.com> Date: Tue, 17 Oct 2023 14:21:06 -0400 Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,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: "Zack Weinberg" writes: >> 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. true, but the question remains...