lkml.org 
[lkml]   [2009]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] ring_buffer: compressed event header

On Fri, 24 Apr 2009, Lai Jiangshan wrote:

>
>
> RB_MAX_SMALL_DATA = 28bytes is too small for most tracers, it wastes
> an 'u32' to save the actually length for events which data size > 28.
>
> This fix uses compressed event header and enlarges RB_MAX_SMALL_DATA.
>
> Impact: saves about 0%-12.5%(depends on tracer) memory in ring_buffer
>
> Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>

Thanks, applied!

-- Steve



\
 
 \ /
  Last update: 2009-04-24 06:29    [W:0.040 / U:2.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site