Repository navigation
[Data] Specify logical memory for read_large_parquet - #63818
Conversation
Signed-off-by: Balaji Veeramani <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request introduces a --memory command-line argument to the read and consume benchmark script, allowing logical memory to be passed to the read function. This argument is then utilized in the release data tests configuration for Parquet benchmarks to prevent OOM errors, alongside the removal of several OOM-ignoring environment variables. The review feedback suggests conditionally applying functools.partial only when the --memory argument is explicitly provided to avoid unnecessary wrapping.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| assert False, f"Invalid data format argument: {args}" | ||
|
|
||
| return read_fn | ||
| return functools.partial(read_fn, memory=args.memory) |
There was a problem hiding this comment.
To avoid unnecessary wrapping with functools.partial and explicitly passing memory=None when the --memory argument is not provided, we can conditionally apply functools.partial only when args.memory is not None.
| return functools.partial(read_fn, memory=args.memory) | |
| if args.memory is not None: | |
| return functools.partial(read_fn, memory=args.memory) | |
| return read_fn |
Kunchd
left a comment
There was a problem hiding this comment.
Nice even closer to 0 OOMs!
…3818) The `read_large_parquet` frequently OOMs. This isn't totally unexpected -- Parquet reads allocate lots of memory because of apache/arrow#39808, and the current implementation of Ray Data can't guarantee memory safety unless you specify the heap memory required for high-memory operations. Since this is a case where we expect the system to need a hint, I've updated the release test to specify 3.4 GiB of heap memory for reads. This was the maximum heap usage per task I observed in the latest release test run. I've also re-introduced the ratchet that fails the release test on OOMs. If the system upholds its guarantee that it doesn't OOM when you specify the required heap memory, this shouldn't fail anymore. Signed-off-by: Balaji Veeramani <[email protected]>
…3818) The `read_large_parquet` frequently OOMs. This isn't totally unexpected -- Parquet reads allocate lots of memory because of apache/arrow#39808, and the current implementation of Ray Data can't guarantee memory safety unless you specify the heap memory required for high-memory operations. Since this is a case where we expect the system to need a hint, I've updated the release test to specify 3.4 GiB of heap memory for reads. This was the maximum heap usage per task I observed in the latest release test run. I've also re-introduced the ratchet that fails the release test on OOMs. If the system upholds its guarantee that it doesn't OOM when you specify the required heap memory, this shouldn't fail anymore. Signed-off-by: Balaji Veeramani <[email protected]>
…3818) The `read_large_parquet` frequently OOMs. This isn't totally unexpected -- Parquet reads allocate lots of memory because of apache/arrow#39808, and the current implementation of Ray Data can't guarantee memory safety unless you specify the heap memory required for high-memory operations. Since this is a case where we expect the system to need a hint, I've updated the release test to specify 3.4 GiB of heap memory for reads. This was the maximum heap usage per task I observed in the latest release test run. I've also re-introduced the ratchet that fails the release test on OOMs. If the system upholds its guarantee that it doesn't OOM when you specify the required heap memory, this shouldn't fail anymore. Signed-off-by: Balaji Veeramani <[email protected]> Signed-off-by: 400Ping <[email protected]>
The
read_large_parquetfrequently OOMs.This isn't totally unexpected -- Parquet reads allocate lots of memory because of apache/arrow#39808, and the current implementation of Ray Data can't guarantee memory safety unless you specify the heap memory required for high-memory operations.
Since this is a case where we expect the system to need a hint, I've updated the release test to specify 3.4 GiB of heap memory for reads. This was the maximum heap usage per task I observed in the latest release test run.
I've also re-introduced the ratchet that fails the release test on OOMs. If the system upholds its guarantee that it doesn't OOM when you specify the required heap memory, this shouldn't fail anymore.