Github user sryza commented on the pull request:
https://github.com/apache/spark/pull/3913#issuecomment-68936032
Ooh OK I'll update the doc. That's still a little cumbersome though for
someone who just wants to see how much space an object takes up. Most of the
recommendations on that page are at the micro level - tuning the memory taken
up by a single object. It would be useful to have a way to determine this
amount directly.
E.g. if I have plan to have an RDD of some case class I might want to see
how much space each instance takes up. Then I can experiment quickly with
things like flatter structures or removing fields and see if they improve the
footprint.
Another thing is that users trying to tune applications commonly need to
figure out whether they should broadcast side-data or figure out a way to load
it as an RDD and join. It would be helpful to be able to have a single
function call that's easy to use from the shell to find out the size of the
data you're about to broadcast.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]