Re: [ovs-dev] [PATCH ovn v3 2/2] lflow-cache: Auto trim when cache size is reduced significantly.

2021-07-13 Thread Mark Michelson
On 6/21/21 5:57 AM, Dumitru Ceara wrote: On 6/20/21 9:49 AM, Mark Gray wrote: Instead, we now automatically trim memory every time the lflow cache utilization decreases by 50%, with a threshold of at least lflow-cache-trim-limit (1) elements in the cache. The percentage of the high watermar

Re: [ovs-dev] [PATCH ovn v3 2/2] lflow-cache: Auto trim when cache size is reduced significantly.

2021-06-21 Thread Dumitru Ceara
On 6/20/21 9:49 AM, Mark Gray wrote: >> Instead, we now automatically trim memory every time the lflow cache >> utilization decreases by 50%, with a threshold of at least >> lflow-cache-trim-limit (1) elements in the cache. >> >> The percentage of the high watermark under which memory is trimme

Re: [ovs-dev] [PATCH ovn v3 2/2] lflow-cache: Auto trim when cache size is reduced significantly.

2021-06-20 Thread Mark Gray
On 18/06/2021 20:58, Dumitru Ceara wrote: > Due to a bug in glibc [0], M_TRIM_THRESHOLD (default 128KB) is not > honored. The lflow cache is one of the largest memory consumers in > ovn-controller and it used to trim memory whenever the cache was > flushed. However, that required periodic interve

[ovs-dev] [PATCH ovn v3 2/2] lflow-cache: Auto trim when cache size is reduced significantly.

2021-06-18 Thread Dumitru Ceara
Due to a bug in glibc [0], M_TRIM_THRESHOLD (default 128KB) is not honored. The lflow cache is one of the largest memory consumers in ovn-controller and it used to trim memory whenever the cache was flushed. However, that required periodic intervention from the CMS side. Instead, we now automati