Skip to content

Commit 7433234

Browse files
committed
Add comments to clarify RSS measurement in test_arrow_c_stream_large_dataset
1 parent d76a509 commit 7433234

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/tests/test_io.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ def test_arrow_c_stream_large_dataset(ctx):
114114
reader = pa.RecordBatchReader.from_stream(df)
115115

116116
# Track RSS before consuming batches
117+
# RSS is a practical measure of RAM usage visible to the OS. It excludes memory
118+
# that has been swapped out and provides a simple cross-platform-ish indicator
119+
# (psutil normalizes per-OS sources).
117120
psutil = pytest.importorskip("psutil")
118121
process = psutil.Process()
119122
start_rss = process.memory_info().rss

0 commit comments

Comments
 (0)