lkml.org 
[lkml]   [2014]   [Dec]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH 0/4] kstrdup optimization
On 12/29/2014 03:48 PM, Andrzej Hajda wrote:

(...)

> As I have tested it on mobile platform (exynos4210-trats) it saves above 2600
> string duplications. Below simple stats about the most frequent duplications:
> Count String
> 880 power
> 874 subsystem
> 130 device
> 126 parameters
> 61 iommu_group
> 40 driver
> 28 bdi
> 28 none
> 25 sclk_mpll
> 23 sclk_usbphy0
> 23 sclk_hdmi24m
> 23 xusbxti
> 22 sclk_vpll
> 22 sclk_epll
> 22 xxti
> 20 sclk_hdmiphy
> 11 aclk100

Minor update, printk buffer was too short during tests so I have not
catched everything. In fact the patchset saves 3260 duplications. Below
stats per kstrdup_const caller:
2260 __kernfs_new_node+0x28/0xc4
631 clk_register+0xc8/0x1b8
318 clk_register+0x34/0x1b8
51 kmem_cache_create+0x7c/0x1c8

Regards
Andrzej



\
 
 \ /
  Last update: 2014-12-31 14:21    [W:0.111 / U:0.516 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site