Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vMFQ8-0054ch-2g for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Nov 2025 00:54:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vMFQ7-005DaV-0Y for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Nov 2025 00:54:39 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vMFQ6-005DaN-1i for pgsql-hackers@lists.postgresql.org; Fri, 21 Nov 2025 00:54:39 +0000 Received: from eggs.gnu.org ([2001:470:142:3::10]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vMFQ3-000c8T-2X for pgsql-hackers@lists.postgresql.org; Fri, 21 Nov 2025 00:54:37 +0000 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vMFQ0-0003O3-0J; Thu, 20 Nov 2025 19:54:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=In-Reply-To:MIME-Version:References:Subject:To:From: Date; bh=d69hLWo2HRtV6/gz3yY9YoowvdFLEY4G75nOYgZR2MQ=; b=aqKkqDHTGoBtsmiq98Nq RiCX3hspUwswE9h700jJ74RHrTs6+BvF07qIhvBMb+yy8tpNlMS/W4cEzFOJZ2B29U9D7ntNnKaHS GIIuRfqvOagJTk0O57zvQs0XgkVTUlZDqfJa3tU6XTLpsXXI5D+a7BqM66Rq7UUx9wBBgQevbyRXY U6CBEV1H3lwPmAkdWnKuugBiREgd7Nvkf2CnMBw53qPhSUX0s3d9IwHB92NO9HFXjsHvunIYowBoA jJoPsp+qw+DAfptQuwjkgKcC4vR7FoEe0IotWy7fYuzIYkGijMCfWitKKb9ayB72lSzXATCaOL0bL RQZLaX6Yz3espw==; Date: Fri, 21 Nov 2025 01:54:29 +0100 From: Samuel Thibault To: Thomas Munro Cc: Michael Banck , Alexander Lakhin , Tom Lane , Michael Paquier , pgsql-hackers@lists.postgresql.org Subject: Re: GNU/Hurd portability patches Message-ID: Mail-Followup-To: Samuel Thibault , Thomas Munro , Michael Banck , Alexander Lakhin , Tom Lane , Michael Paquier , pgsql-hackers@lists.postgresql.org References: <69125dd5.170a0220.d19df.23dcSMTPIN_ADDED_BROKEN@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: I am not organized List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, Thomas Munro, le jeu. 20 nov. 2025 17:20:57 +1300, a ecrit: > On Thu, Nov 20, 2025 at 11:45 AM Samuel Thibault > wrote: > > Thomas Munro, le mar. 18 nov. 2025 18:32:38 +1300, a ecrit: > > > Does that also imply that preadv() has to loop over the vectors > > > sending tons of messages and waiting for replies? > > > > Currently glibc's preadv performs copies. > > Even without O_DIRECT (= potential scatter/gather DMA to/from user > space), the kernel/server still seems like a better place to put a > scatter/gather-with-memcpy() loop, I'm not saying the current behavior is optimized :) > > > (And then to get more and more pie-in-the-sky: (1) O_DIRECT is highly > > > desirable for zero-copy DMA to/from a user space buffer pool, > > > > We don't currently have that defined. > > . o O { Is anyone trying to put ext4 or xfs into a Hurd server? } The idea would be to leverage the FreeBSD implementation through the rump layer. > > > (2) starting more than one I/O with a single context switch and likewise > > > for consuming replies, > > > > That would be possible by introducing in gnumach a multi-message variant > > of the mach_msg() system call. > > . o O { If I were designing a new mach_msgs() I'd also be tempted to > try to make it so that the messages don't have have to be copied in > during the system call, but instead can be accessed directly by the > receiver, That's already what happens: for out-of-line data, mach maps-in/out the data pages through the RPC. Samuel