Dépréciation de l'accounting kernel ad-hoc
This commit is contained in:
parent
5825111028
commit
d41f1f98ee
47
HowtoAtop.md
47
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 <file>
|
|||
Raccourcis :
|
||||
|
||||
* t : 10 secondes plus tard
|
||||
* T : 10 secondes précédente
|
||||
* 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
|
||||
~~~
|
Loading…
Reference in a new issue