1 / 5
Fragmentation
Adnan Alshulah
2 / 5
File Fragmentation
Fragmentation happens when there is not a large enough block of
contiguous free space available on a file system when a file is being
written. The result is that the file's data is split into multiple groups of
contiguous blocks, which are dispersed across the hard drive.
3 / 5
Issue in File Fragmentation
Disk Operations
request will increased
Negatively impact
Disk Performance
Affect File
System Performance.
Increasing time to
complete disk
service request.
4 / 5
Fragmentation XFS
● Report fragmentation for “XFS” file system
xfs_db -c frag -r “disk-name”
● Report the number of extents for largefile for both file systems
“XFS or EXT4”
filefrag -v largefile
● Defragmentation for both largefile or mount file
xfs_fsr -v “largefile or “mount-point”
5 / 5
Fragmentation EXT4
● Report fragmentation for “ext4” file system
fsck -fn “disk-name”
● Report the number of extents for largefile for both file systems “XFS or
EXT4”
filefrag -v largefile
● Defragmentation for both largefile, mount file, or specific dir
e4defrag -v “largefile, mount-point, or specific dir”
e4defrag -c “largefile, mount-point, or specific dir”
A useful -c option can be used to calculate fragmentation and
determine whether defragmentation is necessary.
5 / 5
Fragmentation EXT4
● Report fragmentation for “ext4” file system
fsck -fn “disk-name”
● Report the number of extents for largefile for both file systems “XFS or
EXT4”
filefrag -v largefile
● Defragmentation for both largefile, mount file, or specific dir
e4defrag -v “largefile, mount-point, or specific dir”
e4defrag -c “largefile, mount-point, or specific dir”
A useful -c option can be used to calculate fragmentation and
determine whether defragmentation is necessary.

More Related Content

PPTX
RAID: High-Performance, Reliable Secondary Storage
PPT
FAT vs NTFS
PPTX
Resilient file system
ODP
Learn about log structured file system
PPTX
12 introduction to Linux OS
ODP
The evolution of linux file system
ODP
NTFS and Inode
PPT
Fat and ntfs
RAID: High-Performance, Reliable Secondary Storage
FAT vs NTFS
Resilient file system
Learn about log structured file system
12 introduction to Linux OS
The evolution of linux file system
NTFS and Inode
Fat and ntfs

What's hot (19)

PPTX
Ext filesystem4
PPTX
Файловая система ReFS в Windows Server 2012/R2 и её будущее в vNext
PPTX
Ntfs and computer forensics
PDF
Difference between ntfs and fat32
PPTX
NTFS vs FAT
PPSX
Management file and directory in linux
PPTX
Windows File Systems
PDF
NTFS file system
PPT
Disk structure
PPTX
Fat 32 file system
PPTX
Windows file system
PPTX
Partitioning
PPTX
Coal presentationt
PPTX
B tree file system
PPTX
Windows File Systems
DOC
File System FAT And NTFS
PPTX
Seminar 1
PDF
Ntfs forensics
Ext filesystem4
Файловая система ReFS в Windows Server 2012/R2 и её будущее в vNext
Ntfs and computer forensics
Difference between ntfs and fat32
NTFS vs FAT
Management file and directory in linux
Windows File Systems
NTFS file system
Disk structure
Fat 32 file system
Windows file system
Partitioning
Coal presentationt
B tree file system
Windows File Systems
File System FAT And NTFS
Seminar 1
Ntfs forensics
Ad

Similar to File Fragmentation (20)

PPT
Magnetic disk - Krishna Geetha.ppt
ODP
4. linux file systems
PPTX
File System
PPTX
Disk and File System Management in Linux
PPTX
11 linux filesystem copy
PPTX
Operating system
PPT
Distributed file systems
PDF
The basic concept of Linux FIleSystem
PPT
Ch18 system administration
PDF
Posscon2013
DOCX
Tier 2 net app baseline design standard revised nov 2011
ODP
Distributed File System
 
PPT
Lesson four operating system basics
PPT
XFS.ppt
PDF
Linux passwords class 4
PPT
Distributed file systems (from Google)
PDF
Do journaling filesystems guarantee against corruption after a power failure (1)
PPTX
Files and directories in Linux 6
Magnetic disk - Krishna Geetha.ppt
4. linux file systems
File System
Disk and File System Management in Linux
11 linux filesystem copy
Operating system
Distributed file systems
The basic concept of Linux FIleSystem
Ch18 system administration
Posscon2013
Tier 2 net app baseline design standard revised nov 2011
Distributed File System
 
Lesson four operating system basics
XFS.ppt
Linux passwords class 4
Distributed file systems (from Google)
Do journaling filesystems guarantee against corruption after a power failure (1)
Files and directories in Linux 6
Ad

More from adnan alshulah (7)

ODP
Network for amin
ODP
ODP
LVM عدنان الشعلة عودة تغييرات
ODP
tmux عدنان الشعلة شرح برنامج
ODP
Hardware
ODP
ODP
Dependency issues "yum lock package version"
Network for amin
LVM عدنان الشعلة عودة تغييرات
tmux عدنان الشعلة شرح برنامج
Hardware
Dependency issues "yum lock package version"

Recently uploaded (20)

PDF
A novel scalable deep ensemble learning framework for big data classification...
PPT
Geologic Time for studying geology for geologist
PDF
STKI Israel Market Study 2025 version august
PDF
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
PDF
Getting started with AI Agents and Multi-Agent Systems
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
1 - Historical Antecedents, Social Consideration.pdf
PPTX
Tartificialntelligence_presentation.pptx
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PDF
August Patch Tuesday
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PDF
Unlock new opportunities with location data.pdf
PPTX
The various Industrial Revolutions .pptx
A novel scalable deep ensemble learning framework for big data classification...
Geologic Time for studying geology for geologist
STKI Israel Market Study 2025 version august
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
Getting started with AI Agents and Multi-Agent Systems
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
Assigned Numbers - 2025 - Bluetooth® Document
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
1 - Historical Antecedents, Social Consideration.pdf
Tartificialntelligence_presentation.pptx
Module 1.ppt Iot fundamentals and Architecture
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
sustainability-14-14877-v2.pddhzftheheeeee
August Patch Tuesday
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
Unlock new opportunities with location data.pdf
The various Industrial Revolutions .pptx

File Fragmentation

  • 2. 2 / 5 File Fragmentation Fragmentation happens when there is not a large enough block of contiguous free space available on a file system when a file is being written. The result is that the file's data is split into multiple groups of contiguous blocks, which are dispersed across the hard drive.
  • 3. 3 / 5 Issue in File Fragmentation Disk Operations request will increased Negatively impact Disk Performance Affect File System Performance. Increasing time to complete disk service request.
  • 4. 4 / 5 Fragmentation XFS ● Report fragmentation for “XFS” file system xfs_db -c frag -r “disk-name” ● Report the number of extents for largefile for both file systems “XFS or EXT4” filefrag -v largefile ● Defragmentation for both largefile or mount file xfs_fsr -v “largefile or “mount-point”
  • 5. 5 / 5 Fragmentation EXT4 ● Report fragmentation for “ext4” file system fsck -fn “disk-name” ● Report the number of extents for largefile for both file systems “XFS or EXT4” filefrag -v largefile ● Defragmentation for both largefile, mount file, or specific dir e4defrag -v “largefile, mount-point, or specific dir” e4defrag -c “largefile, mount-point, or specific dir” A useful -c option can be used to calculate fragmentation and determine whether defragmentation is necessary.
  • 6. 5 / 5 Fragmentation EXT4 ● Report fragmentation for “ext4” file system fsck -fn “disk-name” ● Report the number of extents for largefile for both file systems “XFS or EXT4” filefrag -v largefile ● Defragmentation for both largefile, mount file, or specific dir e4defrag -v “largefile, mount-point, or specific dir” e4defrag -c “largefile, mount-point, or specific dir” A useful -c option can be used to calculate fragmentation and determine whether defragmentation is necessary.