* Requesting to share current work items
@ 2018-04-06 7:20 Chandan Vn
2018-04-06 20:58 ` Matthew Wilcox
0 siblings, 1 reply; 5+ messages in thread
From: Chandan Vn @ 2018-04-06 7:20 UTC (permalink / raw)
To: linux-mm
[-- Attachment #1: Type: text/plain, Size: 293 bytes --]
Hi,
I would like to start contributing to linux-mm community.
Could you please let me know the current work items which I can start
working on.
Please note that I have been working on linux-mm from past 4 years but
mostly proprietary or not yet mainlined vendor codebase.
Thanks
Chandan VN
[-- Attachment #2: Type: text/html, Size: 496 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Requesting to share current work items
2018-04-06 7:20 Requesting to share current work items Chandan Vn
@ 2018-04-06 20:58 ` Matthew Wilcox
2018-04-07 4:18 ` Chandan Vn
2018-04-13 9:15 ` Anshuman Khandual
0 siblings, 2 replies; 5+ messages in thread
From: Matthew Wilcox @ 2018-04-06 20:58 UTC (permalink / raw)
To: Chandan Vn; +Cc: linux-mm
On Fri, Apr 06, 2018 at 07:20:47AM +0000, Chandan Vn wrote:
> Hi,
>
> I would like to start contributing to linux-mm community.
> Could you please let me know the current work items which I can start
> working on.
>
> Please note that I have been working on linux-mm from past 4 years but
> mostly proprietary or not yet mainlined vendor codebase.
We had a report of a problem a few weeks ago that I don't know if anybody
is looking at yet. Perhaps you'd like to try fixing it.
The report says that, under some unidentified workload, calling vmalloc
can take many hundreds of milliseconds, and the problem is in
alloc_vmap_area().
So a good plan of work would be to devise a kernel module which can
produce a highly-fragmented vmap area, and demonstrate the problem.
Once you've got a reliable reproducer, you can look at how to fix this
problem. We probably need a better data structure; either enhance
the existing rbtree of free areas, or change the data structure.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Requesting to share current work items
2018-04-06 20:58 ` Matthew Wilcox
@ 2018-04-07 4:18 ` Chandan Vn
2018-04-13 9:15 ` Anshuman Khandual
1 sibling, 0 replies; 5+ messages in thread
From: Chandan Vn @ 2018-04-07 4:18 UTC (permalink / raw)
To: Matthew Wilcox; +Cc: linux-mm
On Sat, Apr 7, 2018 at 2:28 AM, Matthew Wilcox <willy@infradead.org> wrote:
> On Fri, Apr 06, 2018 at 07:20:47AM +0000, Chandan Vn wrote:
>> Hi,
>>
>> I would like to start contributing to linux-mm community.
>> Could you please let me know the current work items which I can start
>> working on.
>>
>> Please note that I have been working on linux-mm from past 4 years but
>> mostly proprietary or not yet mainlined vendor codebase.
>
> We had a report of a problem a few weeks ago that I don't know if anybody
> is looking at yet. Perhaps you'd like to try fixing it.
>
> The report says that, under some unidentified workload, calling vmalloc
> can take many hundreds of milliseconds, and the problem is in
> alloc_vmap_area().
>
> So a good plan of work would be to devise a kernel module which can
> produce a highly-fragmented vmap area, and demonstrate the problem.
> Once you've got a reliable reproducer, you can look at how to fix this
> problem. We probably need a better data structure; either enhance
> the existing rbtree of free areas, or change the data structure.
Sure. I would work on this.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Requesting to share current work items
2018-04-06 20:58 ` Matthew Wilcox
2018-04-07 4:18 ` Chandan Vn
@ 2018-04-13 9:15 ` Anshuman Khandual
2018-04-13 10:23 ` Matthew Wilcox
1 sibling, 1 reply; 5+ messages in thread
From: Anshuman Khandual @ 2018-04-13 9:15 UTC (permalink / raw)
To: Matthew Wilcox, Chandan Vn; +Cc: linux-mm
On 04/07/2018 02:28 AM, Matthew Wilcox wrote:
> On Fri, Apr 06, 2018 at 07:20:47AM +0000, Chandan Vn wrote:
>> Hi,
>>
>> I would like to start contributing to linux-mm community.
>> Could you please let me know the current work items which I can start
>> working on.
>>
>> Please note that I have been working on linux-mm from past 4 years but
>> mostly proprietary or not yet mainlined vendor codebase.
>
> We had a report of a problem a few weeks ago that I don't know if anybody
> is looking at yet. Perhaps you'd like to try fixing it.
Do you have any reference or link to the bug report some where ?
>
> The report says that, under some unidentified workload, calling vmalloc
Why should allocating vmap_area should depend on user space workload.
Was the workload some how causing severely fragmented vmalloc() space
making it harder for future vmalloc() requests. I am wondering.
> can take many hundreds of milliseconds, and the problem is in
> alloc_vmap_area().
Hmm, I did experiment around with a test driver on a guest with 16GB
memory. Never saw vmalloc() cost going beyond single digit milliseconds.
How many number of independent vmap_area node we are looking at in the
RB tree if we would like to hit hundreds of milliseconds in cost.
>
> So a good plan of work would be to devise a kernel module which can
> produce a highly-fragmented vmap area, and demonstrate the problem.
I tried linear fragmentation (releasing nodes after certain distance)
and random fragmentation (releasing nodes after random distance) inside
a contiguously allocated series of vmalloc space.
> Once you've got a reliable reproducer, you can look at how to fix this
> problem. We probably need a better data structure; either enhance
> the existing rbtree of free areas, or change the data structure.
>
Starting node of the RB tree to search is determined with the help of
vmap_area_cache (if its applicable) followed by search in the RB tree
followed by search in the list. Wondering if in-order ascending search
inside RB tree itself will give better performance instead ? Will keep
looking into this.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Requesting to share current work items
2018-04-13 9:15 ` Anshuman Khandual
@ 2018-04-13 10:23 ` Matthew Wilcox
0 siblings, 0 replies; 5+ messages in thread
From: Matthew Wilcox @ 2018-04-13 10:23 UTC (permalink / raw)
To: Anshuman Khandual; +Cc: Chandan Vn, linux-mm
On Fri, Apr 13, 2018 at 02:45:46PM +0530, Anshuman Khandual wrote:
> On 04/07/2018 02:28 AM, Matthew Wilcox wrote:
> > On Fri, Apr 06, 2018 at 07:20:47AM +0000, Chandan Vn wrote:
> >> Hi,
> >>
> >> I would like to start contributing to linux-mm community.
> >> Could you please let me know the current work items which I can start
> >> working on.
> >>
> >> Please note that I have been working on linux-mm from past 4 years but
> >> mostly proprietary or not yet mainlined vendor codebase.
> >
> > We had a report of a problem a few weeks ago that I don't know if anybody
> > is looking at yet. Perhaps you'd like to try fixing it.
>
> Do you have any reference or link to the bug report some where ?
https://marc.info/?l=linux-mm&m=151972700711879&w=2
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-04-13 10:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-06 7:20 Requesting to share current work items Chandan Vn
2018-04-06 20:58 ` Matthew Wilcox
2018-04-07 4:18 ` Chandan Vn
2018-04-13 9:15 ` Anshuman Khandual
2018-04-13 10:23 ` Matthew Wilcox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox