lkml.org 
[lkml]   [2014]   [Oct]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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.



\
 
 \ /
  Last update: 2014-10-23 22:21    [W:2.443 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site