Re: [PATCH] mm, thp: Relax the VM_DENYWRITE constraint on file-backed THPs

2021-04-06 Thread Collin Fijalkovich
ice drop in iTLB-load-misses, so it looks like your > code is > having the right effect. > > What about the call to filemap_nr_thps_dec() in unaccount_page_cache_page() - > does > that need an smp_mb() as well? > > -- Bill > > > On Apr 5, 2021, at 6:15 PM, Collin

Re: [PATCH] mm, thp: Relax the VM_DENYWRITE constraint on file-backed THPs

2021-04-05 Thread Collin Fijalkovich
v2 has been uploaded with performance testing results: https://lore.kernel.org/patchwork/patch/1408266/ On Mon, Mar 22, 2021 at 2:59 PM Collin Fijalkovich wrote: > > Transparent huge pages are supported for read-only non-shmem filesystems, > but are only used for vmas with VM_

[PATCH v2] mm, thp: Relax the VM_DENYWRITE constraint on file-backed THPs

2021-04-05 Thread Collin Fijalkovich
-compiler.so FilePmdMapped: 2048 kB Signed-off-by: Collin Fijalkovich --- Changes v1 -> v2: * commit message 'non-shmem filesystems' -> 'non-shmem files' * Add performance testing data to commit message fs/open.c | 13 +++-- mm/khugepaged.c | 16 +++- 2 files chang

Re: [PATCH] mm, thp: Relax the VM_DENYWRITE constraint on file-backed THPs

2021-03-30 Thread Collin Fijalkovich
if a file is repeatedly opened for write, as it will need to refault each time. - Collin On Sun, Mar 28, 2021 at 9:45 AM Song Liu wrote: > > > > > On Mar 23, 2021, at 10:13 AM, Collin Fijalkovich > > wrote: > > > > Question: when we use this on shared library,

[PATCH] mm, thp: Relax the VM_DENYWRITE constraint on file-backed THPs

2021-03-22 Thread Collin Fijalkovich
with the necessary layout. The dynamic linker must map these file's segments at a hugepage size aligned vma for the mapping to be backed with THPs. Signed-off-by: Collin Fijalkovich --- fs/open.c | 13 +++-- mm/khugepaged.c | 16 +++- 2 files changed, 26 insertions(+), 3