You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by "jiangjiangtian (via GitHub)" <gi...@apache.org> on 2026/09/20 09:53:25 UTC

[PR] [GLUTEN-13062][VL] Clamp madvise(MADV_WILLNEED) length against posFetch_ to avoid EINVAL in MmapFileStream [gluten]

jiangjiangtian opened a new pull request, #13063:
URL: https://github.com/apache/gluten/pull/13063

   Closes https://github.com/apache/gluten/issues/13062.
   The fetch starts at `posFetch_`, so clamp the fetch length against `size_ - posFetch_` instead of `size_ - pos_`. This keeps `posFetch_` either page-aligned or exactly at `size_` (after which no further fetch is needed), so every `madvise()` call receives a page-aligned address and no advised range overruns the mapping.
   Besides, after this PR the prefetching will work in all cases, there is a perfermance gain in merging spills of shuffle data.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org


Re: [PR] [GLUTEN-13062][VL] Clamp madvise(MADV_WILLNEED) length against posFetch_ to avoid EINVAL in MmapFileStream [gluten]

Posted by "github-actions[bot] (via GitHub) via commits" <co...@gluten.apache.org>.
github-actions[bot] commented on PR #13063:
URL: https://github.com/apache/gluten/pull/13063#issuecomment-6674268267

   This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org