spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Or <>
Subject Re: How to clear broadcast variable from driver memory?
Date Wed, 03 Sep 2014 21:28:19 GMT
Hi Kevin, there is currently no way to do this... Broadcast.unpersist()
only unpersists it from the executors, but not from the driver. However,
this is not that bad because the Spark automatically cleans up broadcasts
that are no longer used, even on the driver. So as long as there is no
memory pressure for Spark to clean things up, the broadcast will stick

Thanks for pointing this out. We should probably expose a mechanism for
doing this.


2014-09-03 4:56 GMT-07:00 Kevin Jung <>:

> Hi,
> I tried Broadcast.unpersist() on Spark 1.0.1 but MemoryStore(driver memory)
> still allocated it.
> //LOGS
> //Block broadcast_0 stored as values to memory (estimated size 380.1 MB,
> free 5.7 GB)
> The free size of memory was same after calling unpersist.
> Can I clear this?
> --
> View this message in context:
> Sent from the Apache Spark User List mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View raw message