Skip to content

Commit

Permalink
Fix the peak memory usage calculation (ray-project#28419)
Browse files Browse the repository at this point in the history
  • Loading branch information
jianoaix authored and justinvyu committed Sep 14, 2022
1 parent 2a4064c commit 0717baa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/ray/data/_internal/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,9 @@ def _summarize_blocks(self, blocks: List[BlockMetadata], is_substage: bool) -> s
)

out += indent
memory_stats = [round(e.max_rss_bytes / 1024 * 1024, 2) for e in exec_stats]
memory_stats = [
round(e.max_rss_bytes / (1024 * 1024), 2) for e in exec_stats
]
out += "* Peak heap memory usage (MiB): {} min, {} max, {} mean\n".format(
min(memory_stats),
max(memory_stats),
Expand Down

0 comments on commit 0717baa

Please sign in to comment.