Hi, > Am 28.01.2016 um 14:54 schrieb Jerome Poitout <network.ad...@dolphin.fr>: > > Dear all, > > the accounting file is getting very big (17GB on my server after only > 1608188 jobs...). > Is there a way to delete old jobs from this file ? > I saw the "# DO NOT MODIFY THIS FILE MANUALLY!" warning so I'm asking... > > My reporting params are defaults : > reporting_params accounting=true reporting=false \ > flush_time=00:00:15 joblog=false > sharelog=00:00:00 > > I have no interest to keep all the job from the very 1st one, so my goal > is to keep the last 3 months.
You can just remove/rename/compress the file. Either by the the logrotation of the OS or with the supplied script $SGE_ROOT/util/logchecker.sh and start it e.g. once a day via cron. I also see no bad effect by removing just certain lines, i.e. from a user you are no longer interested in (race conditions still apply here if SGE would just write to the file at the same moment). `qacct` allows also to specify an alternate accounting file which allows: $ qacct -f <(zcat accounting.1.gz) for past accounting files. > Optional question, what's the best way to get stats with user / waiting > time / running time? Well, the waiting time needs to be computed by `awk` or other means. While the CPU time is available as plain value, the wallclock time needs to be computed too. Note the setting of "accounting_summary" in the PE definition for parallel jobs. -- Reuti > Best regards, > > Jerome > _______________________________________________ > users mailing list > users@gridengine.org > https://gridengine.org/mailman/listinfo/users _______________________________________________ users mailing list users@gridengine.org https://gridengine.org/mailman/listinfo/users