login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
March
»
25
Re: [PATCH] trace: reorder struct ring_buffer_per_cpu to remove padding on 64bit
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Steven Rostedt
Subject:
Re: [PATCH] trace: reorder struct ring_buffer_per_cpu to remove padding on 64bit
Date: Thursday, March 25, 2010 - 6:38 am
On Thu, 2010-03-25 at 11:27 +0000, Richard Kennedy wrote:
quoted text
> Reorder structure to remove 8 bytes of padding on 64 bit builds. > This shrinks the size to 128 bytes so allowing allocation from a smaller > slab & needed one fewer cache lines. >
Thanks! Just curious, did you use Arnaldo's pahole utility to find this? -- Steve
quoted text
> Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk> > ---- > patch against 2.6.34-rc2 > compiled & booted on x86_64 > > regards > Richard > > diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c > index 05a9f83..421db5e 100644 > --- a/kernel/trace/ring_buffer.c > +++ b/kernel/trace/ring_buffer.c > @@ -422,6 +422,7 @@ int ring_buffer_print_page_header(struct trace_seq > *s) > */ > struct ring_buffer_per_cpu { > int cpu; > + atomic_t record_disabled; > struct ring_buffer *buffer; > spinlock_t reader_lock; /* serialize readers */ > arch_spinlock_t lock; > @@ -439,7 +440,6 @@ struct ring_buffer_per_cpu { > unsigned long read; > u64 write_stamp; > u64 read_stamp; > - atomic_t record_disabled; > }; > > struct ring_buffer { > >
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] trace: reorder struct ring_buffer_per_cpu to remov ...
, Richard Kennedy
, (Thu Mar 25, 4:27 am)
Re: [PATCH] trace: reorder struct ring_buffer_per_cpu to r ...
, Steven Rostedt
, (Thu Mar 25, 6:38 am)
Re: [PATCH] trace: reorder struct ring_buffer_per_cpu to r ...
, Richard Kennedy
, (Thu Mar 25, 6:44 am)
[tip:perf/core] trace: Reorder struct ring_buffer_per_cpu ...
, tip-bot for Richard ...
, (Fri Jul 23, 5:10 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian