Skip to content

Conversation

@dshirish
Copy link
Contributor

  • Added checks for critical up thresholds while allocating memory from MemoryStore and ShuffleMemoryManager
  • For the above extended BlockManager and ShuffleMemoryManager and created SnappyBlockManager and SnappyShuffleMemoryManager
  • Also sending a separate pull request for snappy-spark changes as those are in a different repository

@dshirish dshirish force-pushed the wip-umm-snappy-commons branch 2 times, most recently from 9d21bd0 to 567caea Compare October 27, 2015 10:32
@dshirish dshirish force-pushed the wip-umm-snappy-commons branch 5 times, most recently from e07992c to fcc775e Compare November 3, 2015 08:44
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason to keep this in snappy-core? I think these should also be moved to snappy-tools -- both are loaded by reflection in any case from what I noticed in code below.

If this would have provided some self-contained functionality, then would have made more sense to keep in snappy-commons. As it stands now, snappy-core by itself will fail to function without the presence of snappy-tools. In particular, this is not just a jar dependency but also that it will work only for GemXD embedded mode -- something that requires snappy-tools in any case.

@dshirish dshirish force-pushed the wip-umm-snappy-commons branch from 92ead27 to 3a246b2 Compare November 10, 2015 05:04
@dshirish
Copy link
Contributor Author

Incorporated all review changes. Also added SNAP-126. Will merge the code if there are no more comments

@sumwale
Copy link
Contributor

sumwale commented Nov 10, 2015

Looks good -- please merge.

Shirish, one thing to take care of will be the changes in these classes here: apache/spark#9127
We plan to move to 1.6.0 as soon as possible, and will update to latest even before that due to these issues that have already hit us: https://issues.apache.org/jira/browse/SPARK-10929 and https://issues.apache.org/jira/browse/SPARK-10783

These are fixed in latest upstream that also includes #9127 mentioned above. If you can go through #9127 and tell whether its not much work to get the port done then will proceed to update spark else will defer after 0.2 hoping we won't hit SPARK-10929 and SPARK-10783

@sumwale
Copy link
Contributor

sumwale commented Nov 10, 2015

Also the original PR that fixes the two mentioned issues is this: apache/spark#9241 . It refers to https://issues.apache.org/jira/browse/SPARK-10342 which might be useful to understanding if there are more things we need to be thinking about with GemXD in picture.

@dshirish
Copy link
Contributor Author

Looks like apache/spark#9127 changes are based on the unified memory manager being implemented thru https://issues.apache.org/jira/browse/SPARK-10000. There is a design doc attached. The memory allocation in spark is being changed from strict fraction based maximums to single memory view (75% of heap by default) that will contain execution area and storage area . Storage is capped at 50% of this but can borrow from execution (if space is available) and vice a versa for execution. Storage will be evicted as more and more execution memory is needed. So looks like execution can acquire complete space.
If these changes are required for 0.2 we can discuss before as we probably need some space always for XD tables + execution (so may be some more changes are required from Snappy point of view).

dshirish added a commit that referenced this pull request Nov 10, 2015
@dshirish dshirish merged commit 16e9c21 into master Nov 10, 2015
@sumwale sumwale deleted the wip-umm-snappy-commons branch January 19, 2016 19:54
@jramnara jramnara mentioned this pull request Jun 3, 2017
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.

3 participants