On Wed, Feb 13, 2019 at 01:17:48PM +0100, Sergio Gelato wrote:
> On systems running stretch and systemd and with both the acct and the atop
> packages installed, the process accounting logs in /var/log/account/ only
> cover one out of every 24 hours. The pattern is:
> 
> accton          |v3|     0.00|     0.00|     0.00|     0|     0|  4180.00|    
>  0.00|   18572    18569|Wed Feb 13 06:25:04 2019
> [...]
> atopacctd       |v3|     0.00|     0.00|414389280.00|     0|     0|     0.00| 
>     0.00|     755        1|Thu Dec 27 08:20:13 2018
> 
> and then nothing. If I run "systemctl atopacct status" I see:
> Feb 13 07:25:06 HOST atopacctd[755]: reactivate process accounting

Hm. I hope that upstream can comment on that, I don't know enough about
process accounting. Chances are that only one process at a time can 

> This leads me to believe that the two packages are mutually incompatible
> and should be declared as such (unless the incompatibility is removed,
> of course). I'll now proceed to ban atop from my systems.

*shrug*

disabling atopacctd might be a bit more helpful, but that's of course
your call.

> On a potentially related note, I see that /etc/init.d/atopacct checks
> directories /var/account/pacct and /var/log/pacct but not /var/log/account,

That might be an oversight in packaging or patching the script. Should
we be checking for /var/log/account/pacct? Looks like the file moved
some time in the past and noone noiticed before you did.

> and that the atop(1) man page refers to /var/account/pacct. There are also
> (in /etc/logrotate.d/psacc{s,u}_atop) references to /etc/logrotate.d/psacct;
> is any Debian package providing this file?

Probably not.

Can you please confirm that what atop refers to the psacct package is
just acct in Debian?

How does acct rotate its logs?

Gerlof, if you read this, what package is atop tying to interface with
here?

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany    |  lose things."    Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

Reply via email to