Uh oh!
There was an error while loading. Please reload this page.
[SPARK-18612][MLLIB] Delete broadcasted variable in LBFGS CostFun - #16040
[SPARK-18612][MLLIB] Delete broadcasted variable in LBFGS CostFun#16040AnthonyTruchet wants to merge 1 commit into
Conversation
This contribution is made on behalf of Criteo S.A. (http://labs.criteo.com/) under the terms of the Apache v2 License.
srowen
left a comment
There was a problem hiding this comment.
OK, would be good if you can look for similar instances and fix them in one pass here.
srowen
commented
Nov 28, 2016
Jenkins test this please |
AnthonyTruchet
commented
Nov 28, 2016
Agreed, and we might also consider making the broadcasted variable compatible with some Automatic Resource Management to avoid such leak (like https://github.com/jsuereth/scala-arm). |
srowen
commented
Nov 28, 2016
If that's just a Scala version of try-with-resources, it is unfortunately insufficient. It's not clear when the broadcast is actually no longer used because it may be used in computations that are computed lazily, or recomputed when something fails. Here the scope of the broadcast is clear though. |
SparkQA
commented
Nov 28, 2016
Test build #69251 has finished for PR 16040 at commit
|
srowen
commented
Nov 30, 2016
Merged to master/2.1 |
## What changes were proposed in this pull request? Fix a broadcasted variable leak occurring at each invocation of CostFun in L-BFGS. ## How was this patch tested? UTests + check that fixed fatal memory consumption on Criteo's use cases. This contribution is made on behalf of Criteo S.A. (http://labs.criteo.com/) under the terms of the Apache v2 License. Author: Anthony Truchet <a.truchet@criteo.com> Closes#16040 from AnthonyTruchet/SPARK-18612-lbfgs-cost-fun. (cherry picked from commit c5a64d7) Signed-off-by: Sean Owen <sowen@cloudera.com>
## What changes were proposed in this pull request? Fix a broadcasted variable leak occurring at each invocation of CostFun in L-BFGS. ## How was this patch tested? UTests + check that fixed fatal memory consumption on Criteo's use cases. This contribution is made on behalf of Criteo S.A. (http://labs.criteo.com/) under the terms of the Apache v2 License. Author: Anthony Truchet <a.truchet@criteo.com> Closesapache#16040 from AnthonyTruchet/SPARK-18612-lbfgs-cost-fun.
## What changes were proposed in this pull request? Fix a broadcasted variable leak occurring at each invocation of CostFun in L-BFGS. ## How was this patch tested? UTests + check that fixed fatal memory consumption on Criteo's use cases. This contribution is made on behalf of Criteo S.A. (http://labs.criteo.com/) under the terms of the Apache v2 License. Author: Anthony Truchet <a.truchet@criteo.com> Closesapache#16040 from AnthonyTruchet/SPARK-18612-lbfgs-cost-fun.
What changes were proposed in this pull request?
Fix a broadcasted variable leak occurring at each invocation of CostFun in L-BFGS.
How was this patch tested?
UTests + check that fixed fatal memory consumption on Criteo's use cases.
This contribution is made on behalf of Criteo S.A.
(http://labs.criteo.com/) under the terms of the Apache v2 License.