On 3/24/21 1:36 AM, Michal Hocko wrote:
> On Tue 23-03-21 16:18:08, Mike Kravetz wrote:
> [...]
>> Here is another thought.
>> In patch 5 you suggest removing all pages from hugetlb with the lock
>> held, and adding them to a list. Then, drop the lock and free all
>> pages on the list. If we do t
On Tue 23-03-21 16:18:08, Mike Kravetz wrote:
[...]
> Here is another thought.
> In patch 5 you suggest removing all pages from hugetlb with the lock
> held, and adding them to a list. Then, drop the lock and free all
> pages on the list. If we do this, then the value computed here (min_count)
>
On 3/23/21 1:14 AM, Michal Hocko wrote:
> On Tue 23-03-21 09:01:02, Peter Zijlstra wrote:
>> On Tue, Mar 23, 2021 at 08:50:53AM +0100, Michal Hocko wrote:
>>
>> +static inline unsigned long min_hp_count(struct hstate *h, unsigned
>> long count)
>> +{
>> +unsigned long min_c
On Tue 23-03-21 09:01:02, Peter Zijlstra wrote:
> On Tue, Mar 23, 2021 at 08:50:53AM +0100, Michal Hocko wrote:
>
> > > >> +static inline unsigned long min_hp_count(struct hstate *h, unsigned
> > > >> long count)
> > > >> +{
> > > >> + unsigned long min_count;
> > > >> +
> > > >> + min_
On Tue, Mar 23, 2021 at 08:50:53AM +0100, Michal Hocko wrote:
> > >> +static inline unsigned long min_hp_count(struct hstate *h, unsigned
> > >> long count)
> > >> +{
> > >> +unsigned long min_count;
> > >> +
> > >> +min_count = h->resv_huge_pages + h->nr_huge_pages -
> > >> h->f
On Mon 22-03-21 16:07:29, Mike Kravetz wrote:
> On 3/22/21 7:07 AM, Michal Hocko wrote:
> > On Fri 19-03-21 15:42:03, Mike Kravetz wrote:
> >> The routine set_max_huge_pages reduces the number of hugetlb_pages,
> >> by calling free_pool_huge_page in a loop. It does this as long as
> >> persistent_
On 3/22/21 7:07 AM, Michal Hocko wrote:
> On Fri 19-03-21 15:42:03, Mike Kravetz wrote:
>> The routine set_max_huge_pages reduces the number of hugetlb_pages,
>> by calling free_pool_huge_page in a loop. It does this as long as
>> persistent_huge_pages() is above a calculated min_count value.
>> H
On Fri 19-03-21 15:42:03, Mike Kravetz wrote:
> The routine set_max_huge_pages reduces the number of hugetlb_pages,
> by calling free_pool_huge_page in a loop. It does this as long as
> persistent_huge_pages() is above a calculated min_count value.
> However, this loop can conditionally drop huget
The routine set_max_huge_pages reduces the number of hugetlb_pages,
by calling free_pool_huge_page in a loop. It does this as long as
persistent_huge_pages() is above a calculated min_count value.
However, this loop can conditionally drop hugetlb_lock and in some
circumstances free_pool_huge_page
9 matches
Mail list logo