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.94.2) (envelope-from ) id 1uQCW8-006dAy-OB for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Jun 2025 22:04:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uQCW5-005iKo-Jp for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Jun 2025 22:04:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uQCW5-005iKf-AB for pgsql-hackers@lists.postgresql.org; Fri, 13 Jun 2025 22:04:53 +0000 Received: from mail-il1-x135.google.com ([2607:f8b0:4864:20::135]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uQCW3-001ub1-2L for pgsql-hackers@lists.postgresql.org; Fri, 13 Jun 2025 22:04:53 +0000 Received: by mail-il1-x135.google.com with SMTP id e9e14a558f8ab-3ddda0a8ba2so24084355ab.0 for ; Fri, 13 Jun 2025 15:04:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749852290; x=1750457090; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=3YO9iDJR9avc1cHrb13cf8v/j4SFZmZn6AdMgG1PduA=; b=AgyBYDwUud8kxMSES02QEl5pnhCerMxS/gsjsA0A+MLEaZC8Ss+SQ1zzIKDk7d35CW Ov/+h67j5h1URYaIbI0kUf6/lcWiA6CyuQVk0xlsu1JHGf4nakmcbdD1kXJZTvmXYzao LrkrvOi0IAs9G0IX2s/3pSVw4cTIBofwOiPf9HQ+AdysqD+Umi7pf+DlsUs51kObkqQP ifhU/Fezpv8ZRBxuk5VByR+abgK9fcUs2LkqVmM5PoS6F+4ufoJtBcRRkSGvbcNPr/Ru ZBTEQPzbx3/L0xJgXGR6xkCuDijgndieN0hDilzqOadYRJEk4KaP2vIs/RRWULjFMXrS Qm6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749852290; x=1750457090; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=3YO9iDJR9avc1cHrb13cf8v/j4SFZmZn6AdMgG1PduA=; b=Qn4JWDNppQ0OnWZSkS73nl8cYC1s/Np2hdb3EiR0Qhj/oBd7laQ/2yURYNhnK/HQj1 pFP+ChusTE1kMfqhlLaGGgyLuG8Ii0MEoy1YdAN9yA8WWuTLAwmrOk0ZchS8R9WZDHu9 D8a6ZjYW0QWHAb5kxck0DbYQu9dBGCQ8lZ4LcV06ddpkTLiW/i6I2/CW1t0Oo/K5Qf41 nbo2kYctu4A82SXkmQL7mJSBuPGh+d5PaREJdVX435KJl4WBtOVd5nKpRtzwvO3O20X1 kcfbWu4XqpygwlQg7pUZ1Ib5CuscFwoV5Kf3jmSt3tUNn9m6WMRr3v+bi6AL+29wIL4P asHQ== X-Forwarded-Encrypted: i=1; AJvYcCXjU/StNzLaJw8xKoWJlnrsrlgHDfr59xaqEvIVZq8T1ZZ9JkEdcGvPPl9ZPWmfBKRftQUvtKxkjAHVMQHC@lists.postgresql.org X-Gm-Message-State: AOJu0YzLiPVL5DC2m6iXU9IeUmUZPAAeuYPrGIcgJHILSV5qwJg2goy+ mZBdYAOJEUrlczM+sB/sV+gFmhwFvlDi4LbNnI6AzKcDXowjimVQ2Edk X-Gm-Gg: ASbGnctXDOQL708XbrT65zDIT0dNdJhN9PJFUl18wkEtQrozTNxI6As8KJj9wqZXllM ejPcEx0PEX0NFjhJ8uWh3WEwQz6VWn9NXNUdHUfR6TQxbz8ZHfB8n9tOPFx5rREMgwWbXleJI5S UYilCpc2NYz+PJmNv7STW79NlsVkMNfQylW7vUdxVCI4kFjbzd8MQtH+s7rwHJOUUg62pIaB6hL V6UZUeChxetfi0tpEVruRlwvuReJaxVIm/rqzPPI84CY0E67csk/RjKdeYQaAyZ4jisFs+b9wYl dNZbZ0Up4p3on2PaH0HrD1QD/xk3vGOsS9FWPFJdlzkYIz3+DGXqQmkPKL3NCPsLaqP82cQN8uN 4n7AGqtYTbHn1PO33Dfrl7yO8IngzOYyDT6nSsoOPeyeTc1luVxlc X-Google-Smtp-Source: AGHT+IGqRQiah9Yt7XhZyQJ1PCGSCOfimlfp8eJtCIEmRgufdj3Fp1Gn9KZYPtELbGEuEPobmYS8Cw== X-Received: by 2002:a05:6e02:1c0a:b0:3d8:2085:a188 with SMTP id e9e14a558f8ab-3de07c3748emr17000385ab.1.1749852289766; Fri, 13 Jun 2025 15:04:49 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-3de019d0c4bsm5222805ab.28.2025.06.13.15.04.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jun 2025 15:04:49 -0700 (PDT) Date: Fri, 13 Jun 2025 17:04:47 -0500 From: Nathan Bossart To: Dimitrios Apostolou Cc: Tom Lane , pgsql-hackers@lists.postgresql.org Subject: Re: [PING] [PATCH v2] parallel pg_restore: avoid disk seeks when jumping short distance forward Message-ID: References: <2edb7a57-b225-3b23-a680-62ba90658fec@gmx.net> <1282067.1744651649@sss.pgh.pa.us> <5ed51587-5a24-4d79-e36e-927620d0e3a2@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5ed51587-5a24-4d79-e36e-927620d0e3a2@gmx.net> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Jun 13, 2025 at 01:00:26AM +0200, Dimitrios Apostolou wrote: > By the way, I might have set the threshold to 1MB in my program, but > lowering it won't show a difference in my test case, since the lseek()s I > was noticing before the patch were mostly 8-16KB forward. Not sure what is > the defining factor for that. Maybe the compression algorithm, or how wide > the table is? I may have missed it, but could you share what the strace looks like with the patch applied? -- nathan