Skip to content

Investigate using plasma #2594

Closed
Closed

Description

@shoyer

http://arrow.apache.org/blog/2017/08/08/plasma-in-memory-object-store/

This looks like a great way to share data across processes for dask.array (and dask.dataframe, possibly). Array.persist() should possibly use this by default if the scheduler is using multiple processes (either via the multi-processing scheduler or distributed).

Activity

  1. mrocklin commented on Aug 9, 2017

    @mrocklin
    Member

    How generic does Plasma go? If the answer isn't "entirely generic" then this might have to be attached to a collection rather than the scheduler itself. Something like array = array.cache_in_plasma(). Was this what you were thinking @shoyer ?

  2. dhirschfeld commented on Aug 9, 2017

    @dhirschfeld

    It seems like plasma may just be designed for single-node parallelism? In that case a distributed cache_in_plasma function may have to take care to push to a plasma cache on each node.

  3. shoyer commented on Aug 9, 2017

    @shoyer
    MemberAuthor

    How generic does Plasma go? If the answer isn't "entirely generic" then this might have to be attached to a collection rather than the scheduler itself. Something like array = array.cache_in_plasma(). Was this what you were thinking @shoyer ?

    It looks like plasma provides a way to share data in the form of Python memoryview objects. It can't work for arbitrary Python objects, for which there is no equivalent to memoryview.

    So by necessity it does appear it would be limited to particular collections. It would work well for dask array, but perhaps not for dask dataframe (string columns are stored with dtype=object, and custom dtypes would require special work).

  4. mrocklin commented on Aug 9, 2017

    @mrocklin
    Member

    I can imagine a modification of the dask.multiprocessing scheduler that put numpy intermediates into Plasma, or some other posix-shared memory store and sent everything else back as normal. Joblib may also provide enough infrastructure here for using posix shared memory if we want to rely on something slightly more stable.

  5. mrocklin commented on Oct 23, 2018

    @mrocklin
    Member

    This seems to have gone stale. Closing. If folks want to discuss this further then please reopen.

  6. Hoeze commented on May 28, 2020

    @Hoeze

    Maybe this would be a good time point to re-open the discussion here?
    Plasma and the Arrow ecosystem has grown a lot in its possibilities, e.g. sparse tensors and data frames:
    https://arrow.apache.org/docs/python/plasma.html

    Having a scheduler that automatically uses shared-memory if possible, drops to direct network communication and finally spilling to disk would be a dream!

  7. jakirkham commented on May 28, 2020

    @jakirkham
    Member

    There's already a discussion about using UNIX domain sockets, which would add shared memory ( dask/distributed#3630 ). Seems better to do that before worrying about adding more dependencies.

    That said, do you actually have a use case for this? If so, do you mind sharing that in a new issue?

  8. Hoeze commented on May 30, 2020

    @Hoeze

    Thanks for your answer @jakirkham.
    I opened an issue at dask/distributed#3630

  9. jakirkham commented on May 31, 2020

    @jakirkham
    Member

    xref: #6267

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions