Github user jerryshao commented on the pull request:

    https://github.com/apache/spark/pull/4167#issuecomment-72139397
  
    Hi TD, AFAIK  StorageLevel `MEMORY_AND_DISK_SER` has no difference to 
`MEMORY_ONLY_SER` if memory is enough, BM will only put data into memory, and 
only spill to disk when memory is not enough.
    
    Besides all the receiver's default storage level is 
`MEMORY_AND_DISK_SER_2`, if performance is the first consideration, why not 
`MEMORY_ONLY_SER_2`?
    
    Actually the behavior of `DISK` will only be triggered when memory is not 
enough, so I think for normal case, the performance should be same to 
`MEMORY_ONLY_SER`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to