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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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 (https://www.youtube.com/watch?v=w0TzYtuh8D0)

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

Online man page you can find here: http://manpages.ubuntu.com/manpages/focal/man8/e4defrag.8.html

 

  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:

image.png

Reference:

 

Hope it helps for your DC installations on ext4.

Cheers,

Gonchik Tsymzhitov

4 comments

Comment

Log in or Sign up to comment
DPKJ
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 05, 2021

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

Like Gonchik Tsymzhitov likes this
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 06, 2021

Good question, let me investigate that possibility. 

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

DPKJ
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 07, 2021
Sergey Papurin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Jan 18, 2022 • edited

@DPKJ 

On AWS default is XFS not EXT4
It can be checked and defragged with xfs_db and xfs_fsr

TAGS
AUG Leaders

Atlassian Community Events