login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
28
Re: [PATCH] Changed blk trace msgs to directly use relay buffer
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Jens Axboe
Subject:
Re: [PATCH] Changed blk trace msgs to directly use relay buffer
Date: Wednesday, May 28, 2008 - 6:28 am
On Wed, May 28 2008, Alan D. Brunelle wrote:
quoted text
> Jens Axboe wrote: > > On Wed, May 28 2008, Alan D. Brunelle wrote: > >> Jens Axboe wrote: > >>> On Tue, May 27 2008, Alan D. Brunelle wrote: > >>> > >>>> From 43c8ea2b78f31d7ccd349384a9a2084e787aafc1 Mon Sep 17 00:00:00 2001 > >>>> From: Alan D. Brunelle <alan.brunelle@hp.com> > >>>> Date: Tue, 27 May 2008 10:32:36 -0400 > >>>> Subject: [PATCH] Changed blk trace msgs to directly use relay buffer > >>>> > >>>> Allows for SMP-usage without corruption, and removes an extra copy at > >>>> the expense of copying extra bytes. Reduced message size from 1024 to 128. > >>> Or, alternatively, something like the below. Then we don't > >>> unconditionally reserve and copy 128 bytes for each message, at the > >>> cost 128 bytes per-cpu per trace. > >> I looked into something like this, but thought the added complexity > >> wasn't worth it. Besides the extra per-cpu stuff, you also have an > >> extra memcopy involved - in my patch you print directly into the relay > >> buffer. I figure that /if/ copying (128-msg_size) extra bytes is too > >> much, one could always shrink the 128 down further. [I would think 64 > >> bytes is probably ok.] > >> > >> I'd bet that the reduced complexity, and skipping the extra memcopy > >> more than offsets having to copy a few extra bytes... > > > > The complexity is the same imho, both versions are fairly trivial. > > I wasn't out to optimize this in a memory copy sense. To me the most > > precious resource is the data stream to the app, and 128 bytes > > is probably 6 times larger than the normal message would be. With > > the actual trace structure, we are down to about 3 times the byte > > size. > > > > So it was just an idea, I don't care much either way. With 128 bytes, > > we could just put the buffer on the stack (and still do the copy to > > the relay buffer). The per-cpu buffers has the advantage that we > > could grow the size easily if we wanted to. > > > > So, given everything, which do you prefer? > > > > Given your prioritizing of relay-copying over kernel-copying, I think > you're solution is better (and more flexible going forward).
OK good, it's committed and going upstream soon(ish). -- Jens Axboe --
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] Changed blk trace msgs to directly use relay buffer
, Alan D. Brunelle
, (Tue May 27, 7:36 am)
Re: [PATCH] Changed blk trace msgs to directly use relay b ...
, Jens Axboe
, (Wed May 28, 5:13 am)
Re: [PATCH] Changed blk trace msgs to directly use relay b ...
, Alan D. Brunelle
, (Wed May 28, 5:26 am)
Re: [PATCH] Changed blk trace msgs to directly use relay b ...
, Jens Axboe
, (Wed May 28, 6:00 am)
Re: [PATCH] Changed blk trace msgs to directly use relay b ...
, Alan D. Brunelle
, (Wed May 28, 6:22 am)
Re: [PATCH] Changed blk trace msgs to directly use relay b ...
, Jens Axboe
, (Wed May 28, 6:28 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Markus Rechberger
Re: [v4l-dvb-maintainer] [GIT PATCHES] V4L/DVB changes for 2.6.24
Andi Kleen
Re: - romsignature-checksum-cleanup-2.patch removed from -mm tree
Patrick McHardy
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
Ingo Molnar
Re: [PATCH v3] x86: merge the simple bitops and move them to bitops.h
Axel Lin
[PATCH] tc6393xb: fix wrong goto labels for error handling
git
:
Christian Jaeger
Re: Problem with Git.pm bidi_pipe methods
Andy Parkins
Re: [PATCH] Checking for "diff.color." should come before "diff.color"
Sergei Organov
[PATCH] Documentation: fix git-clone manpage not to refer to itself
Nicolas Pitre
Re: [PATCH 3/3] prevent HEAD reflog to be interpreted as current branch reflog
J. Bruce Fields
Re: [DRAFT] Branching and merging with git
git-commits-head
:
Linux Kernel Mailing List
ext4: Cache the correct extent length for uninit extents
Linux Kernel Mailing List
drm/i915: Add information on pinning and fencing to the i915 list debug.
Linux Kernel Mailing List
dm crypt: fix kcryptd_async_done parameter
Linux Kernel Mailing List
V4L/DVB (8018): Add em2860 chip ID
Linux Kernel Mailing List
drm/radeon: r6xx/r7xx: fix possible oops in r600_page_table_cleanup()
linux-netdev
:
Richard Cochran
Re: [PATCH v3 3/3] ptp: Added a clock that uses the eTSEC found on the MPC85xx.
Gary Thomas
Re: Marvell 88E609x switch?
David Miller
Re: [RFC] bridge: STP timer management range checking
Herbert Xu
Re: [RFC PATCH 00/17] virtual-bus
Lennert Buytenhek
Re: [PATCH 3/6] [NET] dsa: add support for original DSA tagging format
freebsd-current
:
Henri Hennebert
Re: What's up with the SVN repository?
Andrey
Re: RELENG_7 and HEAD: bge causes system hang
韓家標 Bill Hacker
Re: ZFS honesty
Boris Samorodov
Re: twa + dump = sbwait
David Wolfskill
Re: dev/psm0 not found
Colocation donated by:
Syndicate