Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2289682pxv; Sat, 24 Jul 2021 11:09:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkmf/vA8UGSTwLagy/NPHDxP+XP8qx84rH+JCTjLDjHbbMtzZsMd9tSrIvfaZPDzTTQS73 X-Received: by 2002:a92:7f04:: with SMTP id a4mr7299324ild.156.1627150199706; Sat, 24 Jul 2021 11:09:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627150199; cv=none; d=google.com; s=arc-20160816; b=ohbHTDGTGkXA9NlydG+VIyUoBx0cykpCv7uPwOFUCPNjECxxOr+myfn3wV7BJfkbm2 oQ65FS6Npsb2HNHtGi3aMJMM8XohZPWTACwNMdXaqQWd3x1D8Mk9re1fMF27Z+M8FXd9 PrPSivP/31iiC5dPynvr32Q2ZHgqFCjtCnsaEJuQslp5+02tR2ED1CBn17WhNv98kFhl WDnLGcFKQqEn/COl07/CXseWdoDsngG2/MqQnpgAnjqFcfEjksjNq3m/4DUzu70fes9h VwAOwfaq5vWm737H7YjdAOELMOSG48VZvp1crjsrM4Yii01KDJmGrFaMHOquuaNis94g wSoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature:dkim-signature; bh=HwahvhqkDjKj/Y04q6sVD9uUcevpzkExDl4S97e5aoY=; b=bCAjAw/0wvUWdpvYt1GchwpX6P7jSC4qVOxfa+FKWFUxiK8r9ulh0Nv7583p4cycY+ QGKgvS/TI5Pk4+jwnABA4n8EfipxSjOKAlT+x52RYgvkDzzgbNRBlnI8FIuB84GaGeBK XnK3DjdC3ALuts3CTj15y/h41lCCWtsVBkHtDTZIJKlwFxMVibVconLrvqTljyDzitJU gOmoQ6Mbua2fq4YcpQf8EKYREgrR8OI8RGol0X4jvCCzCqu+w6vdpwmcgiApfHsydk1C 7z+mTowtysXg4+mH7jFpLxYH4Hmf4G9Vol28pASMbyVFznlrWph8A2ZCXyp8VrUp8wzU UrmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=gcFzw40+; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=ptJWvvM7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z16si36718833ilm.29.2021.07.24.11.09.48; Sat, 24 Jul 2021 11:09:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=gcFzw40+; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=ptJWvvM7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229928AbhGXR2d (ORCPT + 99 others); Sat, 24 Jul 2021 13:28:33 -0400 Received: from bedivere.hansenpartnership.com ([96.44.175.130]:52744 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229655AbhGXR2c (ORCPT ); Sat, 24 Jul 2021 13:28:32 -0400 Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id 182A21280193; Sat, 24 Jul 2021 11:09:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hansenpartnership.com; s=20151216; t=1627150144; bh=OBdIbbICnlhWCgpUXqhBHIcAkWO2KhMxkOjYPmxy+rk=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References:From; b=gcFzw40+mFqkGB0zVGYDDIcydpsBgO0E3sNonwKK7u/oLqfO4PUUERLX3/snLZRfC bf12atERrZw+QVmbt1qyzee4CXDJjDfr6HRI2l2dt1orUKzbF4dbwPWIlVP8QThiC+ 6Lr6Rnuel7fjYRMJF2S7+/zTFE7wNzXZ1SXUZzxE= Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lxd24d0VwAYk; Sat, 24 Jul 2021 11:09:04 -0700 (PDT) Received: from jarvis.int.hansenpartnership.com (unknown [IPv6:2601:600:8280:66d1::527]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bedivere.hansenpartnership.com (Postfix) with ESMTPSA id 761EC12800A0; Sat, 24 Jul 2021 11:09:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hansenpartnership.com; s=20151216; t=1627150143; bh=OBdIbbICnlhWCgpUXqhBHIcAkWO2KhMxkOjYPmxy+rk=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References:From; b=ptJWvvM7GD/9XKXB8DiWs9YTDWM/KfwqNNXZECbrVE7knJVp39uLW4ZXTii3+UJFj fgibyWkQGzmxVQHYKmIP/KUmRzICDL7hz7v4AaYmmx+GomDg84HgijyWKk/tSUB2f7 gmb8GXwr+qmtFhkOAp9JPshrsvV1IR3cuJGJV02M= Message-ID: <1e48f7edcb6d9a67e8b78823660939007e14bae1.camel@HansenPartnership.com> Subject: Re: Folios give an 80% performance win From: James Bottomley To: Matthew Wilcox , linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Linus Torvalds , Andrew Morton , "Darrick J. Wong" , Christoph Hellwig , Andres Freund , Michael Larabel Date: Sat, 24 Jul 2021 11:09:02 -0700 In-Reply-To: References: <20210715033704.692967-1-willy@infradead.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2021-07-24 at 18:27 +0100, Matthew Wilcox wrote: > What blows me away is the 80% performance improvement for PostgreSQL. > I know they use the page cache extensively, so it's plausibly real. > I'm a bit surprised that it has such good locality, and the size of > the win far exceeds my expectations. We should probably dive into it > and figure out exactly what's going on. Since none of the other tested databases showed more than a 3% improvement, this looks like an anomalous result specific to something in postgres ... although the next biggest db: mariadb wasn't part of the tests so I'm not sure that's definitive. Perhaps the next step should be to test mariadb? Since they're fairly similar in domain (both full SQL) if mariadb shows this type of improvement, you can safely assume it's something in the way SQL databases handle paging and if it doesn't, it's likely fixing a postgres inefficiency. James