Page 4 of 4 FirstFirst ... 2 3 4
Results 31 to 32 of 32

Thread: GZip Support for Session Logs

  1. #31
    Senior Member Crowther's Avatar
    Join Date
    Nov 2006
    Posts
    1,413

    Default

    I wrote a Bourne script for compressing session logs that should work on everything besides Windows without modification, if anyone wants it.

    It takes the path of the KoLmafia data directory as an argument, and requires GNU Parallel and gzip. Itíll distribute work efficiently across all available CPUs.
    Originally Posted by Saklad5 View Post
    Hmm. I would have just done something like
    Code:
    pigz -9 ~/KoLmafia/sessions/*

  2. #32
    Senior Member
    Join Date
    Apr 2018
    Posts
    133

    Default

    I’ve heard of pigz, but it seems like it produces slightly larger files due to splitting the file up for processing. I’ve also heard it is rather inefficient, especially with RAM. Besides, that’s mainly for using multiple CPU threads to compress one file, and that isn’t really necessary here. Log files are almost certainly not going to be larger than a few megabytes, but there are potentially many of them.

    Also, GNU Parallel is wonderful and should be installed on everything anyway. It can show progress bars with ETAs, output job logs, and even distribute work across multiple systems using SSH and rsync.
    Last edited by Saklad5; 08-10-2018 at 01:34 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •