diff --git a/HowtoAtop.md b/HowtoAtop.md index 424102c4..4393082e 100644 --- a/HowtoAtop.md +++ b/HowtoAtop.md @@ -2,24 +2,6 @@ title: Howto atop --- -# Activer l'accounting kernel - -~~~ -# apt install acct -Turning on process accounting, file set to '/var/log/account/pacct'. -~~~ - -# Lancer atop avec un le chemin du fichier d'accounting - -~~~ -# ATOPACCT="/var/log/account/pacct" atop -w atop.file -~~~ - -# Stopper l'accounting kernel - -~~~ -accton off -~~~ # Loguer @@ -36,4 +18,31 @@ atop -r Raccourcis : * t : 10 secondes plus tard -* T : 10 secondes précédente \ No newline at end of file +* T : 10 secondes précédente + +# Déprécié + +## Accounting kernel ad-hoc + +Dans d'ancienne version d'atop, l'accounting kernel n'était pas intégré dans atop, il était géré avec `psacct` ou `acct`. Ces processus séparés écrivaient dans le fichier `/var/log/account/pacct` sans avoir de rotation qui s'accumulait sur le disque et dont l'espace disque n'était pas facilement libérable, car géré par le noyau. + +Maintenant l'accoutning kernel est géré par atop lui-même via le démon `atopacctd`, donc le fichier `/var/log/account/pacct` problématique n'est plus utilisé par défaut. Et la documentation suivante n'est plus a utiliser. + +### Activer l'accounting kernel ad-hoc + +~~~ +# apt install acct +Turning on process accounting, file set to '/var/log/account/pacct'. +~~~ + +### Lancer atop avec un le chemin du fichier d'accounting ad-hoc + +~~~ +# ATOPACCT="/var/log/account/pacct" atop -w atop.file +~~~ + +### Stopper l'accounting kernel ad-hoc + +~~~ +accton off +~~~ \ No newline at end of file