sisa
(SiSa)
November 18, 2017, 9:26am
1
Hi,
I’m kinda familiar with the concept of sparse files, when it goes to reserve space in advance on a drive for files to be created.
I’m unsure, what influences they have in the syncthing context.
Why are sparse files enabled by default for each share?
Will the disabling of sparse files for a share (or for all shares) have any impact in speed / resources of a syncthing client ?
What about the creation of sparse files for thousands of thousands of small files, or huge files? or files, that change very often?
Will enabling sparse files affect the speed of syncing? or affect the disk utilization in a “stressful” way?
Any thoughts or facts ?
Thank you.
(I only found this topic/post)
calmh
(Jakob Borg)
November 18, 2017, 9:36am
2
With sparse files disabled Syncthing will write out blocks full of zeroes. With it enabled it will just skip writing zero blocks, leaving the file sparse. This is more efficient, when supported and when you have files full of zeroes… if you don’t, it doesn’t matter.
sisa
(SiSa)
November 19, 2017, 6:03pm
3
Thanks.
Anyone has an example or an producive usercase, why anybody shoud have files filled with zeroes?
calmh
(Jakob Borg)
November 19, 2017, 6:06pm
4
Probably most commonly, VM/disk images.
1 Like
Tor
November 20, 2017, 7:54am
5
Memory mapped files, where a file is used as a memory region. For a two-dimensional array, for example, and where only a part of the array is filled.
1 Like
system
(system)
Closed
December 20, 2017, 8:01am
6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.