Re: [vpp-dev] Why VPP performance down very much when I use print() function.

2020-05-06 Thread "Zhou You(Joe Zhou)
It sounds weird, have you commented "if((counter % 600.000.000) == 0)" ?mod operation maybe expensive since 600,000,000 is a large number than MAX_INT.  but it should do so much harm to throughput :-(   --   Best Regard   Joe   -- Original -- From: "Nguyễ

Re: [vpp-dev] Why VPP performance down very much when I use print() function.

2020-05-06 Thread "Zhou You(Joe Zhou)
Hi Hiếu,      From your description, printf is the bottleneck of performance. you need to understand what's going on behind "printf"。    printf involves I/O operation,I/O operation is really slow in computer, when you calling printf, it will call a syscall in glibc and trap to kernel, then call

Re: [vpp-dev] is sw_interface_dump api bug?

2019-03-14 Thread "Zhou You(Joe Zhou)
Hey Paul, Thanks very much, I got it, I have a misunderstanding about this API, for this api return all the interface's info which include the param of name_filter. Maybe it's a False patch. Thank you again:-?? --- Best Regards Joe -- -- ?

Re: [vpp-dev] is sw_interface_dump api bug?

2019-03-13 Thread "Zhou You(Joe Zhou)
Patch url: https://gerrit.fd.io/r/18273 -- Original -- From: "Joe Zhou"; Date: Thu, Mar 14, 2019 10:06 AM To: "vpp-dev@lists.fd.io"; Subject: is sw_interface_dump api bug? Dear VPP developers, I used sw_interface_dump api to get sw interface info

[vpp-dev] is sw_interface_dump api bug?

2019-03-13 Thread "Zhou You(Joe Zhou)
Dear VPP developers, I used sw_interface_dump api to get sw interface info, but found the result is not right following these steps : 1) create a loop interface with instance 10, ie loop10 2) create a loop inteerface with instance 1, ie loop1 3) use sw_interface_dump to get

[vpp-dev] subif interface api handle function bug

2019-03-06 Thread "Zhou You(Joe Zhou)
Dear vpp devs: I met a bug while adding 802.1q subif interface into bridge domain via python api. BVI interface must be the first number of bridge domain, but after I added a subif into bd, subif took the first position of bd, and the l2 flooding didn't run well: here is the infomation