perf session: Allocate chunks of sample objects
The ordered sample code allocates singular reference objects struct sample_queue which have 48byte size on 64bit and 20 bytes on 32bit. That's silly. Allocate ~64k sized chunks and hand them out. Performance gain: ~ 15% Cc: Ingo Molnar <mingo@elte.hu> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> LKML-Reference: <20101130163820.398713983@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
020bb75a6d
commit
5c891f3840
@@ -19,7 +19,10 @@ struct ordered_samples {
|
||||
u64 max_timestamp;
|
||||
struct list_head samples;
|
||||
struct list_head sample_cache;
|
||||
struct list_head to_free;
|
||||
struct sample_queue *sample_buffer;
|
||||
struct sample_queue *last_sample;
|
||||
int sample_buffer_idx;
|
||||
};
|
||||
|
||||
struct perf_session {
|
||||
|
Reference in New Issue
Block a user