Skip to content

Adding multi-thread functionality #48

@janhec

Description

@janhec

I'm looking for an effective way to profile a multithread operation, which is complicated because a thread may fork again. Is it possible to add thread information/PID into the mix? That might help to fix the sweet point in the number and division of threads, I hope.
Admittedly, I do not have a very clear picture of this, but I hope a relatively minor report addition may go a long way, for me, at least.
Further elaboration:
I tried to use the profiler for optimizing a multi-thread proces, but couldn't do it, because I could not pinpoint real bottlenecks. Especially since individual threads may need quite different runtimes. The aim is to prioritize threading to ensure that the total runtime equals the longest run (or as close as possible). That is basically done by "subthreading" (my term but I think it is clear). So main threads are started only when there is a bit of unused cpu capacity available.
There are really two optimization problems:

  1. are there parts of the implementation where speedup would help;
  2. can I still improve my scheduling.

Reading up a bit I realize that this is a tall order even in terms of theoretical methods. But anyhow, advice and or more data (e.g. an absolute timeline) could help.

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