linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Ongoing data reorganization/defragmentation?
@ 2012-09-12 16:36 norritt
  2012-09-12 17:35 ` Andreas Dilger
  2012-09-12 18:15 ` Lukáš Czerner
  0 siblings, 2 replies; 5+ messages in thread
From: norritt @ 2012-09-12 16:36 UTC (permalink / raw)
  To: linux-ext4

Ongoing data reorganization/defragmentation?

In my efforts to optimize an ext4 for usage on SSDs, I have found 
information on the web about ext4 I've not been able to verify.

 From what I've found out it's a good idea to:
- mount with noatime, discard (if drive supports trim)
- put /tmp and maybe /var on a tempfs
- set vm.swappiness=1, vm.vfs_cache_pressure=50 (to utilize RAM rather 
than the disk)

Another proposal found is to disable journaling what I personally won't do.

I also know from the ext4 dcumentation, that ext4 is written to support 
online defragmentation. I've read several rumours on forums and blogs 
that indicate ext4 is doing some kind of "ongoing data reorganisations 
or defragmentation" in the background, in case the mechanisms to prevent 
fragmentation in the first place failed for some reason (i.e. when a fs 
is running out of free space). I did not find any credible information 
to back up these claims, that ext4 is actively reorganizing data, but I 
didn't find any information that prove these claims wrong either.

So my question is, does ext4 reorganize data when it encounters 
fragmented files? If so, is there a way to disable that feature which 
would not do any good on SSDs? Is there anything else to consider when 
using ext4 on SSDs, except the things I mentioned above?

Please cc me since I'm not subscribed, thanks!

Regards Nor


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-09-13 12:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-12 16:36 Ongoing data reorganization/defragmentation? norritt
2012-09-12 17:35 ` Andreas Dilger
2012-09-13 12:20   ` norritt
2012-09-12 18:15 ` Lukáš Czerner
2012-09-13 12:54   ` norritt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).