Messages in this thread | | | Date | Thu, 23 Oct 2014 21:37:06 +0200 | From | Oleg Nesterov <> | Subject | Re: [PATCH 2/4] Add pgcollapse controls to task_struct |
| |
On 10/23, Alex Thorlton wrote: > > --- a/include/linux/sched.h > +++ b/include/linux/sched.h > @@ -1661,6 +1661,18 @@ struct task_struct { > unsigned int sequential_io; > unsigned int sequential_io_avg; > #endif > +#ifdef CONFIG_TRANSPARENT_HUGEPAGE > + struct callback_head pgcollapse_work; > + /* default scan 8*512 pte (or vmas) every 30 second */ > + unsigned int pgcollapse_pages_to_scan; > + unsigned int pgcollapse_pages_collapsed; > + unsigned int pgcollapse_full_scans; > + unsigned int pgcollapse_scan_sleep_millisecs; > + /* during fragmentation poll the hugepage allocator once every minute */ > + unsigned int pgcollapse_alloc_sleep_millisecs; > + unsigned long pgcollapse_last_scan; > + unsigned long pgcollapse_scan_address; > +#endif
Shouldn't this all live in mm_struct?
Except pgcollapse_work can't, exit_mm() called before exit_mm(). Probably it can be allocated.
Oleg.
| |