search for: __record_unused_pages

Displaying 9 results from an estimated 9 matches for "__record_unused_pages".

2017 Mar 16
4
[PATCH kernel v8 3/4] mm: add inerface to offer info about unused pages
...possible? Perhaps we can put some *small* helpers into page_alloc.c to prevent things from becoming too ugly. > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -4498,6 +4498,120 @@ void show_free_areas(unsigned int filter) > show_swap_cache_info(); > } > > +static int __record_unused_pages(struct zone *zone, int order, > + __le64 *buf, unsigned int size, > + unsigned int *offset, bool part_fill) > +{ > + unsigned long pfn, flags; > + int t, ret = 0; > + struct list_head *curr; > + __le64 *chunk; > + > + if (zone_is_empty(zone)) > + return 0; &gt...
2017 Mar 16
4
[PATCH kernel v8 3/4] mm: add inerface to offer info about unused pages
...possible? Perhaps we can put some *small* helpers into page_alloc.c to prevent things from becoming too ugly. > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -4498,6 +4498,120 @@ void show_free_areas(unsigned int filter) > show_swap_cache_info(); > } > > +static int __record_unused_pages(struct zone *zone, int order, > + __le64 *buf, unsigned int size, > + unsigned int *offset, bool part_fill) > +{ > + unsigned long pfn, flags; > + int t, ret = 0; > + struct list_head *curr; > + __le64 *chunk; > + > + if (zone_is_empty(zone)) > + return 0; &gt...
2017 Mar 16
0
[PATCH kernel v8 3/4] mm: add inerface to offer info about unused pages
...reserved pages within range [PAGE_ALIGN(start), end & PAGE_MASK) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index f3e0c69..b72a7ac 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -4498,6 +4498,120 @@ void show_free_areas(unsigned int filter) show_swap_cache_info(); } +static int __record_unused_pages(struct zone *zone, int order, + __le64 *buf, unsigned int size, + unsigned int *offset, bool part_fill) +{ + unsigned long pfn, flags; + int t, ret = 0; + struct list_head *curr; + __le64 *chunk; + + if (zone_is_empty(zone)) + return 0; + + spin_lock_irqsave(&zone->lock, flags); + +...
2017 Mar 29
2
[PATCH kernel v8 3/4] mm: add inerface to offer info about unused pages
...;d have to see the implementation to judge it properly. > > > --- a/mm/page_alloc.c > > > +++ b/mm/page_alloc.c > > > @@ -4498,6 +4498,120 @@ void show_free_areas(unsigned int filter) > > > show_swap_cache_info(); > > > } > > > +static int __record_unused_pages(struct zone *zone, int order, > > > + __le64 *buf, unsigned int size, > > > + unsigned int *offset, bool part_fill) > > > +{ > > > + unsigned long pfn, flags; > > > + int t, ret = 0; > > > + struct list_head *curr; > > > + __le6...
2017 Mar 29
2
[PATCH kernel v8 3/4] mm: add inerface to offer info about unused pages
...;d have to see the implementation to judge it properly. > > > --- a/mm/page_alloc.c > > > +++ b/mm/page_alloc.c > > > @@ -4498,6 +4498,120 @@ void show_free_areas(unsigned int filter) > > > show_swap_cache_info(); > > > } > > > +static int __record_unused_pages(struct zone *zone, int order, > > > + __le64 *buf, unsigned int size, > > > + unsigned int *offset, bool part_fill) > > > +{ > > > + unsigned long pfn, flags; > > > + int t, ret = 0; > > > + struct list_head *curr; > > > + __le6...
2017 Mar 31
0
[PATCH kernel v8 3/4] mm: add inerface to offer info about unused pages
...ementation > to judge it properly. > >>>> --- a/mm/page_alloc.c >>>> +++ b/mm/page_alloc.c >>>> @@ -4498,6 +4498,120 @@ void show_free_areas(unsigned int filter) >>>> show_swap_cache_info(); >>>> } >>>> +static int __record_unused_pages(struct zone *zone, int order, >>>> + __le64 *buf, unsigned int size, >>>> + unsigned int *offset, bool part_fill) >>>> +{ >>>> + unsigned long pfn, flags; >>>> + int t, ret = 0; >>>> + struct list_head *curr; >>&g...
2017 Mar 17
0
[PATCH kernel v8 3/4] mm: add inerface to offer info about unused pages
...Then it will be the caller's responsibility to format the pfn if they need. >> --- a/mm/page_alloc.c >> +++ b/mm/page_alloc.c >> @@ -4498,6 +4498,120 @@ void show_free_areas(unsigned int filter) >> show_swap_cache_info(); >> } >> >> +static int __record_unused_pages(struct zone *zone, int order, >> + __le64 *buf, unsigned int size, >> + unsigned int *offset, bool part_fill) >> +{ >> + unsigned long pfn, flags; >> + int t, ret = 0; >> + struct list_head *curr; >> + __le64 *chunk; >> + >> + if (zone_i...
2017 Mar 16
8
[PATCH kernel v8 0/4] Extend virtio-balloon for fast (de)inflating & fast live migration
This patch series implements two optimizations: 1) transfer pages in chuncks between the guest and host; 2) transfer the guest unused pages to the host so that they can be skipped to migrate in live migration. Please read each patch commit log for details. Changes: v7->v8: 1) Use only one chunk format, instead of two. 2) re-write the virtio-balloon implementation patch. 3) commit changes 4)
2017 Mar 16
8
[PATCH kernel v8 0/4] Extend virtio-balloon for fast (de)inflating & fast live migration
This patch series implements two optimizations: 1) transfer pages in chuncks between the guest and host; 2) transfer the guest unused pages to the host so that they can be skipped to migrate in live migration. Please read each patch commit log for details. Changes: v7->v8: 1) Use only one chunk format, instead of two. 2) re-write the virtio-balloon implementation patch. 3) commit changes 4)