Search Ctrl K
Home / Tools
THE FEUTEX TOOLKIT

Tar Archive Block Overhead

Estimate an uncompressed basic tar archive from equal-sized files and record padding.

Computer Systems workspace● Runs in your browser
01 Your input
02 Your result
View or copy raw result data
FormulaRecord-padded archive size = Math.ceil((n*(1+Math.ceil(bytes/512))+2)/blocking)*blocking*512; Archive minus payload = Math.ceil((n*(1+Math.ceil(bytes/512))+2)/blocking)*blocking*512-n*bytes
Sources and model references

Made for real tasks

  • Estimate an uncompressed basic tar archive from equal-sized files and record padding.
Explore step-by-step workflows →

Worked example

Inputs

Regular files
1000 files
Payload per file
900 bytes
Blocks per output record
20 blocks

Expected results

Record-padded archive size
1546240 bytes
Archive minus payload
646240 bytes

Load the example in the workspace to reproduce these results. Display rounding does not change the underlying calculation.

How to use this tool

  1. Enter regular files, payload per file, blocks per output record in the displayed units.
  2. Calculate the scenario, then compare it with measurements before changing a system.

Try this example

{
  "n": 1000,
  "bytes": 900,
  "blocking": 20
}

Accuracy and scope

Basic regular-file headers, two end blocks and record padding; excludes directories, long names, extended headers, links, compression and sparse extensions.

Is my data uploaded?

This tool runs locally in your browser. Input and output are not sent to a processing server. Copy or download your result before leaving the page.