-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add retry with SpillableHostBuffer to GPU scans (#12233)
contribute to #8890 This PR adds the support of retry with `SpillableHostBuffer` into GPU scans when reading the data from files to host, to try to resolve some CPU OOMs in GPU scans, which are reported from some customer queries. And these host memory allocations run without the protection of the retry framework. The OOM error is like as the below. ``` Caused by: com.nvidia.spark.rapids.jni.CpuRetryOOM: Could not complete allocation after 1000 retries at com.nvidia.spark.rapids.HostAlloc.alloc(HostAlloc.scala:244) at com.nvidia.spark.rapids.HostAlloc.allocate(HostAlloc.scala:250) at ai.rapids.cudf.HostMemoryBuffer.allocate(HostMemoryBuffer.java:138) at ai.rapids.cudf.HostMemoryBuffer.allocate(HostMemoryBuffer.java:149) at com.nvidia.spark.rapids.ParquetPartitionReaderBase.$anonfun$readPartFile$1(GpuParquetScan.scala:1938) at com.nvidia.spark.rapids.Arm$.withResource(Arm.scala:30) at com.nvidia.spark.rapids.ParquetPartitionReaderBase.readPartFile(GpuParquetScan.scala:1936) ``` This change can be covered by existing tests. --------- Signed-off-by: Firestarman <firestarmanllc@gmail.com>
- Loading branch information
1 parent
9c9146c
commit d380b18
Showing
6 changed files
with
130 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.