Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

High CPU usage when idle, possibly DNS related

Aperta
#9,161 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python

Direzione di ricerca

Inizia con il riproduttore Windows dell'issue usando Dask 2025.11.0, Python 3.12 e uv, quindi confronta l'utilizzo della CPU in idle con diversi numeri di worker osservando al contempo l'attività DNS. Il lavoro è completato quando i worker inattivi non fanno più aumentare l'utilizzo della CPU in proporzione al numero di worker e la riproduzione esistente continua a funzionare correttamente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug help wanted windows

Describe the issue:
I'm seeing high CPU usage (4-6% on an 18 core/36 thread CPU) by "Service Host: DNS Client" associated with dask workers, even when they're not running tasks. Wireshark doesn't show any actual DNS traffic, even on loopback, but I can make the CPU usage start and stop reliably by starting or stopping the workers.

It seems to scale with the number of workers; if I start 100 workers it goes even higher.

Minimal Complete Verifiable Example:

mkdir testing
cd testing
uv init --python 3.12
uv add dask[distributed]
uv run dask scheduler
# In a separate window
uv run dask worker tcp://127.0.0.1:8786 --nworkers 36 --nthreads 1

Then observe CPU usage in task manager.

Environment:

  • Dask version: 2025.11.0
  • Python version: 3.12.10
  • Operating System: Microsoft Windows [Version 10.0.19045.6456]
  • Install method: uv
Lingua principale
Python
Stelle
1.7k
Fork
781
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di dask/distributed

Tutte le issue di dask/distributed

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.