search for: show_swap_cache_info

Displaying 20 results from an estimated 118 matches for "show_swap_cache_info".

2017 Apr 13
2
[PATCH v9 3/5] mm: function to offer a page block on the free list
...age block may be used immediately after the > function returns. The caller is responsible for detecting or preventing > the use of such pages. > > ... > > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -4498,6 +4498,93 @@ void show_free_areas(unsigned int filter) > show_swap_cache_info(); > } > > +/** > + * Heuristically get a page block in the system that is unused. > + * It is possible that pages from the page block are used immediately after > + * inquire_unused_page_block() returns. It is the caller's responsibility > + * to either detect or preven...
2017 Apr 13
2
[PATCH v9 3/5] mm: function to offer a page block on the free list
...age block may be used immediately after the > function returns. The caller is responsible for detecting or preventing > the use of such pages. > > ... > > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -4498,6 +4498,93 @@ void show_free_areas(unsigned int filter) > show_swap_cache_info(); > } > > +/** > + * Heuristically get a page block in the system that is unused. > + * It is possible that pages from the page block are used immediately after > + * inquire_unused_page_block() returns. It is the caller's responsibility > + * to either detect or preven...
2018 Mar 26
4
[PATCH v29 1/4] mm: support reporting free page blocks
...t function > returns will be captured by the hypervisor, and they will be added to the > next round of memory transfer. > > ... > > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -4912,6 +4912,102 @@ void show_free_areas(unsigned int filter, nodemask_t *nodemask) > show_swap_cache_info(); > } > > +/* > + * Walk through a free page list and report the found pfn range via the > + * callback. > + * > + * Return 0 if it completes the reporting. Otherwise, return the non-zero > + * value returned from the callback. > + */ > +static int walk_free_page_l...
2018 Mar 26
4
[PATCH v29 1/4] mm: support reporting free page blocks
...t function > returns will be captured by the hypervisor, and they will be added to the > next round of memory transfer. > > ... > > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -4912,6 +4912,102 @@ void show_free_areas(unsigned int filter, nodemask_t *nodemask) > show_swap_cache_info(); > } > > +/* > + * Walk through a free page list and report the found pfn range via the > + * callback. > + * > + * Return 0 if it completes the reporting. Otherwise, return the non-zero > + * value returned from the callback. > + */ > +static int walk_free_page_l...
2017 Mar 16
4
[PATCH kernel v8 3/4] mm: add inerface to offer info about unused pages
...ng violation :( What would have to be done to make that 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; &gt...
2017 Mar 16
4
[PATCH kernel v8 3/4] mm: add inerface to offer info about unused pages
...ng violation :( What would have to be done to make that 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; &gt...
2017 Mar 29
2
[PATCH kernel v8 3/4] mm: add inerface to offer info about unused pages
...format the pfn if they need. Sounds good at a high level, but we'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, r...
2017 Mar 29
2
[PATCH kernel v8 3/4] mm: add inerface to offer info about unused pages
...format the pfn if they need. Sounds good at a high level, but we'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, r...
2018 Jan 25
4
[PATCH v24 1/2] mm: support reporting free page blocks
...buddy system. The freed pages will be poisoned with pattern > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index 76c9688..705de22 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -4899,6 +4899,97 @@ void show_free_areas(unsigned int filter, nodemask_t *nodemask) > show_swap_cache_info(); > } > > +/* > + * Walk through a free page list and report the found pfn range via the > + * callback. > + * > + * Return false if the callback requests to stop reporting. Otherwise, > + * return true. > + */ > +static bool walk_free_page_list(void *opaque, >...
2018 Jan 25
4
[PATCH v24 1/2] mm: support reporting free page blocks
...buddy system. The freed pages will be poisoned with pattern > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index 76c9688..705de22 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -4899,6 +4899,97 @@ void show_free_areas(unsigned int filter, nodemask_t *nodemask) > show_swap_cache_info(); > } > > +/* > + * Walk through a free page list and report the found pfn range via the > + * callback. > + * > + * Return false if the callback requests to stop reporting. Otherwise, > + * return true. > + */ > +static bool walk_free_page_list(void *opaque, >...
2017 Jul 14
4
[PATCH v12 6/8] mm: support reporting free page blocks
...uddy system. The freed pages will be poisoned with pattern > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index 64b7d82..8b3c9dd 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -4753,6 +4753,102 @@ void show_free_areas(unsigned int filter, nodemask_t *nodemask) > show_swap_cache_info(); > } > > +#if IS_ENABLED(CONFIG_VIRTIO_BALLOON) > + > +/* > + * Heuristically get a page block in the system that is unused. > + * It is possible that pages from the page block are used immediately after > + * report_unused_page_block() returns. It is the caller's r...
2017 Jul 14
4
[PATCH v12 6/8] mm: support reporting free page blocks
...uddy system. The freed pages will be poisoned with pattern > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index 64b7d82..8b3c9dd 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -4753,6 +4753,102 @@ void show_free_areas(unsigned int filter, nodemask_t *nodemask) > show_swap_cache_info(); > } > > +#if IS_ENABLED(CONFIG_VIRTIO_BALLOON) > + > +/* > + * Heuristically get a page block in the system that is unused. > + * It is possible that pages from the page block are used immediately after > + * report_unused_page_block() returns. It is the caller's r...
2017 Jul 13
1
[PATCH v12 6/8] mm: support reporting free page blocks
...uddy system. The freed pages will be poisoned with pattern > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index 64b7d82..8b3c9dd 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -4753,6 +4753,102 @@ void show_free_areas(unsigned int filter, nodemask_t *nodemask) > show_swap_cache_info(); > } > > +#if IS_ENABLED(CONFIG_VIRTIO_BALLOON) > + > +/* > + * Heuristically get a page block in the system that is unused. > + * It is possible that pages from the page block are used immediately after > + * report_unused_page_block() returns. It is the caller's r...
2017 Jul 13
1
[PATCH v12 6/8] mm: support reporting free page blocks
...uddy system. The freed pages will be poisoned with pattern > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index 64b7d82..8b3c9dd 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -4753,6 +4753,102 @@ void show_free_areas(unsigned int filter, nodemask_t *nodemask) > show_swap_cache_info(); > } > > +#if IS_ENABLED(CONFIG_VIRTIO_BALLOON) > + > +/* > + * Heuristically get a page block in the system that is unused. > + * It is possible that pages from the page block are used immediately after > + * report_unused_page_block() returns. It is the caller's r...
2016 Jul 27
0
[PATCH v2 repost 3/7] mm: add a function to get the max pfn
...Cc: Amit Shah <amit.shah at redhat.com> --- mm/page_alloc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 8b3e134..7da61ad 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -4517,6 +4517,12 @@ void show_free_areas(unsigned int filter) show_swap_cache_info(); } +unsigned long get_max_pfn(void) +{ + return max_pfn; +} +EXPORT_SYMBOL(get_max_pfn); + static void zoneref_set_zone(struct zone *zone, struct zoneref *zoneref) { zoneref->zone = zone; -- 1.9.1
2016 Jul 27
1
[PATCH v2 repost 3/7] mm: add a function to get the max pfn
...--- > mm/page_alloc.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index 8b3e134..7da61ad 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -4517,6 +4517,12 @@ void show_free_areas(unsigned int filter) > show_swap_cache_info(); > } > > +unsigned long get_max_pfn(void) > +{ > + return max_pfn; > +} > +EXPORT_SYMBOL(get_max_pfn); > + This needs a coment that this can change at any time. So it's only good as a hint e.g. for sizing data structures. > static void zoneref_set_zone(struct...
2016 Oct 21
0
[RESEND PATCH v3 kernel 3/7] mm: add a function to get the max pfn
...ned long get_max_pfn(void); /* * Free reserved pages within range [PAGE_ALIGN(start), end & PAGE_MASK) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 2b3bf67..e5f63a9 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -4426,6 +4426,16 @@ void show_free_areas(unsigned int filter) show_swap_cache_info(); } +/* + * The max_pfn can change because of memory hot plug, so it's only good + * as a hint. e.g. for sizing data structures. + */ +unsigned long get_max_pfn(void) +{ + return max_pfn; +} +EXPORT_SYMBOL(get_max_pfn); + static void zoneref_set_zone(struct zone *zone, struct zoneref *zone...
2017 Apr 14
0
[PATCH v9 3/5] mm: function to offer a page block on the free list
...ter the >> function returns. The caller is responsible for detecting or preventing >> the use of such pages. >> >> ... >> >> --- a/mm/page_alloc.c >> +++ b/mm/page_alloc.c >> @@ -4498,6 +4498,93 @@ void show_free_areas(unsigned int filter) >> show_swap_cache_info(); >> } >> >> +/** >> + * Heuristically get a page block in the system that is unused. >> + * It is possible that pages from the page block are used immediately after >> + * inquire_unused_page_block() returns. It is the caller's responsibility >>...
2016 Jul 27
1
[PATCH v2 repost 3/7] mm: add a function to get the max pfn
...--- > mm/page_alloc.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index 8b3e134..7da61ad 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -4517,6 +4517,12 @@ void show_free_areas(unsigned int filter) > show_swap_cache_info(); > } > > +unsigned long get_max_pfn(void) > +{ > + return max_pfn; > +} > +EXPORT_SYMBOL(get_max_pfn); > + This needs a coment that this can change at any time. So it's only good as a hint e.g. for sizing data structures. > static void zoneref_set_zone(struct...
2018 Jan 26
3
[PATCH v24 1/2] mm: support reporting free page blocks
...gt; > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > > > index 76c9688..705de22 100644 > > > --- a/mm/page_alloc.c > > > +++ b/mm/page_alloc.c > > > @@ -4899,6 +4899,97 @@ void show_free_areas(unsigned int filter, nodemask_t *nodemask) > > > show_swap_cache_info(); > > > } > > > +/* > > > + * Walk through a free page list and report the found pfn range via the > > > + * callback. > > > + * > > > + * Return false if the callback requests to stop reporting. Otherwise, > > > + * return true. &gt...