Re: [RFC PATCH 0/4] kstrdup optimization

From: Andrzej Hajda
Date: Wed Dec 31 2014 - 08:05:29 EST


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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/