[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20171003071019.hdcdjwjabld4el4p@dhcp22.suse.cz>
Date: Tue, 3 Oct 2017 09:10:19 +0200
From: Michal Hocko <mhocko@...nel.org>
To: Alexandru Moise <00moses.alexander00@...il.com>
Cc: corbet@....net, paulmck@...ux.vnet.ibm.com,
akpm@...ux-foundation.org, tglx@...utronix.de, mingo@...nel.org,
cdall@...aro.org, mchehab@...nel.org, zohar@...ux.vnet.ibm.com,
marc.zyngier@....com, rientjes@...gle.com, hannes@...xchg.org,
mike.kravetz@...cle.com, n-horiguchi@...jp.nec.com,
aneesh.kumar@...ux.vnet.ibm.com, punit.agrawal@....com,
aarcange@...hat.com, gerald.schaefer@...ibm.com,
jglisse@...hat.com, kirill.shutemov@...ux.intel.com,
will.deacon@....com, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-mm@...ck.org
Subject: Re: [PATCH] mm,hugetlb,migration: don't migrate kernelcore hugepages
On Tue 03-10-17 07:42:25, Alexandru Moise wrote:
> On Mon, Oct 02, 2017 at 06:15:00PM +0200, Michal Hocko wrote:
[...]
> > I really fail to see why kernel vs. movable zones play any role here.
> > Zones should be mostly an implementation detail which userspace
> > shouldn't really care about.
>
> Ok, the whole zone approach is a bad idea. Do you think that there's
> any value at all to trying to make hugepages un-movable at all?
I am not aware of any usecase, to be honest.
> Should
> the hugepages_treat_as_movable sysctl die and just make hugepages movable
> by default?
I think that hugepages_treat_as_movable is just a historical relict from
the time when hugetlb pages were not movable but the main purpose of
the movable zone was different back at the time. Just to clarifiy, the
original intention of the zone was to prevent memory fragmentation and
as hugetlb pages are not fragmenting memory because they are long lived
and contiguous, it was acceptable to use the zone. The purpose of the
zone has changed towards a migratability guarantee since then but the
knob has stayed behind. I think we should just remove it.
--
Michal Hocko
SUSE Labs
Powered by blists - more mailing lists