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

Pidstat output with -t option does not make sense

Aperta
#282 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
25/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
linux
Ambito
documentation

Direzione di ricerca

Start with the pidstat man page and the reported command, pidstat -h -v -u -t -w -p 5653 1 30. Compare the TGID row with the thread rows in the attached output to determine what the first row reports. Done means the man page clearly explains how to interpret that row; the issue names no source file or test.

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

Descrizione

I am monitoring a single process in thread mode (-t) with the following command:

pidstat -h -v -u -t -w -p 5653 1 30

I am not able to understand what is the meaning of the first line with TGID 5653.
Some columns have the same value as the thread with the same TID 5653 (e.g. cswch/s - 16.00), but some seem to do the summary over all threads (e.g. %CPU). However, if we sum across all threads, we do not get the same numbers.
For example, %CPU column in the first row has value 123%, but sum over all threads give us 126%. The same is true for %usr, %system, ...

Could you please explain how to interpret the results in the first row when using -t option? The man page does not provide any additional infos on this topic.
pidstat-output
](pidstat-output)

Lingua principale
C
Stelle
3.4k
Fork
490
Merge medio
3g 14h
PR unite (30g)
5

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 sysstat/sysstat

Tutte le issue di sysstat/sysstat

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.