From d41f1f98eeeedaa44e3cf257fcc79b65dc6f4323 Mon Sep 17 00:00:00 2001 From: bwaegeneire Date: Mon, 23 Oct 2023 12:59:24 +0200 Subject: [PATCH] =?UTF-8?q?D=C3=A9pr=C3=A9ciation=20de=20l'accounting=20ke?= =?UTF-8?q?rnel=20ad-hoc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoAtop.md | 47 ++++++++++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 19 deletions(-) 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