Re: [PATCH v6 00/27] Memory Folios

2021-04-06 Thread Jeff Layton
On Mon, 2021-04-05 at 20:31 +0100, Matthew Wilcox wrote: > On Mon, Apr 05, 2021 at 03:14:29PM -0400, Jeff Layton wrote: > > On Wed, 2021-03-31 at 19:47 +0100, Matthew Wilcox (Oracle) wrote: > > > Managing memory in 4KiB pages is a serious overhead. Many benchmarks > > > exist which show the benefi

Re: [PATCH v6 00/27] Memory Folios

2021-04-05 Thread Matthew Wilcox
On Mon, Apr 05, 2021 at 03:14:29PM -0400, Jeff Layton wrote: > On Wed, 2021-03-31 at 19:47 +0100, Matthew Wilcox (Oracle) wrote: > > Managing memory in 4KiB pages is a serious overhead. Many benchmarks > > exist which show the benefits of a larger "page size". As an example, > > an earlier iterat

Re: [PATCH v6 00/27] Memory Folios

2021-04-05 Thread Jeff Layton
On Wed, 2021-03-31 at 19:47 +0100, Matthew Wilcox (Oracle) wrote: > Managing memory in 4KiB pages is a serious overhead. Many benchmarks > exist which show the benefits of a larger "page size". As an example, > an earlier iteration of this idea which used compound pages got a 7% > performance boo

Re: [PATCH v6 00/27] Memory Folios

2021-04-02 Thread Kent Overstreet
On Wed, Mar 31, 2021 at 07:47:01PM +0100, Matthew Wilcox (Oracle) wrote: > The medium-term goal is to convert all filesystems and some device > drivers to work in terms of folios. This series contains a lot of > explicit conversions, but it's important to realise it's removing a lot > of implicit

Re: [PATCH v6 00/27] Memory Folios

2021-04-02 Thread Matthew Wilcox
On Fri, Apr 02, 2021 at 03:37:55PM +0100, Christoph Hellwig wrote: > On Thu, Apr 01, 2021 at 12:26:56PM +0100, Matthew Wilcox wrote: > > On Thu, Apr 01, 2021 at 08:05:37AM +0100, Christoph Hellwig wrote: > > > On Wed, Mar 31, 2021 at 07:47:01PM +0100, Matthew Wilcox (Oracle) wrote: > > > > - Mirro

Re: [PATCH v6 00/27] Memory Folios

2021-04-02 Thread Christoph Hellwig
On Thu, Apr 01, 2021 at 12:26:56PM +0100, Matthew Wilcox wrote: > On Thu, Apr 01, 2021 at 08:05:37AM +0100, Christoph Hellwig wrote: > > On Wed, Mar 31, 2021 at 07:47:01PM +0100, Matthew Wilcox (Oracle) wrote: > > > - Mirror members of struct page (for pagecache / anon) into struct folio, > > >

Re: [PATCH v6 00/27] Memory Folios

2021-04-01 Thread Matthew Wilcox
On Thu, Apr 01, 2021 at 09:28:03AM -0300, Jason Gunthorpe wrote: > On Thu, Apr 01, 2021 at 12:26:56PM +0100, Matthew Wilcox wrote: > > On Thu, Apr 01, 2021 at 08:05:37AM +0100, Christoph Hellwig wrote: > > > On Wed, Mar 31, 2021 at 07:47:01PM +0100, Matthew Wilcox (Oracle) wrote: > > > > - Mirror

Re: [PATCH v6 00/27] Memory Folios

2021-04-01 Thread Matthew Wilcox
On Thu, Apr 01, 2021 at 08:05:37AM +0100, Christoph Hellwig wrote: > On Wed, Mar 31, 2021 at 07:47:01PM +0100, Matthew Wilcox (Oracle) wrote: > > - Mirror members of struct page (for pagecache / anon) into struct folio, > >so (eg) you can use folio->mapping instead of folio->page.mapping > >

Re: [PATCH v6 00/27] Memory Folios

2021-04-01 Thread Jason Gunthorpe
On Thu, Apr 01, 2021 at 01:52:01PM +0100, Matthew Wilcox wrote: > On Thu, Apr 01, 2021 at 09:28:03AM -0300, Jason Gunthorpe wrote: > > On Thu, Apr 01, 2021 at 12:26:56PM +0100, Matthew Wilcox wrote: > > > On Thu, Apr 01, 2021 at 08:05:37AM +0100, Christoph Hellwig wrote: > > > > On Wed, Mar 31, 202

Re: [PATCH v6 00/27] Memory Folios

2021-04-01 Thread Jason Gunthorpe
On Thu, Apr 01, 2021 at 12:26:56PM +0100, Matthew Wilcox wrote: > On Thu, Apr 01, 2021 at 08:05:37AM +0100, Christoph Hellwig wrote: > > On Wed, Mar 31, 2021 at 07:47:01PM +0100, Matthew Wilcox (Oracle) wrote: > > > - Mirror members of struct page (for pagecache / anon) into struct folio, > > >

Re: [PATCH v6 00/27] Memory Folios

2021-04-01 Thread Christoph Hellwig
On Wed, Mar 31, 2021 at 07:47:01PM +0100, Matthew Wilcox (Oracle) wrote: > - Mirror members of struct page (for pagecache / anon) into struct folio, >so (eg) you can use folio->mapping instead of folio->page.mapping Eww, why?

[PATCH v6 00/27] Memory Folios

2021-03-31 Thread Matthew Wilcox (Oracle)
Managing memory in 4KiB pages is a serious overhead. Many benchmarks exist which show the benefits of a larger "page size". As an example, an earlier iteration of this idea which used compound pages got a 7% performance boost when compiling the kernel using kernbench without any particular tuning