Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1692951 > unrolled thread
| Started by | Vlastimil Babka <vbabka@suse.cz> |
|---|---|
| First post | 2017-07-20 15:50 +0200 |
| Last post | 2017-07-24 14:50 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 2/4] mm, page_ext: periodically reschedule during page_ext_init() Vlastimil Babka <vbabka@suse.cz> - 2017-07-20 15:50 +0200
Re: [PATCH 2/4] mm, page_ext: periodically reschedule during page_ext_init() Michal Hocko <mhocko@kernel.org> - 2017-07-24 14:50 +0200
| From | Vlastimil Babka <vbabka@suse.cz> |
|---|---|
| Date | 2017-07-20 15:50 +0200 |
| Subject | [PATCH 2/4] mm, page_ext: periodically reschedule during page_ext_init() |
| Message-ID | <u5k02-8cN-29@gated-at.bofh.it> |
page_ext_init() can take long on large machines, so add a cond_resched() point after each section is processed. This will allow moving the init to a later point at boot without triggering lockup reports. Signed-off-by: Vlastimil Babka <vbabka@suse.cz> --- mm/page_ext.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/page_ext.c b/mm/page_ext.c index 88ccc044b09a..24cf8abefc8d 100644 --- a/mm/page_ext.c +++ b/mm/page_ext.c @@ -409,6 +409,7 @@ void __init page_ext_init(void) continue; if (init_section_page_ext(pfn, nid)) goto oom; + cond_resched(); } } hotplug_memory_notifier(page_ext_callback, 0); -- 2.13.2
[toc] | [next] | [standalone]
| From | Michal Hocko <mhocko@kernel.org> |
|---|---|
| Date | 2017-07-24 14:50 +0200 |
| Subject | Re: [PATCH 2/4] mm, page_ext: periodically reschedule during page_ext_init() |
| Message-ID | <u6KYa-4Ul-15@gated-at.bofh.it> |
| In reply to | #1692951 |
On Thu 20-07-17 15:40:27, Vlastimil Babka wrote: > page_ext_init() can take long on large machines, so add a cond_resched() point > after each section is processed. This will allow moving the init to a later > point at boot without triggering lockup reports. > > Signed-off-by: Vlastimil Babka <vbabka@suse.cz> Acked-by: Michal Hocko <mhocko@suse.com> > --- > mm/page_ext.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/mm/page_ext.c b/mm/page_ext.c > index 88ccc044b09a..24cf8abefc8d 100644 > --- a/mm/page_ext.c > +++ b/mm/page_ext.c > @@ -409,6 +409,7 @@ void __init page_ext_init(void) > continue; > if (init_section_page_ext(pfn, nid)) > goto oom; > + cond_resched(); > } > } > hotplug_memory_notifier(page_ext_callback, 0); > -- > 2.13.2 -- Michal Hocko SUSE Labs
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web