login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
October
»
11
Re: [PROBLEM] hard-lock with kmemtrace, relayfs, and splice
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Eduard - Gabriel Munteanu <eduard.munteanu@...>
To: Tom Zanussi <zanussi@...>
Cc: Pekka Enberg <penberg@...>, <jens.axboe@...>, <linux-kernel@...>
Subject:
Re: [PROBLEM] hard-lock with kmemtrace, relayfs, and splice
Date: Saturday, October 11, 2008 - 2:17 pm
On Fri, Oct 10, 2008 at 11:58:51PM -0500, Tom Zanussi wrote:
quoted text
> It worked for me, but I also had to apply the following patch to > kmemtraced: > > diff --git a/kmemtraced.c b/kmemtraced.c > index 217478d..324ced9 100644 > --- a/kmemtraced.c > +++ b/kmemtraced.c > @@ -109,6 +109,8 @@ static void *reader_thread(void *data) > if (retval < 0) > panic("splice() (from) failed: %s\n", > strerror(errno)); > + if (!retval) > + continue; > retval = splice(pipe_fd[0], NULL, log_fd, NULL, > 128, SPLICE_F_MOVE); > if (retval < 0) > > Otherwise it would end up hanging kmemtraced in the second splice (pipe > to log_fd) if the return from the first splice was 0 (i.e. there's no > data available (and we can never know if there will ever be any > more)).
Thanks, I'll apply it.
quoted text
> I'm not sure why kmemtraced is only splicing 128 bytes at a time - it > seems to defeat the purpose - or why it wouldn't be using poll to know > when there's at least a whole sub-buffer to splice, but to each his own. > Hopefully the kernel patch at least fixes the loop.
Yeah, it was a misguided attempt to fix the strange behavior.
quoted text
> Tom
Cheers, Eduard --
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:
[PROBLEM] hard-lock with kmemtrace, relayfs, and splice
, Pekka Enberg
, (Fri Oct 10, 5:42 am)
Re: [PROBLEM] hard-lock with kmemtrace, relayfs, and splice
, Peter Teoh
, (Fri Oct 24, 12:44 am)
Re: [PROBLEM] hard-lock with kmemtrace, relayfs, and splice
, Pekka Enberg
, (Fri Oct 24, 10:15 am)
Re: [PROBLEM] hard-lock with kmemtrace, relayfs, and splice
, Peter Teoh
, (Fri Oct 24, 8:56 pm)
Re: [PROBLEM] hard-lock with kmemtrace, relayfs, and splice
, Eduard - Gabriel Munteanu...
, (Sat Oct 25, 10:04 am)
Re: [PROBLEM] hard-lock with kmemtrace, relayfs, and splice
, Tom Zanussi
, (Sat Oct 11, 12:58 am)
Re: [PROBLEM] hard-lock with kmemtrace, relayfs, and splice
, Pekka Enberg
, (Mon Oct 13, 2:57 am)
Re: [PROBLEM] hard-lock with kmemtrace, relayfs, and splice
, Tom Zanussi
, (Tue Oct 14, 12:03 am)
Re: [PROBLEM] hard-lock with kmemtrace, relayfs, and splice
, Pekka Enberg
, (Tue Oct 14, 1:13 am)
Re: [PROBLEM] hard-lock with kmemtrace, relayfs, and splice
, Pekka Enberg
, (Tue Oct 14, 3:05 am)
Re: [PROBLEM] hard-lock with kmemtrace, relayfs, and splice
, Tom Zanussi
, (Tue Oct 14, 1:46 am)
Re: [PROBLEM] hard-lock with kmemtrace, relayfs, and splice
, Eduard - Gabriel Munteanu...
, (Tue Oct 14, 3:30 am)
Re: [PROBLEM] hard-lock with kmemtrace, relayfs, and splice
, Pekka Enberg
, (Tue Oct 14, 2:58 am)
Re: [PROBLEM] hard-lock with kmemtrace, relayfs, and splice
, Eduard - Gabriel Munteanu...
, (Sat Oct 11, 2:17 pm)
Re: [PROBLEM] hard-lock with kmemtrace, relayfs, and splice
, Eduard - Gabriel Munteanu...
, (Fri Oct 10, 7:51 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Jesse Barnes
Re: PCI probing changes
Borislav Petkov
[PATCH] [KERNEL-DOC] kill warnings when building mandocs
Greg Kroah-Hartman
[PATCH 012/196] nozomi driver
Roland Dreier
Re: Integration of SCST in the mainstream Linux kernel
git
:
linux-netdev
:
Herbert Xu
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Linus Torvalds
Re: [GIT]: Networking
Frans Pop
svc: failed to register lockdv1 RPC service (errno 97).
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
609 guests
online.
Online users
Jeremy
zeekec
Syndicate