GitHub user 10110346 opened a pull request:

    https://github.com/apache/spark/pull/18296

    [SPARK-21090][core]Optimize the unified memory manager code

    ## What changes were proposed in this pull request?
    1.In `acquireStorageMemory`, when the MemoryMode is OFF_HEAP ,the 
`maxMemory` should be modified to `maxOffHeapStorageMemory`
    2. Borrow memory from execution, `numBytes` modified to `numBytes - 
storagePool.memoryFree` will be more reasonable
    
    ## How was this patch tested?
    add unit test


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/10110346/spark wip-lx-0614

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/18296.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #18296
    
----
commit a93f7af4edef3817ab35e6b58c8a6cdb4b64d740
Author: liuxian <[email protected]>
Date:   2017-06-14T04:18:02Z

    Improve unified memory manager code

----


---
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