All of lore.kernel.org
 help / color / mirror / Atom feed
* [LSF/MM ATTEND] mmap_sem and mm performance testing
@ 2014-12-22 23:51 Davidlohr Bueso
  2015-01-02 13:35 ` [Lsf-pc] " Mel Gorman
  0 siblings, 1 reply; 3+ messages in thread
From: Davidlohr Bueso @ 2014-12-22 23:51 UTC (permalink / raw)
  To: lsf-pc; +Cc: linux-mm

Hello,

I would like to attend LSF/MM 2015. While I am very much interested in
general mm performance topics, I would particularly like to discuss:

(1) Where we are at with the mmap_sem issues and progress. This topic
constantly comes up each year [1,2,3] without much changing. While the
issues are very clear (both long hold times, specially in fs paths and
coarse lock granularity) it would be good to detail exactly *where*
these problems are and what are some of the show stoppers. In addition,
present overall progress and benchmark numbers on fine graining via
range locking (I am currently working on this as a follow on to recent
i_mmap locking patches) and experimental work,
such as speculative page fault patches[4]. If nothing else, this session
can/should produce a list of tangible todo items.

(2) Expanding our mm performance testing. I am working on incorporating
multiple VM-intensive benchmarks taken from system research papers into
mmtests. Academics tend to choose their benchmarking material carefully
and there's no reason we cannot learn from that. The downside is that
their tools are painfully complex to use, and thus not very popular in
the kernel community. Two examples are popular suites such as mosbench
and PARSEC. The idea would be to present easy to use, higher level
benchmarks to expose in-memory scalability issues that be useful to
kernel hackers. Additionally, possibly discuss other tools folks use
that can be beneficial to our internal automation.

[1] http://lwn.net/Articles/490501/
[2] http://lwn.net/Articles/548098/
[3] http://lwn.net/Articles/591978/
[4] http://lwn.net/Articles/617344/

Thanks,
Davidlohr

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Lsf-pc] [LSF/MM ATTEND] mmap_sem and mm performance testing
  2014-12-22 23:51 [LSF/MM ATTEND] mmap_sem and mm performance testing Davidlohr Bueso
@ 2015-01-02 13:35 ` Mel Gorman
  2015-02-07  2:17   ` Andy Lutomirski
  0 siblings, 1 reply; 3+ messages in thread
From: Mel Gorman @ 2015-01-02 13:35 UTC (permalink / raw)
  To: Davidlohr Bueso; +Cc: lsf-pc, linux-mm

On Mon, Dec 22, 2014 at 03:51:24PM -0800, Davidlohr Bueso wrote:
> Hello,
> 
> I would like to attend LSF/MM 2015. While I am very much interested in
> general mm performance topics, I would particularly like to discuss:
> 
> (1) Where we are at with the mmap_sem issues and progress. This topic
> constantly comes up each year [1,2,3] without much changing. While the
> issues are very clear (both long hold times, specially in fs paths and
> coarse lock granularity) it would be good to detail exactly *where*
> these problems are and what are some of the show stoppers. In addition,
> present overall progress and benchmark numbers on fine graining via
> range locking (I am currently working on this as a follow on to recent
> i_mmap locking patches) and experimental work,
> such as speculative page fault patches[4]. If nothing else, this session
> can/should produce a list of tangible todo items.
> 

There have been changes on mmap_sem hold times -- mmap_sem dropped by
khugepaged during allocation being a very obvious one but there are
others. The scope of what mmap_sem protects is similar but the stalling
behaviour has changed since this was last discussed. It's worth
revisiting where things stand and at the very least verify what cases
are currently causing problems.

-- 
Mel Gorman
SUSE Labs

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Lsf-pc] [LSF/MM ATTEND] mmap_sem and mm performance testing
  2015-01-02 13:35 ` [Lsf-pc] " Mel Gorman
@ 2015-02-07  2:17   ` Andy Lutomirski
  0 siblings, 0 replies; 3+ messages in thread
From: Andy Lutomirski @ 2015-02-07  2:17 UTC (permalink / raw)
  To: Mel Gorman, Davidlohr Bueso; +Cc: lsf-pc, linux-mm

On 01/02/2015 05:35 AM, Mel Gorman wrote:
> On Mon, Dec 22, 2014 at 03:51:24PM -0800, Davidlohr Bueso wrote:
>> Hello,
>>
>> I would like to attend LSF/MM 2015. While I am very much interested in
>> general mm performance topics, I would particularly like to discuss:
>>
>> (1) Where we are at with the mmap_sem issues and progress. This topic
>> constantly comes up each year [1,2,3] without much changing. While the
>> issues are very clear (both long hold times, specially in fs paths and
>> coarse lock granularity) it would be good to detail exactly *where*
>> these problems are and what are some of the show stoppers. In addition,
>> present overall progress and benchmark numbers on fine graining via
>> range locking (I am currently working on this as a follow on to recent
>> i_mmap locking patches) and experimental work,
>> such as speculative page fault patches[4]. If nothing else, this session
>> can/should produce a list of tangible todo items.
>>
>
> There have been changes on mmap_sem hold times -- mmap_sem dropped by
> khugepaged during allocation being a very obvious one but there are
> others. The scope of what mmap_sem protects is similar but the stalling
> behaviour has changed since this was last discussed. It's worth
> revisiting where things stand and at the very least verify what cases
> are currently causing problems.
>

I think that, for my workload, the main issue is that one cpu can take 
mmap_sem and get preempted, and, since we don't have priority 
inheritance, other threads in the process get stalled.

As a terrible stopgap, some kind of priority boosting, or maybe optional 
preemption disabling for some parts of the mmap/munmap code could help. 
  The speculative page fault stuff could also help.

--Andy

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-02-07  2:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-22 23:51 [LSF/MM ATTEND] mmap_sem and mm performance testing Davidlohr Bueso
2015-01-02 13:35 ` [Lsf-pc] " Mel Gorman
2015-02-07  2:17   ` Andy Lutomirski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.