Re: [RFC v5 PATCH 2/2] mm: mmap: zap pages with read mmap_sem in munmap

2018-07-24 Thread Yang Shi
+static int vm_munmap_zap_rlock(unsigned long start, size_t len) +{ +    int ret; +    struct mm_struct *mm = current->mm; +    LIST_HEAD(uf); + +    ret = do_munmap_zap_rlock(mm, start, len, &uf); +    userfaultfd_unmap_complete(mm, &uf); +    return ret; +} +   int vm_munmap(unsigned long st

Re: [RFC v5 PATCH 2/2] mm: mmap: zap pages with read mmap_sem in munmap

2018-07-24 Thread Laurent Dufour
On 24/07/2018 19:26, Yang Shi wrote: > > > On 7/24/18 10:18 AM, Laurent Dufour wrote: >> On 19/07/2018 01:21, Yang Shi wrote: >>> When running some mmap/munmap scalability tests with large memory (i.e. 300GB), the below hung task issue may happen occasionally. >>> INFO: task ps:14018 bloc

Re: [RFC v5 PATCH 2/2] mm: mmap: zap pages with read mmap_sem in munmap

2018-07-24 Thread Yang Shi
On 7/24/18 10:18 AM, Laurent Dufour wrote: On 19/07/2018 01:21, Yang Shi wrote: When running some mmap/munmap scalability tests with large memory (i.e. 300GB), the below hung task issue may happen occasionally. INFO: task ps:14018 blocked for more than 120 seconds. Tainted: G

Re: [RFC v5 PATCH 2/2] mm: mmap: zap pages with read mmap_sem in munmap

2018-07-24 Thread Laurent Dufour
On 19/07/2018 01:21, Yang Shi wrote: > When running some mmap/munmap scalability tests with large memory (i.e. >> 300GB), the below hung task issue may happen occasionally. > > INFO: task ps:14018 blocked for more than 120 seconds. >Tainted: GE 4.9.79-009.ali3000.alios7.x86_64

Re: [RFC v5 PATCH 2/2] mm: mmap: zap pages with read mmap_sem in munmap

2018-07-24 Thread Yang Shi
On 7/24/18 2:26 AM, Kirill A. Shutemov wrote: On Thu, Jul 19, 2018 at 07:21:41AM +0800, Yang Shi wrote: When running some mmap/munmap scalability tests with large memory (i.e. 300GB), the below hung task issue may happen occasionally. INFO: task ps:14018 blocked for more than 120 seconds.

Re: [RFC v5 PATCH 2/2] mm: mmap: zap pages with read mmap_sem in munmap

2018-07-24 Thread Kirill A. Shutemov
On Thu, Jul 19, 2018 at 07:21:41AM +0800, Yang Shi wrote: > When running some mmap/munmap scalability tests with large memory (i.e. > > 300GB), the below hung task issue may happen occasionally. > > INFO: task ps:14018 blocked for more than 120 seconds. >Tainted: GE 4.9.79-009.

[RFC v5 PATCH 2/2] mm: mmap: zap pages with read mmap_sem in munmap

2018-07-18 Thread Yang Shi
When running some mmap/munmap scalability tests with large memory (i.e. > 300GB), the below hung task issue may happen occasionally. INFO: task ps:14018 blocked for more than 120 seconds. Tainted: GE 4.9.79-009.ali3000.alios7.x86_64 #1 "echo 0 > /proc/sys/kernel/hung_task_timeo