You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "XiaoHongbo-Hope (via GitHub)" <gi...@apache.org> on 2026/01/28 13:24:58 UTC

[PR] [python] Add multi-threaded prefetch for PyTorch streaming read [paimon]

XiaoHongbo-Hope opened a new pull request, #7143:
URL: https://github.com/apache/paimon/pull/7143

   <!-- Please specify the module before the PR name: [core] ... or [flink] ... -->
   
   ### Purpose
   
   <!-- Linking this pull request to the issue -->
   Linked issue: close #xxx
   
   <!-- What is the purpose of the change -->
   
   ### Tests
   
   <!-- List UT and IT cases to verify this change -->
   
   ### API and Format
   
   <!-- Does this change affect API or storage format -->
   
   ### Documentation
   
   <!-- Does this change introduce a new feature -->
   


-- 
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: issues-unsubscribe@paimon.apache.org

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


Re: [PR] [python] Add multi-threaded prefetch for pytorch streaming read [paimon]

Posted by "XiaoHongbo-Hope (via GitHub)" <gi...@apache.org>.
XiaoHongbo-Hope commented on PR #7143:
URL: https://github.com/apache/paimon/pull/7143#issuecomment-3833665143

   > > > Maybe async is enough? Multiple threads may consume too many memory. And has there been any performance test to measure the improvement?
   > > 
   > > 
   > > The multi-thread prefetch idea in this PR is from OSS connector of pytorch’s config.
   > 
   > Can you share the code link?
   
   Seems native code is not open source. python code is here, https://github.com/aliyun/oss-connector-for-ai-ml/blob/a9b536d174163f0cd6db8e83261fcffc628e5f8c/docs/torchconnector/configuration.md?plain=1#L94, but python code do nothing. The logic is in native side.


-- 
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: issues-unsubscribe@paimon.apache.org

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


Re: [PR] [python] Add multi-threaded prefetch for pytorch streaming read [paimon]

Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi commented on PR #7143:
URL: https://github.com/apache/paimon/pull/7143#issuecomment-3832648447

   > > Maybe async is enough? Multiple threads may consume too many memory. And has there been any performance test to measure the improvement?
   > 
   > The multi-thread prefetch idea in this PR is from OSS connector of pytorch’s config.
   
   Can you share the code link?


-- 
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: issues-unsubscribe@paimon.apache.org

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


Re: [PR] [python] Add multi-threaded prefetch for pytorch streaming read [paimon]

Posted by "XiaoHongbo-Hope (via GitHub)" <gi...@apache.org>.
XiaoHongbo-Hope commented on PR #7143:
URL: https://github.com/apache/paimon/pull/7143#issuecomment-3828728740

   > Maybe async is enough? Multiple threads may consume too many memory. And has there been any performance test to measure the improvement?
   
   Current read is synchronous. Yes, we have the performance test of data loader, that is the code base of performance test from `pai`. single thread 200MB/s vs 260~270MB/s with 16 worker (process) and 10 prefetch threads. 


-- 
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: issues-unsubscribe@paimon.apache.org

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


Re: [PR] [python] Add multi-threaded prefetch for pytorch streaming read [paimon]

Posted by "XiaoHongbo-Hope (via GitHub)" <gi...@apache.org>.
XiaoHongbo-Hope commented on PR #7143:
URL: https://github.com/apache/paimon/pull/7143#issuecomment-3828794696

   > Maybe async is enough? Multiple threads may consume too many memory. And has there been any performance test to measure the improvement?
   
   The multi-thread prefetch idea in this PR is from OSS connector of pytorch’s config. 


-- 
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: issues-unsubscribe@paimon.apache.org

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