Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to check the fragmentation and do defragmentation on ext4? Helpful check for home directory

Today, I got a question about how to check the fragmentation of ext4 filesystems, as most common for the Data Center edition or Server edition setups. 

That article is the next step of a previous story about the  improvement of latency for volumes.

Of course, some users can ask why we need to do defragmentation on ext4 as it’s not fragmented. As an answer, I would recommend checking out the presentation from LinuxCon 2010  with the name Outline of Ext4 File System & Ext4 Online Defragmentation Foresight  and watch the small video with fragmentation (

So let’s start to use one small command line utility e4defrag. 

Online man page you can find here:


  1. Get report of fragmentation:
$ sudo e4defrag -c /location
  1. After checking the results you can run the defragmentation:
$ sudo e4defrag /location
  1. If you want extra info:
$ man e4defrag

This is result on out test env:




Hope it helps for your DC installations on ext4.


Gonchik Tsymzhitov


DPK J Community Leader Jan 05, 2021

Will this help if instances are hosted on AWS, using Atlassian provided templates?

Like Gonchik Tsymzhitov likes this

Good question, let me investigate that possibility. 

@DPK J Could you share some information about your AWS installation, please?


Log in or Sign up to comment
Community showcase
Published in Data Center

Architect your Atlassian Data Center Application (Jira, Confluence, Bitbucket) in Azure

Hello folks! To the member of organizations who are still running their Atlassian applications on the server, we are on the side of the bridge, and if we need to sail the boat with confidence either...

476 views 0 11
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you