Skip to content
Snippets Groups Projects
  • Sandy Ryza's avatar
    4222da68
    [SPARK-5112] Expose SizeEstimator as a developer api · 4222da68
    Sandy Ryza authored
    "The best way to size the amount of memory consumption your dataset will require is to create an RDD, put it into cache, and look at the SparkContext logs on your driver program. The logs will tell you how much memory each partition is consuming, which you can aggregate to get the total size of the RDD."
    -the Tuning Spark page
    
    This is a pain. It would be much nicer to expose simply functionality for understanding the memory footprint of a Java object.
    
    Author: Sandy Ryza <sandy@cloudera.com>
    
    Closes #3913 from sryza/sandy-spark-5112 and squashes the following commits:
    
    8d9e082 [Sandy Ryza] Add SizeEstimator in org.apache.spark
    2e1a906 [Sandy Ryza] Revert "Move SizeEstimator out of util"
    93f4cd0 [Sandy Ryza] Move SizeEstimator out of util
    e21c1f4 [Sandy Ryza] Remove unused import
    798ab88 [Sandy Ryza] Update documentation and add to SparkContext
    34c523c [Sandy Ryza] SPARK-5112. Expose SizeEstimator as a developer api
    4222da68
    History
    [SPARK-5112] Expose SizeEstimator as a developer api
    Sandy Ryza authored
    "The best way to size the amount of memory consumption your dataset will require is to create an RDD, put it into cache, and look at the SparkContext logs on your driver program. The logs will tell you how much memory each partition is consuming, which you can aggregate to get the total size of the RDD."
    -the Tuning Spark page
    
    This is a pain. It would be much nicer to expose simply functionality for understanding the memory footprint of a Java object.
    
    Author: Sandy Ryza <sandy@cloudera.com>
    
    Closes #3913 from sryza/sandy-spark-5112 and squashes the following commits:
    
    8d9e082 [Sandy Ryza] Add SizeEstimator in org.apache.spark
    2e1a906 [Sandy Ryza] Revert "Move SizeEstimator out of util"
    93f4cd0 [Sandy Ryza] Move SizeEstimator out of util
    e21c1f4 [Sandy Ryza] Remove unused import
    798ab88 [Sandy Ryza] Update documentation and add to SparkContext
    34c523c [Sandy Ryza] SPARK-5112. Expose SizeEstimator as a developer api