Thomas Graves updated SPARK-23964:
    Environment:     (was: The spillable class has a check:

if (elementsRead % 32 == 0 && currentMemory >= myMemoryThreshold) {

Before it looks to see if it should spill.  


I'm wondering why it has the elementsRead %32  in it?  If I have a small number 
of elements that are huge this can easily cause OOM before we actually spill.  

I saw a few conversations on this and one Jira related: 
https://issues.apache.org/jira/browse/SPARK-4456 . but I've never seen an 
answer to this.

anyone have history on this?)

> why does Spillable wait for 32 elements?
> ----------------------------------------
>                 Key: SPARK-23964
>                 URL: https://issues.apache.org/jira/browse/SPARK-23964
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 2.2.1
>            Reporter: Thomas Graves
>            Priority: Major

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to