All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jesper Dangaard Brouer <brouer@redhat.com>
To: Drunkard Zhang <gongfan193@gmail.com>
Cc: Julian Anastasov <ja@ssi.bg>,
	lvs-devel@vger.kernel.org, brouer@redhat.com
Subject: Re: ipvsadm: One-packet scheduling with UDP service is unstable
Date: Wed, 28 Aug 2013 12:47:32 +0200	[thread overview]
Message-ID: <20130828124732.5d294ae1@redhat.com> (raw)
In-Reply-To: <CAJiejCSeJGm8RB02S8ZGKNNtS=b1noo0ykrBFg84H+FDnhjdnw@mail.gmail.com>

On Sat, 24 Aug 2013 22:15:16 +0800
Drunkard Zhang <gongfan193@gmail.com> wrote:

> >         May be we can enable debug for short time when
> > OPS is not working:
> >
> > # Start debug for 10ms
> > echo 20 > /proc/sys/net/ipv4/vs/debug_level
> > usleep 10000
> > # Stop debug
> > echo 0 > /proc/sys/net/ipv4/vs/debug_level

Just some general notes on debugging.

Debug verbose levels:
 -  1 is least verbose
 - 12 is most verbose
 -  0 disables debugging

Kernel needs to be compiled with CONFIG_IP_VS_DEBUG=y

To get even more detailed debugging. The macro IP_VS_DBG_PKT uses
debug_pr() to print its messages.  If the kernel is configured with
dynamic debug (CONFIG_DYNAMIC_DEBUG), you will not see these messages.
To enable these messages, do the following:

 mount -t debugfs none /sys/kernel/debug/
 cat /sys/kernel/debug/dynamic_debug/control | grep ipvs

 echo "func ip_vs_tcpudp_debug_packet_v6 +p" > /sys/kernel/debug/dynamic_debug/control
 echo "func ip_vs_tcpudp_debug_packet_v4 +p" > /sys/kernel/debug/dynamic_debug/control

-- 
Best regards,
  Jesper Dangaard Brouer
  MSc.CS, Sr. Network Kernel Developer at Red Hat
  Author of http://www.iptv-analyzer.org
  LinkedIn: http://www.linkedin.com/in/brouer

  parent reply	other threads:[~2013-08-28 10:47 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-20 15:06 ipvsadm: One-packet scheduling with UDP service is unstable Drunkard Zhang
2013-08-22  6:43 ` Julian Anastasov
2013-08-22 10:58   ` Drunkard Zhang
2013-08-22 14:14     ` Julian Anastasov
2013-08-22 23:24       ` Drunkard Zhang
     [not found]         ` <alpine.LFD.2.00.1308231708450.1852@ja.ssi.bg>
2013-08-24 11:14           ` Drunkard Zhang
2013-08-24 13:17             ` Julian Anastasov
2013-08-24 14:15               ` Drunkard Zhang
2013-08-24 14:43                 ` Julian Anastasov
2013-08-25  6:07                 ` Julian Anastasov
2013-08-28 10:47                 ` Jesper Dangaard Brouer [this message]
2013-08-26  2:07               ` Drunkard Zhang
2013-08-26  3:37                 ` Drunkard Zhang
2013-08-26  9:55                   ` Julian Anastasov
2013-08-27  3:20                     ` Drunkard Zhang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130828124732.5d294ae1@redhat.com \
    --to=brouer@redhat.com \
    --cc=gongfan193@gmail.com \
    --cc=ja@ssi.bg \
    --cc=lvs-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.