On 21 July 2016 at 23:02, nickcooper-zhangtonghao < nickcooper-zhangtong...@opencloud.tech> wrote:
> Hi all, > When setting the logical switch port as the peer of logical router, > I found a large number of ovn-northd log. The process of ovn-northd write > quickly the log > all the time. The worse thing that the process of ovn-northd and > von-controller > take a high amount of CPU time. I think this is a bugļ¼ undoubtedly. > The path I provide may fix the bug. > > commands: > ovn-nbctl ls-add ls0 > ovn-nbctl lsp-add ls0 ls0-p0 > > ovn-nbctl lr-add lr0 > ovn-nbctl lrp-add lr0 lr0-p0 00:11:22:33:44:55 192.168.100.10/24 > peer=ls0-p0 > You should not use "peer" while connecting a switch with a router. There are patches that are under review that fix the high CPU percentage behavior. > > > > When setting the logical switch port as the peer of logical router, > the process of ovn-northd write quickly the log and take a high amount of > CPU time. > > Signed-off-by: nickcooper-zhangtonghao > <nickcooper-zhangtong...@opencloud.tech> > --- > ovn/northd/ovn-northd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/ovn/northd/ovn-northd.c b/ovn/northd/ovn-northd.c > index 78679b1..4e83ad1 100644 > --- a/ovn/northd/ovn-northd.c > +++ b/ovn/northd/ovn-northd.c > @@ -2634,7 +2634,7 @@ build_lrouter_flows(struct hmap *datapaths, struct > hmap *ports, > * should be on peer's outport. */ > if (op->nbr->peer) { > struct ovn_port *peer = ovn_port_find(ports, > op->nbr->peer); > - if (!peer) { > + if (!peer || (peer && peer->nbs)) { > continue; > } > > -- > 1.8.3.1 > > > > _______________________________________________ > dev mailing list > dev@openvswitch.org > http://openvswitch.org/mailman/listinfo/dev > _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev