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
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ingo Molnar
Re: [patch] e1000=y && e1000e=m regression fix
Greg Kroah-Hartman
[PATCH 20/36] Driver core: Call device_pm_add() after bus_add_device() in device_a...
Eli Cohen
Re: LRO num of frags limit
Boaz Harrosh
how to use KBUILD_EXTRA_SYMBOLS
Pekka Enberg
Re: [PATCH] include/linux/slab.h: new KFREE() macro.
git
:
Bill Lear
cpio command not found
Jing Xue
Re: git rm --cached
Fredrik Kuivinen
Re: fatal: unable to create '.git/index': File exists
Michael S. Tsirkin
git-kill: rewrite history removing a commit
Johannes Sixt
Re: How to pull remote branch with specified commit id?
linux-netdev
:
Johann Baudy
Packet mmap: TX RING and zero copy
Stephen Hemminger
Re: NAPI, rx_no_buffer_count, e1000, r8169 and other actors
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Balazs Scheidler
Re: [PATCH 5/9] tproxy: allow non-local binds of IPv6 sockets if IP_TRANSPARENT is...
David Miller
Re: [net-next PATCH 2/2] qlge: Version change to v1.00.00.27
openbsd-misc
:
Bryan Irvine
Re: DVD burn error: No space left on device
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
Siju George
This is what Linus Torvalds calls openBSD crowd
elitdostlar
Seks partneri arayan bayanlar bu adreste - 8878xs706x6438
Skylar Hawk
Re: asus eee 1201n - acpitz0 critical temperature 255C (5282K), shutting down
git-commits-head
:
Linux Kernel Mailing List
Linux 2.6.34-rc4
Linux Kernel Mailing List
x86 boot: only pick up additional EFI memmap if add_efi_memmap flag
Linux Kernel Mailing List
powerpc/fsl_msi: enable msi allocation in all banks
Linux Kernel Mailing List
[ALSA] hda-codec - Add support for VIA VT1708B HD audio codec
Linux Kernel Mailing List
ARM: dma-mapping: remove dmac_clean_range and dmac_inv_range
Colocation donated by:
Syndicate