* Using netconsole and getting double prints
@ 2009-11-06 0:54 Luis R. Rodriguez
2009-11-06 5:17 ` Matt Mackall
2009-11-06 16:38 ` Patrick McHardy
0 siblings, 2 replies; 7+ messages in thread
From: Luis R. Rodriguez @ 2009-11-06 0:54 UTC (permalink / raw)
To: linux-kernel; +Cc: netdev
I'm getting double prints when using netconsole. This used to happen
to me and then I just enable debugging log level manually (dmesg -n 8)
but now no matter what I try I always get double prints.
For example:
[ 23.425448] console [netcon0] enabled
[ 23.425567] netconsole: network logging started
[ 23.425448] console [netcon0] enabled
[ 23.425567] netconsole: network logging started
[ 32.856073] eth0: no IPv6 routers present
[ 32.856073] eth0: no IPv6 routers present
[ 66.307342] kmemleak: 6 new suspected memory leaks (see
/sys/kernel/debug/kmemleak)
[ 66.307342] kmemleak: 6 new suspected memory leaks (see
/sys/kernel/debug/kmemleak)
Instead of dmesg -8 I'm now using ignore_loglevel as a kernel
parameter but I still get double prints. This also happens if I use
"debug" as a kernel parameter instead.
The netconsole is set up on the dev box as follows through an /etc/rc.local
dhclient eth0
IP=192.168.2
# sudo dmesg -n 8
modprobe netconsole netconsole=@/eth0,6666@${IP}/
exit 0
I capture my data with netcat script (I call it netlog):
#!/bin/bash
echo "You should now run in another window: tail -f $HOME/log"
while true; do
/bin/nc -u -l -p 6666 >> $HOME/log
done
This also just doesn't work if I run the nc manually without a redirect:
while true; do /bin/nc -u -l -p 6666; done
Any ideas?
Luis
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Using netconsole and getting double prints
2009-11-06 0:54 Using netconsole and getting double prints Luis R. Rodriguez
@ 2009-11-06 5:17 ` Matt Mackall
2009-11-06 16:32 ` Luis R. Rodriguez
2009-11-06 16:38 ` Patrick McHardy
1 sibling, 1 reply; 7+ messages in thread
From: Matt Mackall @ 2009-11-06 5:17 UTC (permalink / raw)
To: Luis R. Rodriguez; +Cc: linux-kernel, netdev
On Thu, 2009-11-05 at 16:54 -0800, Luis R. Rodriguez wrote:
> I'm getting double prints when using netconsole. This used to happen
> to me and then I just enable debugging log level manually (dmesg -n 8)
> but now no matter what I try I always get double prints.
This is the first report I've seen of that. Recommend investigating with
wireshark.
> I capture my data with netcat script (I call it netlog):
>
> #!/bin/bash
> echo "You should now run in another window: tail -f $HOME/log"
> while true; do
> /bin/nc -u -l -p 6666 >> $HOME/log
> done
>
> This also just doesn't work if I run the nc manually without a redirect:
>
> while true; do /bin/nc -u -l -p 6666; done
That really shouldn't make any difference.
--
http://selenic.com : development and support for Mercurial and Linux
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Using netconsole and getting double prints
2009-11-06 5:17 ` Matt Mackall
@ 2009-11-06 16:32 ` Luis R. Rodriguez
2009-11-06 16:43 ` Matt Mackall
[not found] ` <4AF452B8.7080306@googlemail.com>
0 siblings, 2 replies; 7+ messages in thread
From: Luis R. Rodriguez @ 2009-11-06 16:32 UTC (permalink / raw)
To: Matt Mackall; +Cc: linux-kernel, netdev
On Thu, Nov 5, 2009 at 9:17 PM, Matt Mackall <mpm@selenic.com> wrote:
> On Thu, 2009-11-05 at 16:54 -0800, Luis R. Rodriguez wrote:
>> I'm getting double prints when using netconsole. This used to happen
>> to me and then I just enable debugging log level manually (dmesg -n 8)
>> but now no matter what I try I always get double prints.
>
> This is the first report I've seen of that. Recommend investigating with
> wireshark.
Matt, did you really mean wireshark? I'm a wireless guy so wireshark
to me is this:
http://www.wireshark.org/
The prints have nothing to do with protocols though. I can get a
double print on a simple hello world driver.
Luis
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Using netconsole and getting double prints
2009-11-06 0:54 Using netconsole and getting double prints Luis R. Rodriguez
2009-11-06 5:17 ` Matt Mackall
@ 2009-11-06 16:38 ` Patrick McHardy
1 sibling, 0 replies; 7+ messages in thread
From: Patrick McHardy @ 2009-11-06 16:38 UTC (permalink / raw)
To: Luis R. Rodriguez; +Cc: linux-kernel, netdev
Luis R. Rodriguez wrote:
> I'm getting double prints when using netconsole. This used to happen
> to me and then I just enable debugging log level manually (dmesg -n 8)
> but now no matter what I try I always get double prints.
>
> For example:
>
> [ 23.425448] console [netcon0] enabled
> [ 23.425567] netconsole: network logging started
> [ 23.425448] console [netcon0] enabled
> [ 23.425567] netconsole: network logging started
> [ 32.856073] eth0: no IPv6 routers present
> [ 32.856073] eth0: no IPv6 routers present
> [ 66.307342] kmemleak: 6 new suspected memory leaks (see
> /sys/kernel/debug/kmemleak)
> [ 66.307342] kmemleak: 6 new suspected memory leaks (see
> /sys/kernel/debug/kmemleak)
>
> Instead of dmesg -8 I'm now using ignore_loglevel as a kernel
> parameter but I still get double prints. This also happens if I use
> "debug" as a kernel parameter instead.
>
> The netconsole is set up on the dev box as follows through an /etc/rc.local
>
> dhclient eth0
> IP=192.168.2
> # sudo dmesg -n 8
> modprobe netconsole netconsole=@/eth0,6666@${IP}/
Without a MAC address netconsole broadcasts the messages.
So I'd guess the receiving system has multiple NICs and
receives the message multiple times.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Using netconsole and getting double prints
2009-11-06 16:32 ` Luis R. Rodriguez
@ 2009-11-06 16:43 ` Matt Mackall
[not found] ` <4AF452B8.7080306@googlemail.com>
1 sibling, 0 replies; 7+ messages in thread
From: Matt Mackall @ 2009-11-06 16:43 UTC (permalink / raw)
To: Luis R. Rodriguez; +Cc: linux-kernel, netdev
On Fri, 2009-11-06 at 08:32 -0800, Luis R. Rodriguez wrote:
> On Thu, Nov 5, 2009 at 9:17 PM, Matt Mackall <mpm@selenic.com> wrote:
> > On Thu, 2009-11-05 at 16:54 -0800, Luis R. Rodriguez wrote:
> >> I'm getting double prints when using netconsole. This used to happen
> >> to me and then I just enable debugging log level manually (dmesg -n 8)
> >> but now no matter what I try I always get double prints.
> >
> > This is the first report I've seen of that. Recommend investigating with
> > wireshark.
>
> Matt, did you really mean wireshark? I'm a wireless guy so wireshark
> to me is this:
>
> http://www.wireshark.org/
> The prints have nothing to do with protocols though. I can get a
> double print on a simple hello world driver.
Are you saying you get these double prints on the *local* machine? Are
the messages logged dmesg doubled too?
--
http://selenic.com : development and support for Mercurial and Linux
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Using netconsole and getting double prints
[not found] ` <4AF452B8.7080306@googlemail.com>
@ 2009-11-06 17:14 ` Luis R. Rodriguez
2009-11-17 0:18 ` Luis R. Rodriguez
0 siblings, 1 reply; 7+ messages in thread
From: Luis R. Rodriguez @ 2009-11-06 17:14 UTC (permalink / raw)
To: Andre Naujoks; +Cc: Matt Mackall, linux-kernel, netdev
On Fri, Nov 6, 2009 at 8:45 AM, Andre Naujoks <nautsch2@googlemail.com> wrote:
> I think the intention behind this is for you to check if they are double
> prints on your end or double sends on the other end.
Ah yeah, good point :)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Using netconsole and getting double prints
2009-11-06 17:14 ` Luis R. Rodriguez
@ 2009-11-17 0:18 ` Luis R. Rodriguez
0 siblings, 0 replies; 7+ messages in thread
From: Luis R. Rodriguez @ 2009-11-17 0:18 UTC (permalink / raw)
To: Andre Naujoks; +Cc: Matt Mackall, linux-kernel, netdev
On Fri, Nov 6, 2009 at 9:14 AM, Luis R. Rodriguez <mcgrof@gmail.com> wrote:
> On Fri, Nov 6, 2009 at 8:45 AM, Andre Naujoks <nautsch2@googlemail.com> wrote:
>
>> I think the intention behind this is for you to check if they are double
>> prints on your end or double sends on the other end.
>
> Ah yeah, good point :)
Sniffed and saw the issue. My local router was echo'ing the message,
solution was to simply add the destination mac address on netconsole
module parameters passed.
Luis
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-11-17 0:18 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-06 0:54 Using netconsole and getting double prints Luis R. Rodriguez
2009-11-06 5:17 ` Matt Mackall
2009-11-06 16:32 ` Luis R. Rodriguez
2009-11-06 16:43 ` Matt Mackall
[not found] ` <4AF452B8.7080306@googlemail.com>
2009-11-06 17:14 ` Luis R. Rodriguez
2009-11-17 0:18 ` Luis R. Rodriguez
2009-11-06 16:38 ` Patrick McHardy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.