diff options
author | Maor Gottlieb <maorg@nvidia.com> | 2020-10-04 18:43:40 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2020-10-06 02:45:45 +0300 |
commit | 0c16d9635e3a51377e5815b9f8e14f497a4dbb42 (patch) | |
tree | e455c8f46c4a50a4b078c79b6184a88ff62b13ad /MAINTAINERS | |
parent | 07da1223ec939982497db3caccd6215b55acc35c (diff) | |
download | linux-0c16d9635e3a51377e5815b9f8e14f497a4dbb42.tar.xz |
RDMA/umem: Move to allocate SG table from pages
Remove the implementation of ib_umem_add_sg_table and instead
call to __sg_alloc_table_from_pages which already has the logic to
merge contiguous pages.
Besides that it removes duplicated functionality, it reduces the
memory consumption of the SG table significantly. Prior to this
patch, the SG table was allocated in advance regardless consideration
of contiguous pages.
In huge pages system of 2MB page size, without this change, the SG table
would contain x512 SG entries.
E.g. for 100GB memory registration:
Number of entries Size
Before 26214400 600.0MB
After 51200 1.2MB
Link: https://lore.kernel.org/r/20201004154340.1080481-5-leon@kernel.org
Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions