[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.2004211556370.5249@www.lameter.com>
Date: Tue, 21 Apr 2020 15:57:07 +0000 (UTC)
From: Christopher Lameter <cl@...ux.com>
To: 赵军奎 <bernard@...o.com>
cc: Pekka Enberg <penberg@...nel.org>,
David Rientjes <rientjes@...gle.com>,
Joonsoo Kim <iamjoonsoo.kim@....com>,
Andrew Morton <akpm@...ux-foundation.org>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, kernel@...o.com
Subject: Re:Re:Re: [PATCH] kmalloc_index optimization(add kmalloc max size
check)
On Tue, 21 Apr 2020, 赵军奎 wrote:
> >You could modify that to check for KMALLOC_MAX_SIZE with some more
> >conditionals but then kmalloc_index) is written so that the compiler gets
> >constant folding right.
> For this point, I am afraid i didn`t catch your idea.
> I am not sure how to modify it....
> Is there some similar code implementation in the kernel?
No. That is where you creativity and ingenuity come in. Otherwise you need
to leave it alone.
Powered by blists - more mailing lists