Skip to content

Size of workers for parallel execution #1637

@raffaem

Description

@raffaem

Regarding this chapter of the book, looks like you now need to configure the toal size of objects sent to the worker per backend.

So this line:

options(future.globals.maxSize = 8000 * 1024^2) # 8 GB memory

should be remove, while this line:

plan(multicore, workers = cores)

should become:

plan(multicore, workers = core, maxSizeOfObjects = 10e9) # raise max size to 10 GB

See the changelog for future 1.40:

The maximum total size of objects send to and from the worker can now be configured per backend, e.g. plan(multisession, maxSizeOfObjects = 10e6) will produce an error if the total size of globals exceeds 10 MB.

Backends sequential and multicore no longer has a limit on the maximum size of globals, i.e. they now default to maxSizeOfObjects = +Inf. Backends cluster and multisession also default to maxSizeOfObjects = +Inf, unless R option future.globals.maxSize (sic!) is set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions