Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any easy way to defragment on F2FS? #5

Open
jonggyup opened this issue Nov 18, 2020 · 1 comment
Open

Is there any easy way to defragment on F2FS? #5

jonggyup opened this issue Nov 18, 2020 · 1 comment

Comments

@jonggyup
Copy link

It seems like the current defragmentation of F2FS relies on defrag.f2fs.
But the required parameters are the actual block addresses, which is not convenient.
(Also, I don't know how to get free block addresses for the target block addresses)
As far as I remember, F2FS used to provide a defragmentation tool that rewrites a whole file into a new area.
But, I can't find it anymore.

Is there any easy way to defragment?
How do people usually defragment their files on F2FS?

@Mausy5043
Copy link

I'm sure there will NOT be any benefit for defragmentation on solid-state type storage media.
The defragmentation consumes write-cycles which reduces the potential lifetime of the device.
Also, seek- and read-times won't be affected.

Sources:
this question on superuser.com and the more authorative Crucial. There are many others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants