User Manual
Driver FeaturesRev 2.1-1.0.6
Mellanox Technologies
86
Usage:
The application calls the
ibv_reg_mr API which turns on the IBV_ACCESS_ALLOCATE_MR bit and
sets the input address to NULL. Upon success, the address field of the struct
ibv_mr will hold the
address to the allocated memory block. This block will be freed implicitly when the
ibv_dereg_mr() is called.
The following are environment variables that can be used to control error cases / contiguity:
4.10 Shared Memory Region
Shared Memory Region is only applicable to the mlx4 driver.
Shared Memory Region (MR) enables sharing MR among applications by implementing the
"Register Shared MR" verb which is part of the IB spec.
Sharing MR involves the following steps:
Step 1. Request to create a shared MR
The application sends a request via the
ibv_reg_mr API to create a shared MR. The application
supplies the allowed sharing access to that MR. If the MR was created successfully, a unique MR
ID is returned as part of the struct
ibv_mr which can be used by other applications to register with
that MR.
ALL Try huge fallback to contiguous if failed fallback to ANON
small pages.
1. Values are NOT case sensitive.
Table 4 - Parameters Used to Control Error Cases / Contiguity
Parameters Description
MLX_MR_ALLOC_TYPE
Configures the allocator type.
• ALL (Default) - Uses all possible allocator and selects most effi-
cient allocator.
• ANON - Enables the usage of anonymous pages and disables the
allocator
• CONTIG - Forces the usage of the contiguous pages allocator. If
contiguous pages are not available the allocation fails
MLX_MR_MAX_LOG2_CONTIG_BS
IZE
Sets the maximum contiguous block size order.
• Values: 12-23
• Default: 23
MLX_MR_MIN_LOG2_CONTIG_BS
IZE
Sets the minimum contiguous block size order.
• Values: 12-23
• Default: 12
Table 3 - Buffer Values
Possible Value
1
Description