lkml.org 
[lkml]   [2009]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] tracing/filters: Defer pred allocation

* Li Zefan <lizf@cn.fujitsu.com> wrote:

> init_preds() allocates about 5392 bytes of memory (on x86_32) for
> a TRACE_EVENT. With my config, at system boot total memory occupied
> is:
>
> 5392 * (642 + 15) == 3459KB
>
> 642 == cat available_events | wc -l
> 15 == number of dirs in events/ftrace
>
> That's quite a lot, so we'd better defer memory allocation util
> it's needed, that's when filter is used.
>
> Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>

Applied, thanks!

> tracing/kprobe needs rebase after this patch..

You mean with many probes registered it has a lot of memory
footprint? Instead of a rebase a merge of tracing/core into
tracing/kprobes would be less intrusive.

Ingo


\
 
 \ /
  Last update: 2009-08-31 11:01    [W:0.101 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site