Re: How cma allocation works ?

2019-08-26 Thread Pankaj Suryawanshi
On Mon, Aug 26, 2019 at 12:55 PM Michal Hocko wrote: > > On Fri 23-08-19 00:17:22, Pankaj Suryawanshi wrote: > > On Thu, Aug 22, 2019 at 6:32 PM Michal Hocko wrote: > > > > > > On Wed 21-08-19 22:58:03, Pankaj Suryawanshi wrote: > > > > Hello, &

Re: PageBlocks and Migrate Types

2019-08-22 Thread Pankaj Suryawanshi
On Thu, Aug 22, 2019 at 6:22 PM Michal Hocko wrote: > > On Wed 21-08-19 22:23:44, Pankaj Suryawanshi wrote: > > Hello, > > > > 1. What are Pageblocks and migrate types(MIGRATE_CMA) in Linux memory ? > > Pageblocks are a simple grouping of physically contiguous pages

Re: oom-killer

2019-08-06 Thread Pankaj Suryawanshi
On Tue, Aug 6, 2019 at 8:37 PM Michal Hocko wrote: > > On Tue 06-08-19 20:24:03, Pankaj Suryawanshi wrote: > > On Tue, 6 Aug, 2019, 1:46 AM Michal Hocko, wrote: > > > > > > On Mon 05-08-19 21:04:53, Pankaj Suryawanshi wrote: > > > > On Mon,

Re: oom-killer

2019-08-06 Thread Pankaj Suryawanshi
On Tue, 6 Aug, 2019, 1:46 AM Michal Hocko, wrote: > > On Mon 05-08-19 21:04:53, Pankaj Suryawanshi wrote: > > On Mon, Aug 5, 2019 at 5:35 PM Michal Hocko wrote: > > > > > > On Mon 05-08-19 13:56:20, Vlastimil Babka wrote: > > > > On 8/5/19 1:24 PM, Mi

Re: oom-killer

2019-08-05 Thread Pankaj Suryawanshi
On Mon, Aug 5, 2019 at 5:35 PM Michal Hocko wrote: > > On Mon 05-08-19 13:56:20, Vlastimil Babka wrote: > > On 8/5/19 1:24 PM, Michal Hocko wrote: > > >> [ 727.954355] CPU: 0 PID: 56 Comm: kworker/u8:2 Tainted: P O > > >> 4.14.65 #606 > > > [...] > > >> [ 728.029390] []

Re: Page Allocation Failure and Page allocation stalls

2019-05-09 Thread Pankaj Suryawanshi
On Mon, May 6, 2019 at 2:35 PM Vlastimil Babka wrote: > > On 5/3/19 7:44 PM, Pankaj Suryawanshi wrote: > >> First possibility that comes to mind is that a usermodehelper got > >> launched, and > >> it then tried to fork with a very large active process image.

Re: Page Allocation Failure and Page allocation stalls

2019-05-03 Thread Pankaj Suryawanshi
On Thu, May 2, 2019 at 10:51 AM Valdis Klētnieks wrote: > > On Thu, 02 May 2019 04:56:05 +0530, Pankaj Suryawanshi said: > > > Please help me to decode the error messages and reason for this errors. > > > [ 3205.818891] HwBinder:1894_6: page allocation failure: orde

Re: vmscan.c: Reclaim unevictable pages.

