Skip to content

Use powers-of-two when displaying RAM - #7484

Merged
jsignell merged 1 commit into
dask:mainfrom
crusaderky:MiB
Mar 30, 2021
Merged

jsignell merged 1 commit into
dask:mainfrom
crusaderky:MiB

Conversation

@crusaderky

@crusaderky crusaderky commented Mar 29, 2021 •

Copy link
Copy Markdown
Collaborator

Closes dask/distributed#3818
Twin of dask/distributed#4649

Memory is ubiquitously expressed in power of twos.
The one and only exception that I'm aware of is when selling hard drives.

This change impacts:

  • dask.array.Array._repr_html_
  • distributed.Client.__repr__
  • distributed.Client._repr_html_
  • distributed.cluster.Cluster._widget_status
  • distributed.cluster.Cluster.__repr__
  • distributed.Scheduler.performance_report
  • distributed worker logs
  • distributed bokeh GUI

@crusaderky
crusaderky marked this pull request as ready for review March 29, 2021 21:46

@jsignell jsignell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. Do you want it to merge at the same time as the distributed one?

@crusaderky

Copy link
Copy Markdown
Collaborator Author

Do you want it to merge at the same time as the distributed one?

Ideally, one should

  1. merge this one (this will cause regressions in distributed)
  2. rebuild the distributed PR
  3. merge the distributed PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent RAM display in the GUI

2 participants