Re: [PATCH] mm: Add callback for defining compaction completion

2019-09-12 Thread Nitin Gupta
On Thu, 2019-09-12 at 17:11 +0530, Bharath Vedartham wrote: > Hi Nitin, > On Wed, Sep 11, 2019 at 10:33:39PM +, Nitin Gupta wrote: > > On Wed, 2019-09-11 at 08:45 +0200, Michal Hocko wrote: > > > On Tue 10-09-19 22:27:53, Nitin Gupta wrote: > > > [...] > > > > > On Tue 10-09-19 13:07:32, Nitin

Re: [PATCH] mm: Add callback for defining compaction completion

2019-09-12 Thread Bharath Vedartham
Hi Nitin, On Wed, Sep 11, 2019 at 10:33:39PM +, Nitin Gupta wrote: > On Wed, 2019-09-11 at 08:45 +0200, Michal Hocko wrote: > > On Tue 10-09-19 22:27:53, Nitin Gupta wrote: > > [...] > > > > On Tue 10-09-19 13:07:32, Nitin Gupta wrote: > > > > > For some applications we need to allocate almost

Re: [PATCH] mm: Add callback for defining compaction completion

2019-09-12 Thread Michal Hocko
On Wed 11-09-19 22:33:39, Nitin Gupta wrote: > On Wed, 2019-09-11 at 08:45 +0200, Michal Hocko wrote: > > On Tue 10-09-19 22:27:53, Nitin Gupta wrote: > > [...] > > > > On Tue 10-09-19 13:07:32, Nitin Gupta wrote: > > > > > For some applications we need to allocate almost all memory as > > > > >

Re: [PATCH] mm: Add callback for defining compaction completion

2019-09-11 Thread Nitin Gupta
On Wed, 2019-09-11 at 08:45 +0200, Michal Hocko wrote: > On Tue 10-09-19 22:27:53, Nitin Gupta wrote: > [...] > > > On Tue 10-09-19 13:07:32, Nitin Gupta wrote: > > > > For some applications we need to allocate almost all memory as > > > > hugepages. > > > > However, on a running system, higher

Re: [PATCH] mm: Add callback for defining compaction completion

2019-09-11 Thread Michal Hocko
On Tue 10-09-19 22:27:53, Nitin Gupta wrote: [...] > > On Tue 10-09-19 13:07:32, Nitin Gupta wrote: > > > For some applications we need to allocate almost all memory as > > > hugepages. > > > However, on a running system, higher order allocations can fail if the > > > memory is fragmented. Linux

RE: [PATCH] mm: Add callback for defining compaction completion

2019-09-10 Thread Nitin Gupta
a...@oracle.com; Matthew Wilcox ; Yu Zhao > ; Qian Cai ; Andrey Ryabinin > ; Allison Randal ; Mike > Rapoport ; Thomas Gleixner > ; Arun KS ; Wei Yang > ; linux-kernel@vger.kernel.org; linux- > m...@kvack.org > Subject: Re: [PATCH] mm: Add callback for defining compaction completi

Re: [PATCH] mm: Add callback for defining compaction completion

2019-09-10 Thread Michal Hocko
On Tue 10-09-19 13:07:32, Nitin Gupta wrote: > For some applications we need to allocate almost all memory as hugepages. > However, on a running system, higher order allocations can fail if the > memory is fragmented. Linux kernel currently does on-demand compaction as > we request more hugepages