LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Any one knows why sgl_threshold was set as 32k by default for NVMe SGL (https://www.linuxquestions.org/questions/linux-kernel-70/any-one-knows-why-sgl_threshold-was-set-as-32k-by-default-for-nvme-sgl-4175731851/)

ricky.wang 12-16-2023 12:21 AM

Any one knows why sgl_threshold was set as 32k by default for NVMe SGL
 
Hi,

Recently, I'm working on NVMe SGL related, and I observed the default sgl_threshold was set as 32K by default in NVMe driver. Just wondering what the background is to set with this value instead of others.

Regards,
Jinghai

smallpond 12-17-2023 10:55 AM

Looks like the cost of setting up the SGL outweighs the benefit for I/O smaller than 32k. https://lore.kernel.org/all/04aaed5c...ellanox.com/T/

ricky.wang 01-07-2024 10:51 PM

I appreciate your response, it is really helpful.


All times are GMT -5. The time now is 07:21 PM.