2019-04-28 Thread Pankaj Suryawanshi
On Wed, Apr 17, 2019 at 5:12 PM Vlastimil Babka wrote: > > On 4/6/19 7:59 AM, Pankaj Suryawanshi wrote: > > Hello , > > > > shrink_page_list() returns , number of pages reclaimed, when pages is > > unevictable it returns VM_BUG_ON_PAGE(PageLRU(page) || > > Pag

Re: [External] Re: Basics : Memory Configuration

2019-04-10 Thread Pankaj Suryawanshi
From: Christopher Lameter Sent: 09 April 2019 21:31 To: Pankaj Suryawanshi Cc: linux-kernel@vger.kernel.org; linux...@kvack.org Subject: [External] Re: Basics : Memory Configuration On Tue, 9 Apr 2019, Pankaj Suryawanshi wrote: > I am confuse ab

Re: [External] Re: Basics : Memory Configuration

2019-04-10 Thread Pankaj Suryawanshi
From: Christopher Lameter Sent: 09 April 2019 21:31 To: Pankaj Suryawanshi Cc: linux-kernel@vger.kernel.org; linux...@kvack.org Subject: [External] Re: Basics : Memory Configuration On Tue, 9 Apr 2019, Pankaj Suryawanshi wrote: > I am confuse ab

Basics : Memory Configuration

2019-04-09 Thread Pankaj Suryawanshi
Hello, I am confuse about memory configuration and I have below questions 1. if 32-bit os maximum virtual address is 4GB, When i have 4 gb of ram for 32-bit os, What about the virtual memory size ? is it required virtual memory(disk space) or we can directly use physical memory ? 2. In 32-bit

Re: [External] Re: CMA area pages information

2019-04-04 Thread Pankaj Suryawanshi
From: Shyam Saini Sent: 04 April 2019 19:58 To: Pankaj Suryawanshi Cc: linux-kernel@vger.kernel.org; linux...@kvack.org Subject: [External] Re: CMA area pages information CAUTION: This email originated from outside of the organization. Do not click

Re: CMA area pages information

2019-04-04 Thread Pankaj Suryawanshi
From: Pankaj Suryawanshi Sent: 01 April 2019 16:34 To: linux-kernel@vger.kernel.org; linux...@kvack.org Subject: Re: CMA area pages information From: Pankaj Suryawanshi Sent: 01 April 2019 13:26 To: linux-kernel

Re: How to calculate instruction executed for function

2019-04-04 Thread Pankaj Suryawanshi
From: Pankaj Suryawanshi Sent: 03 April 2019 19:50 To: linux...@kvack.org; linux-kernel@vger.kernel.org Subject: How to calculate instruction executed for function Hello, How to calculate instruction executed for function ? For eg. I need to calculate

How to calculate instruction executed for function

2019-04-03 Thread Pankaj Suryawanshi
Hello, How to calculate instruction executed for function ? For eg. I need to calculate instruction executed for CMA_ALLOC function. How many instruction executed for cma_alloc ? Any help would be appreciated. Regards, Pankaj

Re: CMA area pages information

2019-04-01 Thread Pankaj Suryawanshi
From: Pankaj Suryawanshi Sent: 01 April 2019 13:26 To: linux-kernel@vger.kernel.org; linux...@kvack.org Subject: CMA area pages information Hello, Is there any way to get CMA area pages information (tool/application) ? Trying to get CMA-pages info

CMA area pages information

2019-04-01 Thread Pankaj Suryawanshi
Hello, Is there any way to get CMA area pages information (tool/application) ? Regards, Pankaj * eInfochips Business Disclaimer: This

Re: [External] Re: Print map for total physical and virtual memory

2019-04-01 Thread Pankaj Suryawanshi
From: Pankaj Suryawanshi Sent: 29 March 2019 10:52 To: Matthew Wilcox Cc: linux-kernel@vger.kernel.org; linux...@kvack.org Subject: Re: [External] Re: Print map for total physical and virtual memory From: Matthew

Re: Page-allocation-failure

2019-03-28 Thread Pankaj Suryawanshi
From: Pankaj Suryawanshi Sent: 28 March 2019 13:17 To: linux-kernel@vger.kernel.org; linux...@kvack.org Subject: Re: Page-allocation-failure From: Pankaj Suryawanshi Sent: 28 March 2019 13:12 To: linux-kernel

Re: [External] Re: vmscan: Reclaim unevictable pages

2019-03-28 Thread Pankaj Suryawanshi
From: Michal Hocko Sent: 26 March 2019 15:06 To: Pankaj Suryawanshi Cc: Kirill Tkhai; Vlastimil Babka; aneesh.ku...@linux.ibm.com; linux-kernel@vger.kernel.org; minc...@kernel.org; linux...@kvack.org; khand...@linux.vnet.ibm.com Subject: Re: [External

Re: [External] Re: Print map for total physical and virtual memory

2019-03-28 Thread Pankaj Suryawanshi
From: Matthew Wilcox Sent: 26 March 2019 18:13 To: Pankaj Suryawanshi Cc: linux-kernel@vger.kernel.org; linux...@kvack.org Subject: Re: [External] Re: Print map for total physical and virtual memory On Tue, Mar 26, 2019 at 12:35:25PM +, Pankaj

Re: Page-allocation-failure

2019-03-28 Thread Pankaj Suryawanshi
From: Pankaj Suryawanshi Sent: 28 March 2019 13:12 To: linux-kernel@vger.kernel.org; linux...@kvack.org Subject: Page-allocation-failure Hello , I am facing issue related to page allocation failure. If anyone is familiar with this issue, let me know

Page-allocation-failure

2019-03-28 Thread Pankaj Suryawanshi
Hello , I am facing issue related to page allocation failure. If anyone is familiar with this issue, let me know what is the issue? How to solved/debug it. Failure logs -:

Re: [External] Re: Print map for total physical and virtual memory

2019-03-26 Thread Pankaj Suryawanshi
From: Matthew Wilcox Sent: 26 March 2019 17:06 To: Pankaj Suryawanshi Cc: linux-kernel@vger.kernel.org; linux...@kvack.org Subject: [External] Re: Print map for total physical and virtual memory CAUTION: This email originated from outside

Re: [External] Re: vmscan: Reclaim unevictable pages

2019-03-26 Thread Pankaj Suryawanshi
From: Michal Hocko Sent: 26 March 2019 14:31 To: Pankaj Suryawanshi Cc: Kirill Tkhai; Vlastimil Babka; aneesh.ku...@linux.ibm.com; linux-kernel@vger.kernel.org; minc...@kernel.org; linux...@kvack.org; khand...@linux.vnet.ibm.com Subject: Re: [External

Re: [External] Re: vmscan: Reclaim unevictable pages

2019-03-26 Thread Pankaj Suryawanshi
From: Michal Hocko Sent: 26 March 2019 14:31 To: Pankaj Suryawanshi Cc: Kirill Tkhai; Vlastimil Babka; aneesh.ku...@linux.ibm.com; linux-kernel@vger.kernel.org; minc...@kernel.org; linux...@kvack.org; khand...@linux.vnet.ibm.com Subject: Re: [External

Print map for total physical and virtual memory

2019-03-26 Thread Pankaj Suryawanshi
Hello, 1. Is there any way to print whole physical and virtual memory map in kernel/user space ? 2. Is there any way to print map of cma area reserved memory and movable pages of cma area. 3. Is there any way to know who pinned the pages from cma reserved area ? Regards, Pankaj

Re: [External] Re: vmscan: Reclaim unevictable pages

2019-03-26 Thread Pankaj Suryawanshi
From: Pankaj Suryawanshi Sent: 20 March 2019 12:18 To: Kirill Tkhai; Vlastimil Babka; Michal Hocko; aneesh.ku...@linux.ibm.com Cc: linux-kernel@vger.kernel.org; minc...@kernel.org; linux...@kvack.org; khand...@linux.vnet.ibm.com Subject: Re: [External

Re: [External] Re: vmscan: Reclaim unevictable pages

2019-03-20 Thread Pankaj Suryawanshi
From: Kirill Tkhai Sent: 18 March 2019 16:08 To: Pankaj Suryawanshi; Vlastimil Babka; Michal Hocko; aneesh.ku...@linux.ibm.com Cc: linux-kernel@vger.kernel.org; minc...@kernel.org; linux...@kvack.org; khand...@linux.vnet.ibm.com Subject: Re: [External

Re: [External] Re: mm/cma.c: High latency for cma allocation

2019-03-19 Thread Pankaj Suryawanshi
From: Pankaj Suryawanshi Sent: 19 March 2019 15:59 To: Michal Hocko Cc: linux...@kvack.org; linux-kernel@vger.kernel.org; minc...@kernel.org; Kirill Tkhai Subject: Re: [External] Re: mm/cma.c: High latency for cma allocation

Re: [External] Re: mm/cma.c: High latency for cma allocation

2019-03-19 Thread Pankaj Suryawanshi
From: Michal Hocko Sent: 18 March 2019 19:59 To: Pankaj Suryawanshi Cc: linux...@kvack.org; linux-kernel@vger.kernel.org; minc...@kernel.org; Kirill Tkhai Subject: Re: [External] Re: mm/cma.c: High latency for cma allocation On Mon 18-03-19 14:02:09

Re: [External] Re: mm/cma.c: High latency for cma allocation

2019-03-18 Thread Pankaj Suryawanshi
From: Michal Hocko Sent: 18 March 2019 19:12 To: Pankaj Suryawanshi Cc: linux...@kvack.org; linux-kernel@vger.kernel.org; minc...@kernel.org; Kirill Tkhai Subject: Re: [External] Re: mm/cma.c: High latency for cma allocation [Please do not use html

Re: [External] Re: mm/cma.c: High latency for cma allocation

2019-03-18 Thread Pankaj Suryawanshi
From: Michal Hocko Sent: 18 March 2019 18:37:57 To: Pankaj Suryawanshi Cc: linux...@kvack.org; linux-kernel@vger.kernel.org; minc...@kernel.org; Kirill Tkhai Subject: [External] Re: mm/cma.c: High latency for cma allocation CAUTION: This email originated from outside

mm/cma.c: High latency for cma allocation

2019-03-18 Thread Pankaj Suryawanshi
Hello, I am facing issue of high latency in CMA allocation of large size buffer. I am frequently allocating/deallocation CMA memory, latency of allocation is very high. Below are the stat for allocation/deallocation latency issue. (390100 kB), latency 29997 us (390100 kB), latency 22957 us

Re: [External] Re: vmscan: Reclaim unevictable pages

2019-03-18 Thread Pankaj Suryawanshi
From: Kirill Tkhai Sent: 18 March 2019 15:17:56 To: Pankaj Suryawanshi; Vlastimil Babka; Michal Hocko; aneesh.ku...@linux.ibm.com Cc: linux-kernel@vger.kernel.org; minc...@kernel.org; linux...@kvack.org; khand...@linux.vnet.ibm.com; hillf...@alibaba-inc.com Subject: Re: [External] Re: vmscan

Re: [External] Re: vmscan: Reclaim unevictable pages

2019-03-18 Thread Pankaj Suryawanshi
age) || PageUnevictable(page), page); --- Before throwing error, pages are added to list, this is under iteration of shrink_page_list(). From: Kirill Tkhai Sent: 18 March 2019 15:03:15 To: Pankaj Suryawan

Re: [External] Re: vmscan: Reclaim unevictable pages

2019-03-18 Thread Pankaj Suryawanshi
he below issue. 1. Large size buffer allocation using cma_alloc successful with unevictable pages. cma_alloc of current kernel will fail due to unevictable page Please let me know if anything i am missing. Regards, Pankaj From: Vlastimil Babka Sent: 18 March 2019 14:12:50 To: Pankaj Su

Re: vmscan: Reclaim unevictable pages

2019-03-18 Thread Pankaj Suryawanshi
he below issue. 1. Large size buffer allocation using cma_alloc successful with unevictable pages. cma_alloc of current kernel will fail due to unevictable page Please let me know if anything i am missing. Regards, Pankaj From: Pankaj Suryawanshi Sent: 18 March 2019 13:15:22 To: Kirill Tkhai; Mic

Re: Re: [External] Re: vmscan: Reclaim unevictable pages

2019-03-18 Thread Pankaj Suryawanshi
350! [ 24.739478] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM - From: Pankaj Suryawanshi Sent: 15 March 2019 15:41:57 To: Kirill Tkhai; Michal Hocko; aneesh

Re: Re: [External] Re: vmscan: Reclaim unevictable pages

2019-03-15 Thread Pankaj Suryawanshi
[ cc Aneesh kumar, Anshuman, Hillf, Vlastimil] From: Pankaj Suryawanshi Sent: 15 March 2019 11:35:05 To: Kirill Tkhai; Michal Hocko Cc: linux-kernel@vger.kernel.org; minc...@kernel.org; linux...@kvack.org Subject: Re: Re: [External] Re: vmscan: Reclaim unevictable pages [ cc linux-mm

High Latency of CMA allocation

2019-03-15 Thread Pankaj Suryawanshi
Hello, I am facing issue of high latency in CMA allocation of large size buffer . I am frequently allocating/deallocation CMA memory, but latency of allocation is very high. Below are the stat for allocation/deallocation latency issue. (389120 kB), latency 29997 us (389120 kB), latency

Re: Re: [External] Re: vmscan: Reclaim unevictable pages

2019-03-15 Thread Pankaj Suryawanshi
[ cc linux-mm ] From: Pankaj Suryawanshi Sent: 14 March 2019 19:14:40 To: Kirill Tkhai; Michal Hocko Cc: linux-kernel@vger.kernel.org; minc...@kernel.org Subject: Re: Re: [External] Re: vmscan: Reclaim unevictable pages Hello , Please ignore the curly braces, they are just for debugging

Re: Re: [External] Re: vmscan: Reclaim unevictable pages

2019-03-14 Thread Pankaj Suryawanshi
Kirill Tkhai Sent: 14 March 2019 14:55:34 To: Pankaj Suryawanshi; Michal Hocko Cc: linux-kernel@vger.kernel.org; minc...@kernel.org Subject: Re: Re: [External] Re: vmscan: Reclaim unevictable pages On 14.03.2019 11:52, Pankaj Suryawanshi wrote: > > I am using kernel version 4.14.65 (on And

Re: Re: [External] Re: vmscan: Reclaim unevictable pages

2019-03-14 Thread Pankaj Suryawanshi
_add(>lru, _pages); +continue; activate_locked: /* Not a candidate for swapping, so reclaim swap space. */ From: Kirill Tkhai Sent: 14 March 2019 14:55:34 To: Pankaj Suryawanshi; Michal Hocko Cc: linux-kernel@vger.kernel.org; minc...@kernel.org Subject: Re: Re: [

Re: [External] Re: vmscan: Reclaim unevictable pages

2019-03-14 Thread Pankaj Suryawanshi
I am using kernel version 4.14.65 (on Android pie [ARM]). No additional patches applied on top of vanilla.(Core MM). If  I change in the vmscan.c as below patch, it will work. Regards, Pankaj From: Michal Hocko Sent: 14 March 2019 14:11:20 To: Pankaj Suryawanshi Cc: linux-kernel

Re: vmscan: Reclaim unevictable pages

2019-03-14 Thread Pankaj Suryawanshi
ontinue; activate_locked: /* Not a candidate for swapping, so reclaim swap space. */ From: Pankaj Suryawanshi Sent: 14 March 2019 13:23:53 To: linux-kernel@vger.kernel.org Cc: minc...@kernel.org Subject: vmscan: Reclaim unevictable pages Hello , shrink_page_list() returns , number of p

vmscan: Reclaim unevictable pages

2019-03-14 Thread Pankaj Suryawanshi
Hello , shrink_page_list() returns , number of pages reclaimed, when pages is unevictable it returns VM_BUG_ON_PAGE(PageLRU(page) || PageUnevicatble(page),page); We can add the unevictable pages in reclaim list in shrink_page_list(), return total number of reclaim pages including