Re: [RFC PATCH] net_sched: bulk free tcf_block

2017-12-04 Thread Paolo Abeni
Hi, On Fri, 2017-12-01 at 14:07 -0800, Cong Wang wrote: > On Fri, Dec 1, 2017 at 3:05 AM, Paolo Abeni wrote: > > > > Thank you for the feedback. > > > > I tested your patch and in the above scenario I measure: > > > > real0m0.017s > > user0m0.000s > > sys

Re: [RFC PATCH] net_sched: bulk free tcf_block

2017-12-01 Thread Cong Wang
On Fri, Dec 1, 2017 at 3:05 AM, Paolo Abeni wrote: > > Thank you for the feedback. > > I tested your patch and in the above scenario I measure: > > real0m0.017s > user0m0.000s > sys 0m0.017s > > so it apparently works well for this case. Thanks a lot for testing

Re: [RFC PATCH] net_sched: bulk free tcf_block

2017-12-01 Thread Paolo Abeni
On Thu, 2017-11-30 at 23:14 -0800, Cong Wang wrote: > On Wed, Nov 29, 2017 at 6:25 AM, Paolo Abeni wrote: > > Currently deleting qdisc with a large number of children and filters > > can take a lot of time: > > > > tc qdisc add dev lo root htb > > for I in `seq 1 1000`; do > >

Re: [RFC PATCH] net_sched: bulk free tcf_block

2017-11-30 Thread Cong Wang
On Wed, Nov 29, 2017 at 6:25 AM, Paolo Abeni wrote: > Currently deleting qdisc with a large number of children and filters > can take a lot of time: > > tc qdisc add dev lo root htb > for I in `seq 1 1000`; do > tc class add dev lo parent 1: classid 1:$I htb rate

Re: [RFC PATCH] net_sched: bulk free tcf_block

2017-11-29 Thread Paolo Abeni
Hi, On Wed, 2017-11-29 at 08:14 -0800, Alexander Duyck wrote: > On Wed, Nov 29, 2017 at 6:25 AM, Paolo Abeni wrote: > > Currently deleting qdisc with a large number of children and filters > > can take a lot of time: > > > > tc qdisc add dev lo root htb > > for I in `seq 1

Re: [RFC PATCH] net_sched: bulk free tcf_block

2017-11-29 Thread Alexander Duyck
On Wed, Nov 29, 2017 at 6:25 AM, Paolo Abeni wrote: > Currently deleting qdisc with a large number of children and filters > can take a lot of time: > > tc qdisc add dev lo root htb > for I in `seq 1 1000`; do > tc class add dev lo parent 1: classid 1:$I htb rate

[RFC PATCH] net_sched: bulk free tcf_block

2017-11-29 Thread Paolo Abeni
Currently deleting qdisc with a large number of children and filters can take a lot of time: tc qdisc add dev lo root htb for I in `seq 1 1000`; do tc class add dev lo parent 1: classid 1:$I htb rate 100kbit tc qdisc add dev lo parent 1:$I handle $((I + 1)): htb for J in