-
Notifications
You must be signed in to change notification settings - Fork 12
Incorrect use of cores vs threads #100
Copy link
Copy link
Open
Labels
¯\_(ツ)_/¯ unclearOrigin of issue / bug unclear / under investigationOrigin of issue / bug unclear / under investigation❔ questionFurther information is requestedFurther information is requested❗ help wantedExtra attention is neededExtra attention is needed📝 documentationImprovements or additions to documentationImprovements or additions to documentation
Metadata
Metadata
Assignees
Labels
¯\_(ツ)_/¯ unclearOrigin of issue / bug unclear / under investigationOrigin of issue / bug unclear / under investigation❔ questionFurther information is requestedFurther information is requested❗ help wantedExtra attention is neededExtra attention is needed📝 documentationImprovements or additions to documentationImprovements or additions to documentation
Type
Fields
Give feedbackNo fields configured for Bug.
The plugin will currently may report much higher TDP values as it should.
Depending on the CPU architecture a CPU often has several physical cores (e.g. 4) which are later split into multiple threads. (2 per core -> 8)
The used cpu capacity is reported by nextflow on a thread level.
That means, that a cpu utility of 200% reflects the utilization of 2*1 Threads which refers to one CPU core.
Given a sample system with 4 cpus and 8 logical threads nextflow can report an utilization up to 800%.
The energy consumption is currently based on a TDP per core level. That means: A cpu with a TDP of 100 and 4 cores will have a TDP of 25 per core.
A full utilized system with 8 Threads, 4 CPU and a TDP per core of 25 will afterwards be measured with a overall TDP of 200 (800% * 25 = 200)
As a solution the calculation parameter could be changed from "TDP per CPU" to "TDP per Thread" instead.
Some additional side nodes: