Outils pour utilisateurs

Outils du site


tech:suivre_la_conso_cpu_par_utilisateurs

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
tech:suivre_la_conso_cpu_par_utilisateurs [2026/09/18 09:29] – Jean-Baptistetech:suivre_la_conso_cpu_par_utilisateurs [2026/10/13 15:07] (Version actuelle) – Jean-Baptiste
Ligne 21: Ligne 21:
 ~~~bash ~~~bash
 dnf install psacct dnf install psacct
 +
 +# accton on
 systemctl enable --now psacct.service systemctl enable --now psacct.service
-accton on+ 
 +# Tester 
 +ls         # Une commande bidon 
 +lastcomm   # Doit retourner quelque chose
 ~~~ ~~~
  
Ligne 89: Ligne 94:
 ~~~bash ~~~bash
 lastcomm roger lastcomm roger
 +~~~
 +
 +
 +## Diagnostic
 +
 +~~~bash
 +journalctl -u acct -u psacct --since "10 minutes ago" --no-pager
 ~~~ ~~~
  
Ligne 152: Ligne 164:
 ~~~bash ~~~bash
 lastcomm --show-paging --pid lastcomm --show-paging --pid
 +~~~
 +
 +
 +## Err
 +
 +### Err - ac: Possible overflow of time_t!  Can't continue.
 +
 +Avec des logs en provenance d'une autre machine
 +
 +
 +~~~
 +$ ac -f pacct-20261012 -p
 +pacct-20261012:3450: problem: update user  (for logout) with -11 seconds?!
 +ac: Possible overflow of time_t!  Can't continue.
 +~~~
 +
 +~~~
 +$ ac -f pacct-20261011 --complain 2>/dev/null | awk -F':' '!($1="") !($2="")' | sed -e 's/time warp .*/time warp /g' | sort -u
 +   problem  empty record
 +   problem  missing login record for `�'
 +   problem  missing login record for `J'
 +   problem  time warp
 +   problem  update user  (for logout) with -1 seconds?!
 ~~~ ~~~
  
  
tech/suivre_la_conso_cpu_par_utilisateurs.1789716582.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki