[PATCH 1/1] mm/page_alloc: Remove useless parameter of __free_pages_boot_core

2016-03-23 Thread Li Zhang
From: Li Zhang __free_pages_boot_core has parameter pfn which is not used at all. So this patch is to make it clean. Signed-off-by: Li Zhang --- mm/page_alloc.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index a762be5

Re: [PATCH 0/2] mm: Enable page parallel initialisation for Power

2016-03-08 Thread Li Zhang
On Wed, Mar 9, 2016 at 12:28 PM, Balbir Singh wrote: > > > On 09/03/16 15:17, Li Zhang wrote: >> On Tue, Mar 8, 2016 at 10:45 PM, Balbir Singh wrote: >>> >>> On 08/03/16 14:55, Li Zhang wrote: >>>> From: Li Zhang >>>> >>>&g

Re: [PATCH 0/2] mm: Enable page parallel initialisation for Power

2016-03-08 Thread Li Zhang
On Tue, Mar 8, 2016 at 10:45 PM, Balbir Singh wrote: > > > On 08/03/16 14:55, Li Zhang wrote: >> From: Li Zhang >> >> Uptream has supported page parallel initialisation for X86 and the >> boot time is improved greately. Some tests have been done for Power. >

Re: [PATCH 2/2] powerpc/mm: Enable page parallel initialisation

2016-03-08 Thread Li Zhang
On Tue, Mar 8, 2016 at 5:36 PM, Michael Ellerman wrote: > Hi Li, > > On Tue, 2016-03-08 at 11:55 +0800, Li Zhang wrote: > >> From: Li Zhang >> >> Parallel initialisation has been enabled for X86, boot time is >> improved greatly. On Power8, it is improved grea

[PATCH 2/2] powerpc/mm: Enable page parallel initialisation

2016-03-07 Thread Li Zhang
From: Li Zhang Parallel initialisation has been enabled for X86, boot time is improved greatly. On Power8, it is improved greatly for small memory. Here is the result from my test on Power8 platform: For 4GB memory: 57% is improved, boot time as the following: with patch: 10s, without patch

[PATCH 1/2] mm: meminit: initialise more memory for inode/dentry hash tables in early boot

2016-03-07 Thread Li Zhang
From: Li Zhang This patch is based on Mel Gorman's old patch in the mailing list, https://lkml.org/lkml/2015/5/5/280 which is discussed but it is fixed with a completion to wait for all memory initialised in page_alloc_init_late(). It is to fix the OOM problem on X86 with 24TB memory

[PATCH 0/2] mm: Enable page parallel initialisation for Power

2016-03-07 Thread Li Zhang
From: Li Zhang Uptream has supported page parallel initialisation for X86 and the boot time is improved greately. Some tests have been done for Power. Here is the result I have done with different memory size. * 4GB memory: boot time is as the following: with patch vs without patch

Re: [PATCH RFC 1/2] mm: meminit: initialise more memory for inode/dentry hash tables in early boot

2016-03-04 Thread Li Zhang
On Fri, Mar 4, 2016 at 4:48 PM, Vlastimil Babka wrote: > On 03/03/2016 08:01 AM, Li Zhang wrote: >> --- a/mm/page_alloc.c >> +++ b/mm/page_alloc.c >> @@ -293,13 +293,20 @@ static inline bool update_defer_init(pg_data_t *pgdat, >> unsig

Re: [PATCH RFC 1/2] mm: meminit: initialise more memory for inode/dentry hash tables in early boot

2016-03-03 Thread Li Zhang
On Thu, Mar 3, 2016 at 5:41 PM, Anshuman Khandual wrote: > On 03/03/2016 12:31 PM, Li Zhang wrote: >> From: Li Zhang >> >> This patch is based on Mel Gorman's old patch in the mailing list, >> https://lkml.org/lkml/2015/5/5/280 which is

[PATCH RFC 0/2] mm: Enable page parallel initialisation for Power

2016-03-02 Thread Li Zhang
From: Li Zhang Uptream has supported page parallel initialisation for X86 and the boot time is improved greately. Some tests have been done for Power. Here is the result I have done with different memory size. * 4GB memory: boot time is as the following: with patch vs without patch

[PATCH RFC 2/2] powerpc/mm: Enable page parallel initialisation

2016-03-02 Thread Li Zhang
From: Li Zhang Parallel initialisation has been enabled for X86, boot time is improved greatly. On Power8, for small memory, it is improved greatly. Here is the result from my test on Power8 platform: For 4GB memory: 57% is improved For 50GB memory: 22% is improve Signed-off-by: Li Zhang

[PATCH RFC 1/2] mm: meminit: initialise more memory for inode/dentry hash tables in early boot

2016-03-02 Thread Li Zhang
From: Li Zhang This patch is based on Mel Gorman's old patch in the mailing list, https://lkml.org/lkml/2015/5/5/280 which is dicussed but it is fixed with a completion to wait for all memory initialised in page_alloc_init_late(). It is to fix the oom problem on X86 with 24TB memory

[tip:perf/urgent] perf symbols: Check access permission when reading symbol files

2015-06-29 Thread tip-bot for Li Zhang
Commit-ID: 36c8bb56a9f718a9a5f35d1834ca9dcec95deb4a Gitweb: http://git.kernel.org/tip/36c8bb56a9f718a9a5f35d1834ca9dcec95deb4a Author: Li Zhang AuthorDate: Fri, 19 Jun 2015 16:57:33 +0800 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 26 Jun 2015 12:11:53 -0300 perf symbols

Re: [PATCH v3 1/1] perf tools: Check access permission when reading symbol files

2015-06-25 Thread Li Zhang
ping ? On 2015年06月19日 16:57, Li Zhang wrote: There 2 problems when reading symbols files: * It doesn't report any errors even if when users specify symbol files which don't exist with --kallsyms or --vmlinux. The result just shows the address without symbols, which is n

Re: [PATCH v2 1/1] perf tools: Check access permission when reading /proc/kcore file.

2015-06-18 Thread Li Zhang
On 2015年06月18日 13:56, Sukadev Bhattiprolu wrote: Li Zhang [zhlci...@linux.vnet.ibm.com] wrote: | >For consistency with rest of the file, use pr_warning() or pr_err(). | | ui_warning can report the message to users directly when this | program is running. | But if we considered the consiste

Re: [PATCH v2 1/1] perf tools: Check access permission when reading /proc/kcore file.

2015-06-17 Thread Li Zhang
On 2015年06月17日 14:09, Sukadev Bhattiprolu wrote: Li Zhang [zhlci...@linux.vnet.ibm.com] wrote: | When using command perf report --kallsyms=/proc/kallsyms with a non-root | user, symbols are resolved. Then select one symbol and annotate it, it | reports the error as the following: | Can&#

Re: [PATCH 1/1] perf tools: Check access permission when reading /proc/kcore file.

2015-06-14 Thread Li Zhang
On 2015年06月10日 22:44, Arnaldo Carvalho de Melo wrote: Em Wed, Jun 10, 2015 at 11:01:33AM +0800, Li Zhang escreveu: When using command perf report --kallsyms=/proc/kallsyms with a non-root user, symbols are resolved. Then select one symbol and annotate it, it reports the error as the following