Re: [ovs-dev] [PATCH] dpif-netdev: Garbage collect the exact match cache periodically.

2014-11-20 Thread Alex Wang
Sorry for the delayed reply & thx for the suggestion~ It makes sense, I'll modify the function to sweep slowly~ (one entry at a time) And repost the patch, On Wed, Nov 19, 2014 at 11:22 AM, Jarno Rajahalme wrote: > > On Nov 14, 2014, at 4:10 PM, Alex Wang wrote: > > > On current master, the

Re: [ovs-dev] [PATCH] dpif-netdev: Garbage collect the exact match cache periodically.

2014-11-19 Thread Jarno Rajahalme
On Nov 14, 2014, at 4:10 PM, Alex Wang wrote: > On current master, the exact match cache entry can keep reference to > 'struct dp_netdev_flow' even after the flow is removed from the flow > table. This means the free of allocated memory of the flow is delayed > until the exact match cache entry

[ovs-dev] [PATCH] dpif-netdev: Garbage collect the exact match cache periodically.

2014-11-14 Thread Alex Wang
On current master, the exact match cache entry can keep reference to 'struct dp_netdev_flow' even after the flow is removed from the flow table. This means the free of allocated memory of the flow is delayed until the exact match cache entry is cleared or replaced. If the allocated memory is ahea