Skip to content

Tune GC parameters #1653

@pitrou

Description

@pitrou

According to Linux perf, 18% of the scheduler's runtime (and perhaps the workers as well, depending on the workload) can be spent in the Python GC. I suggest dask-worker and dask-scheduler (as well as Nanny perhaps) tune the GC parameters at process startup to lessen the number of garbage collection attempts.

Something vaguely like:

g0, g1, g2 = gc.get_threshold()
gc.set_threshold(g0 * 2, g1 * 2, g2 * 2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprove existing functionality or make things work better

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions