Re: [for-next V2 08/10] linux/dim: Implement rdma_dim

2019-06-26 Thread Yamin Friedman
On 6/26/2019 1:02 AM, Sagi Grimberg wrote: > >> +void rdma_dim(struct dim *dim, u64 completions) >> +{ >> +    struct dim_sample *curr_sample = &dim->measuring_sample; >> +    struct dim_stats curr_stats; >> +    u32 nevents; >> + >> +    dim_update_sample_with_comps(curr_sample->event_ctr + 1, >>

Re: [for-next V2 08/10] linux/dim: Implement rdma_dim

2019-06-26 Thread Or Gerlitz
On Wed, Jun 26, 2019 at 1:03 AM Sagi Grimberg wrote: > > > +void rdma_dim(struct dim *dim, u64 completions) > > +{ > > + struct dim_sample *curr_sample = &dim->measuring_sample; > > + struct dim_stats curr_stats; > > + u32 nevents; > > + > > + dim_update_sample_with_comps(curr_samp

Re: [for-next V2 08/10] linux/dim: Implement rdma_dim

2019-06-25 Thread Sagi Grimberg
+void rdma_dim(struct dim *dim, u64 completions) +{ + struct dim_sample *curr_sample = &dim->measuring_sample; + struct dim_stats curr_stats; + u32 nevents; + + dim_update_sample_with_comps(curr_sample->event_ctr + 1, +curr_sample->pkt

[for-next V2 08/10] linux/dim: Implement rdma_dim

2019-06-25 Thread Saeed Mahameed
From: Yamin Friedman rdma_dim implements a different algorithm than net_dim and is based on completions which is how we can implement interrupt moderation in RDMA. The algorithm optimizes for number of completions and ratio between completions and events. It also has a feature for fast reduction