diff options
author | Eric Dumazet <[email protected]> | 2018-05-31 05:52:24 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2018-06-03 11:01:44 -0400 |
commit | 885892fb378dc096693557ba4f2b875188619b36 (patch) | |
tree | e6fa08e681b8557beaab0fb7e8bf5cf313b751b4 /scripts/bpf_helpers_doc.py | |
parent | 918fe1b3157978ada4267468008c5f89ef101e7d (diff) |
mlx4_core: restore optimal ICM memory allocation
Commit 1383cb8103bb ("mlx4_core: allocate ICM memory in page size chunks")
brought two regressions caught in our regression suite.
The big one is an additional cost of 256 bytes of overhead per 4096 bytes,
or 6.25 % which is unacceptable since ICM can be pretty large.
This comes from having to allocate one struct mlx4_icm_chunk (256 bytes)
per MLX4_TABLE_CHUNK, which the buggy commit shrank to 4KB
(instead of prior 256KB)
Note that mlx4_alloc_icm() is already able to try high order allocations
and fallback to low-order allocations under high memory pressure.
Most of these allocations happen right after boot time, when we get
plenty of non fragmented memory, there is really no point being so
pessimistic and break huge pages into order-0 ones just for fun.
We only have to tweak gfp_mask a bit, to help falling back faster,
without risking OOM killings.
Second regression is an KASAN fault, that will need further investigations.
Fixes: 1383cb8103bb ("mlx4_core: allocate ICM memory in page size chunks")
Signed-off-by: Eric Dumazet <[email protected]>
Acked-by: Tariq Toukan <[email protected]>
Cc: John Sperbeck <[email protected]>
Cc: Tarick Bedeir <[email protected]>
Cc: Qing Huang <[email protected]>
Cc: Daniel Jurgens <[email protected]>
Cc: Zhu Yanjun <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions