Here is a simple bash script I use for creating lessfs configuration
files:
I originally made it to automate configuration and verification of the
XXX_BS lines used in lessfs. It will not edit existing scripts. Only
create/overwrite with new data or give some information about existing
ones.
It is more for my own personal use, but I'm releasing it here in-case
it's useful to anyone. It's based on my limited understanding of
lessfs, so I make no guarantees on its accuracy. Please excuse any
spelling/grammatical errors.
Download from here:
http://stashbox.org/887553/lessfsconfig.sh
An example of its output when used to check an existing file:
$ ./lessfsconfig.sh --check test.cfg
Statistics for: test.cfg
This configuration will need 625 MB of available RAM to operate well.
128 MB for cache
37 MB for for blockdata database buckets
200 MB for for fileblock database buckets
4 MB for for metadata database buckets
256 MB for block write buffer
This configuration will:
Use up to 600 GB of physical space before suffering performance and
stability issues.
Supply up to 6411 GB of logical, pre-deduplicated, storage before
suffering performance and stability issues.