Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1383803
| From | Stephen Rothwell <sfr@canb.auug.org.au> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH mmotm 4/5] huge tmpfs: avoid premature exposure of new pagetable revert |
| Date | 2016-04-21 02:00 +0200 |
| Message-ID | <rqaci-7W7-7@gated-at.bofh.it> (permalink) |
| References | <roHP4-30O-1@gated-at.bofh.it> <roHYJ-35i-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Hugh, On Sat, 16 Apr 2016 16:38:15 -0700 (PDT) Hugh Dickins <hughd@google.com> wrote: > > This patch reverts all of my 09/31, your > huge-tmpfs-avoid-premature-exposure-of-new-pagetable.patch > and also the mm/memory.c changes from the patch after it, > huge-tmpfs-map-shmem-by-huge-page-pmd-or-by-page-team-ptes.patch > > I've diffed this against the top of the tree, but it may be better to > throw this and huge-tmpfs-avoid-premature-exposure-of-new-pagetable.patch > away, and just delete the mm/memory.c part of the patch after it. > > This is in preparation for 5/5, which replaces what was done here. > Why? Numerous reasons. Kirill was concerned that my movement of > map_pages from before to after fault would show performance regression. > Robot reported vm-scalability.throughput -5.5% regression, bisected to > the avoid premature exposure patch. Andrew was concerned about bloat > in mm/memory.o. Google had seen (on an earlier kernel) an OOM deadlock > from pagetable allocations being done while holding pagecache pagelock. > > I thought I could deal with those later on, but the clincher came from > Xiong Zhou's report that it had broken binary execution from DAX mount. > Silly little oversight, but not as easily fixed as first appears, because > DAX now uses the i_mmap_rwsem to guard an extent from truncation: which > would be open to deadlock if pagetable allocation goes down to reclaim > (both are using only the read lock, but in danger of an rwr sandwich). > > I've considered various alternative approaches, and what can be done > to get both DAX and huge tmpfs working again quickly. Eventually > arrived at the obvious: shmem should use the new pmd_fault(). > > Reported-by: kernel test robot <xiaolong.ye@intel.com> > Reported-by: Xiong Zhou <jencce.kernel@gmail.com> > Signed-off-by: Hugh Dickins <hughd@google.com> > --- > mm/filemap.c | 10 -- > mm/memory.c | 225 +++++++++++++++++++++---------------------------- > 2 files changed, 101 insertions(+), 134 deletions(-) I added this at the end of mmotm in linux-next today. I will leave Andrew to sort it out later. -- Cheers, Stephen Rothwell
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH mmotm 1/5] huge tmpfs: try to allocate huge pages split into a team fix Hugh Dickins <hughd@google.com> - 2016-04-17 01:30 +0200
[PATCH mmotm 2/5] huge tmpfs: fix mlocked meminfo track huge unhuge mlocks fix Hugh Dickins <hughd@google.com> - 2016-04-17 01:40 +0200
Re: [PATCH mmotm 2/5] huge tmpfs: fix mlocked meminfo track huge unhuge mlocks fix Stephen Rothwell <sfr@canb.auug.org.au> - 2016-04-21 01:50 +0200
[PATCH mmotm 4/5] huge tmpfs: avoid premature exposure of new pagetable revert Hugh Dickins <hughd@google.com> - 2016-04-17 01:40 +0200
Re: [PATCH mmotm 4/5] huge tmpfs: avoid premature exposure of new pagetable revert Stephen Rothwell <sfr@canb.auug.org.au> - 2016-04-21 02:00 +0200
[PATCH mmotm 3/5] huge tmpfs recovery: tweak shmem_getpage_gfp to fill team fix Hugh Dickins <hughd@google.com> - 2016-04-17 01:40 +0200
Re: [PATCH mmotm 3/5] huge tmpfs recovery: tweak shmem_getpage_gfp to fill team fix Stephen Rothwell <sfr@canb.auug.org.au> - 2016-04-21 02:00 +0200
[PATCH mmotm 5/5] huge tmpfs: add shmem_pmd_fault() Hugh Dickins <hughd@google.com> - 2016-04-17 01:50 +0200
Re: [PATCH mmotm 5/5] huge tmpfs: add shmem_pmd_fault() "Kirill A. Shutemov" <kirill@shutemov.name> - 2016-04-17 02:50 +0200
Re: [PATCH mmotm 5/5] huge tmpfs: add shmem_pmd_fault() Hugh Dickins <hughd@google.com> - 2016-04-17 03:30 +0200
Re: [PATCH mmotm 5/5] huge tmpfs: add shmem_pmd_fault() Stephen Rothwell <sfr@canb.auug.org.au> - 2016-04-21 02:00 +0200
Re: [PATCH mmotm 1/5] huge tmpfs: try to allocate huge pages split into a team fix Stephen Rothwell <sfr@canb.auug.org.au> - 2016-04-21 01:50 +0200
csiph-web