Conversation
* Add SVM(Shared Virtual Memory) support for QAT compression If SVM is enabled, allocating physical contiguous memory and copying data between physical and virtual memory is not needed which can greatly reduce the memory copy cost. * Fix the issue of repeatedly starting and stopping QAT devices under multi-thread mode. Signed-off-by: Chengfei Zhu <chengfei.zhu@intel.com>
f680c18 to
233090d
Compare
src/common/qat.c
Outdated
There was a problem hiding this comment.
Add a comment for SVM = shared virtual memory
src/common/qat.c
Outdated
There was a problem hiding this comment.
Add a comment here - If SVM (Shared Virtual Memory) is not enabled, we need to allocate physical contiguous memory for input and output data and copy the data from/to the virtual memory.
src/common/qat.c
Outdated
There was a problem hiding this comment.
Add a comment here - If the SVM (Shared Virtual Memory) is enabled, the virtual memory address can be sent to QAT device directly, allocating physical contiguous memory is not required.
wli5
left a comment
There was a problem hiding this comment.
Please submit PR.
In your commit comment please add one more description of SVM in the first bullet, e.g.,
If SVM is enabled, allocating physical contiguous memory and copying data between physical and virtual memory is not needed which can greatly reduce the memory copy cost.
under multi-thread mode.
Signed-off-by: Chengfei Zhu chengfei.zhu@intel.com