Menu

#1557 Add the switch that allows you not to buffer the data.

open
None
7
2022-03-22
2022-03-02
No

I am going to show the percentage of completion of the file transfer, only since the buffer is active, that percentage will reach 100%, in my case, over 15 minutes before the files are actually written to disk. The size of my archive is over 4GB.
I need a switch that allows me to write files directly to disk, without going through the buffer.

7z x "$device" -o"$mountpoint" -bsp2 > /dev/null

Discussion

  • Igor Pavlov

    Igor Pavlov - 2022-03-20
    -mmt1
    
     
  • Riccardo La Marca

    And what does multitreading have to do with buffering?

     
  • Igor Pavlov

    Igor Pavlov - 2022-03-21

    7-zip uses many threads to decompress lzma2 blocks to buffer, and then it writes data from buffer to to file.
    -mmt1 disables that multithreading code.
    It's so for 7z/lzma2 anx xz archives.
    Another archive types don't use multithreading for decompression.

     
    • Riccardo La Marca

      -mmt1 doesn't work, as the next sync command still takes the same long time to empty the buffer.

       

      Last edit: Riccardo La Marca 2022-03-22
  • Igor Pavlov

    Igor Pavlov - 2022-03-22

    What archive type and compression method?

    7z l a.7z > list.txt
    
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.