Re: [PATCH 34/34] mm, vmstat: remove zone and node double accounting by approximating retries

2016-07-15 Thread Vlastimil Babka
On 07/15/2016 09:48 AM, Mel Gorman wrote: > On Thu, Jul 14, 2016 at 03:40:11PM +0200, Vlastimil Babka wrote: >>> @@ -4,6 +4,26 @@ >>> #include >>> #include >>> >>> +#ifdef CONFIG_HIGHMEM >>> +extern atomic_t highmem_file_pages; >>> + >>> +static inline void acct_highmem_file_pages(int zid, enum l

Re: [PATCH 34/34] mm, vmstat: remove zone and node double accounting by approximating retries

2016-07-15 Thread Mel Gorman
On Thu, Jul 14, 2016 at 03:40:11PM +0200, Vlastimil Babka wrote: > >@@ -4,6 +4,26 @@ > > #include > > #include > > > >+#ifdef CONFIG_HIGHMEM > >+extern atomic_t highmem_file_pages; > >+ > >+static inline void acct_highmem_file_pages(int zid, enum lru_list lru, > >+

Re: [PATCH 34/34] mm, vmstat: remove zone and node double accounting by approximating retries

2016-07-14 Thread Vlastimil Babka
On 07/08/2016 11:35 AM, Mel Gorman wrote: The number of LRU pages, dirty pages and writeback pages must be accounted for on both zones and nodes because of the reclaim retry logic, compaction retry logic and highmem calculations all depending on per-zone stats. Many lowmem allocations are immune

[PATCH 34/34] mm, vmstat: remove zone and node double accounting by approximating retries

2016-07-08 Thread Mel Gorman
The number of LRU pages, dirty pages and writeback pages must be accounted for on both zones and nodes because of the reclaim retry logic, compaction retry logic and highmem calculations all depending on per-zone stats. Many lowmem allocations are immune from OOM kill due to a check in __alloc_pag