HelloZeroNet / HelloZeroNet/ZeroNet

Zeronet files are highly fragmented on my drive (500 fragments per 500MB file)

Open
#2,604 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
18.8k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

Someone already reported that it helped them to speed up the Zeronet after defragmenting their Zeronet drive.
I am using this Zeronet instance for more than 2 years from version 2 to latest version 3.
And i have found that many files are highly fragmented, i mean like for example 500 fragments per 500MB file, reported by [Defraggler](https://www.ccleaner.com/defraggler) software.

some examples:
chart.db-wal, 54MB, 622 fragments
content.db-wal, 1GB, 234 fragments
content.db, 1GB, 10 fragments only (maybe due to recent rebuilding the file or such?)
ZeroMe.db, 46MB, 413 fragments
ZeroTalk.db, 35MB, 348 fragments
most fragmented file is one KopyKate video 1GB bigfile, 10 065 fragments.

Maybe no wonder why my HDD is maxed out for many minutes when starting ZN..

Defragmenting is slower than i thought. It taking days and i selected just fraction of files.

Is there any room for improving file handling, so the fragmentation is lower? Maybe there is already an optional feature to preallocate space to a file, i do not know. But i guess this won't be ideal since zeronet is badly made to retain content that is incomplete (no seeder) and it would mean much space wasted for incomplete files? Just publishing my thoughts there.

@HelloZeroNet

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.