Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1349954
| From | Vlastimil Babka <vbabka@suse.cz> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH RFC 1/2] mm: meminit: initialise more memory for inode/dentry hash tables in early boot |
| Date | 2016-03-04 09:50 +0100 |
| Message-ID | <r8TAS-44r-9@gated-at.bofh.it> (permalink) |
| References | <r8vyx-3xp-3@gated-at.bofh.it> <r8vyx-3xp-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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,
> unsigned long pfn, unsigned long zone_end,
> unsigned long *nr_initialised)
> {
> + unsigned long max_initialise;
> +
> /* Always populate low zones for address-contrained allocations */
> if (zone_end < pgdat_end_pfn(pgdat))
> return true;
> + /*
> + * Initialise at least 2G of a node but also take into account that
> + * two large system hashes that can take up 1GB for 0.25TB/node.
> + */
The indentation is wrong here.
> + max_initialise = max(2UL << (30 - PAGE_SHIFT),
> + (pgdat->node_spanned_pages >> 8));
>
> - /* Initialise at least 2G of the highest zone */
> (*nr_initialised)++;
> - if (*nr_initialised > (2UL << (30 - PAGE_SHIFT)) &&
> + if ((*nr_initialised > max_initialise) &&
> (pfn & (PAGES_PER_SECTION - 1)) == 0) {
> pgdat->first_deferred_pfn = pfn;
> return false;
>
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH RFC 1/2] mm: meminit: initialise more memory for inode/dentry hash tables in early boot Li Zhang <zhlcindy@gmail.com> - 2016-03-03 08:10 +0100
Re: [PATCH RFC 1/2] mm: meminit: initialise more memory for inode/dentry hash tables in early boot Mel Gorman <mgorman@techsingularity.net> - 2016-03-03 09:40 +0100
Re: [PATCH RFC 1/2] mm: meminit: initialise more memory for inode/dentry hash tables in early boot Anshuman Khandual <khandual@linux.vnet.ibm.com> - 2016-03-03 10:50 +0100
Re: [PATCH RFC 1/2] mm: meminit: initialise more memory for inode/dentry hash tables in early boot Li Zhang <zhlcindy@gmail.com> - 2016-03-04 06:40 +0100
Re: [PATCH RFC 1/2] mm: meminit: initialise more memory for inode/dentry hash tables in early boot Vlastimil Babka <vbabka@suse.cz> - 2016-03-04 09:50 +0100
Re: [PATCH RFC 1/2] mm: meminit: initialise more memory for inode/dentry hash tables in early boot Li Zhang <zhlcindy@gmail.com> - 2016-03-04 15:00 +0100
csiph-web