-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infinity loop on select() sleep with VMA_SPEC=latency #1098
Comments
Hello @kc-eos I think that this behavior is described at https://github.com/Mellanox/libvma/blob/master/README#L629-L641 |
Hi @igor-ivanov , thanks for the reply. I also noticed the description, but I still can't believe that On the other hand, when looking at other
Based on the above descriptions, I think one could expect the call Could you please discuss this with the team again to check if this is really an expected behaviors and consider fixing it? One more thing: FYI, I tested the same program with an older version of libvma - 8.1.4, and it works fine without blocking the user thread!! |
@galnoam probably some degradation is reported. |
Hi @igor-ivanov & @galnoam , Merry Christmas!! May I know is there any update on this thread? |
@AlexanderGrissik, check the reported issue? |
Hi @AlexanderGrissik & @galnoam & @igor-ivanov, I apologize for bringing this up again, but I wanted to follow up on this issue that was reported a month ago. Thanks in advance! |
Hi @kc-eos , Thank you for reaching out and following up on the issue you reported last month. We sincerely apologize for the delay in our response. We want to inform you that we have identified and confirmed the defect you experienced. The issue was related to an infinite loop occurring when there are no offloaded sockets, specifically when We developed a fix that addresses this problem by ensuring the system correctly polls OS sockets in the absence of offloaded sockets, regardless of the The fix is currently in a pending pull request and is undergoing our standard review and testing procedures to ensure its effectiveness and stability. We expect to include this fix in our upcoming release. We appreciate your patience and understanding while we work to resolve this issue. Please accept our apologies for any inconvenience this may have caused. If you have any further questions or need additional assistance, please don't hesitate to contact us! P.S. It's worth noting that this issue did not occur in libvma version 8.1.4 within the latency spec because that version did not enable |
Hi @tomerdbz, Thank you very much for the update and the fix! |
Hi, I encountered an issue when integrating
libvma
with the Reuters library.I am running in the
latency
profile but it seems that the user thread was busy spinning and stuck insideStep to reproduce
After some investigation, I wrote a simple program to narrow down the usage and able to reproduce the issue:
Environment
Test result
Workaround
With some more trial-and-error, it seems that this issue can be workaround by disabling
VMA_SELECT_POLL_OS_FORCE
. i.e.However, by doing this will unset the other 2 parameters
VMA_SELECT_SKIP_OS
&VMA_SELECT_POLL_OS_RATIO
back to default value. Hence. my question:VMA_SELECT_SKIP_OS
&VMA_SELECT_POLL_OS_RATIO
?The text was updated successfully, but these errors were encountered: