linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re:Re: [PATCH] kmalloc_index optimization(code size & runtime stable)
@ 2020-04-17  9:12 赵军奎
  0 siblings, 0 replies; only message in thread
From: 赵军奎 @ 2020-04-17  9:12 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: linux-kernel, opensource.kernel




Date: 2020-04-17 11:23:54
To:  Bernard Zhao <bernard@vivo.com>
Cc:  Christoph Lameter <cl@linux.com>,Pekka Enberg <penberg@kernel.org>,David Rientjes <rientjes@google.com>,Joonsoo Kim <iamjoonsoo.kim@lge.com>,Andrew Morton <akpm@linux-foundation.org>,linux-mm@kvack.org,linux-kernel@vger.kernel.org,kernel@vivo.com
Subject: Re: [PATCH] kmalloc_index optimization(code size & runtime stable)>On Thu, Apr 16, 2020 at 07:03:30PM -0700, Bernard Zhao wrote:
>> kmalloc_index inline function code size optimization and runtime
>> performance stability optimization. After optimization, the function
>> kmalloc_index is more stable, the size will never affecte the function`s
>> execution efficiency.
>> And follow test data shows that the performance of new optimization
>> exceeds the original algorithm when applying for more than 512 Bytes
>> (include 512B).And new optimization runtime is more stable than before.
>
>That's all very well and good, but the vast majority of allocations
>are less than 512 bytes in size!  Your numbers show that on average,
>this patch makes the kernel slower!

>


    This is indeed the case, the new algorithm is stable at a time level, but 
there is a certain performance loss for relatively small memory(little than 512).
I will continue to pay attention to this part later.  Thanks.

>>             size        time/Per 100 million times.us
>>                         old fun		new fun with optimise
>> 		8	203777		241934
>> 		16	245611		409278
>> 		32	236384		408419
>> 		64	275499		447732
>> 		128	354909		416439
>> 		256	360472		406598
>> 		512	431072		409168
>> 		1024	463822		407401
>




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-17  9:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-17  9:12 Re:Re: [PATCH] kmalloc_index optimization(code size & runtime stable) 赵军奎

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).