OpenCloudOS-Kernel/drivers/infiniband/hw/mlx5
Leon Romanovsky ab5cdc3163 IB/mlx5: Postpone remove_keys under knowledge of coming preemption
The remove_keys() logic is performed as garbage collection task. Such
task is intended to be run when no other active processes are running.

The need_resched() will return TRUE if there are user tasks to be
activated in near future.

In such case, we don't execute remove_keys() and postpone
the garbage collection work to try to run in next cycle,
in order to free CPU resources to other tasks.

The possible pseudo-code to trigger such scenario:
1. Allocate a lot of MR to fill the cache above the limit.
2. Wait a small amount of time "to calm" the system.
3. Start CPU extensive operations on multi-node cluster.
4. Expect performance degradation during MR cache shrink operation.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2015-12-08 16:55:31 -05:00
..
Kconfig net/mlx5: Extend mlx5_core to support ConnectX-4 Ethernet functionality 2015-05-30 18:24:51 -07:00
Makefile IB/mlx5: Implement the ODP capability query verb 2014-12-15 18:19:02 -08:00
ah.c IB/mlx5: Fix Mellanox copyright note 2015-04-02 16:33:42 -04:00
cq.c IB/mlx5: Remove old FRWR API support 2015-10-28 22:27:19 -04:00
doorbell.c IB/mlx5: Fix Mellanox copyright note 2015-04-02 16:33:42 -04:00
mad.c IB/mad: Remove improper use of BUG_ON 2015-07-14 13:20:08 -04:00
main.c Initial 4.4 merge window submission 2015-11-07 13:33:07 -08:00
mem.c IB/mlx5: Fix Mellanox copyright note 2015-04-02 16:33:42 -04:00
mlx5_ib.h IB/mlx5: Remove old FRWR API support 2015-10-28 22:27:19 -04:00
mr.c IB/mlx5: Postpone remove_keys under knowledge of coming preemption 2015-12-08 16:55:31 -05:00
odp.c net/mlx5_core: New device capabilities handling 2015-05-30 18:23:22 -07:00
qp.c IB/mlx5: Remove old FRWR API support 2015-10-28 22:27:19 -04:00
srq.c net/mlx5_core: Enable XRCs and SRQs when using ISSI > 0 2015-06-04 16:41:01 -07:00
user.h IB/mlx5: Fix Mellanox copyright note 2015-04-02 16:33:42 -04:00