Questions tagged [defragmentation]

The process of arranging blocks on the filesystem to optimize disk read access.

Filter by
Sorted by
Tagged with
2
votes
0answers
54 views

Completely defragmenting a FAT32 filesystem [duplicate]

Is there any Linux tool that allows defragmenting a FAT32 filesystem not on a best effort basis, but so that all files are guaranteed to be stored contiguously with no exceptions? Possibly writing the ...
4
votes
1answer
288 views

Understanding main memory fragmentation and hugepages

I have a machine that is intended for general use and which I also used to run a QEMU virtual machine. Because the virtual machine should be as performant as possible, I want to back the VM memory ...
2
votes
2answers
92 views

Switching from Win10 to Linux: AV, defrag, disk cleanup tools, etc [closed]

I installed Linux Mint on my desktop in place of Windows 10. I am used to having virus/malware Scanners, defragmenters, Disk Clean up tools etc. I was wondering if people here would be able to ...
8
votes
1answer
1k views

How to cause the kernel to compact fragmented memory

I am running Fedora 26. This is for a very strange assignment given by my algorithms professor. The assignment says: Memory fragmentation in C: Design, implement, and execute a C-program that ...
-1
votes
1answer
69 views

Do rolling releases inevitably cause higher fragmentation over time than point releases? [closed]

Let's compare Debian Stable as a candidate for point releases and Arch Linux as a candidate for rolling releases: Does a rolling release by default cause higher fragmentation on the drive than a ...
2
votes
1answer
165 views

How to defragment files in size less than 100MB only in ext4 filesystem

I have a very basic idea: I would like to defragment files in size less than 100MB only in ext4 filesystem. Since there is no option for that in the defragmentation tool (e4defrag), any ideas how I ...
0
votes
1answer
42 views

How to filter out only fragmented files from the log?

Supposing I have just finished a defragmentation on ext4 file system on a HDD: sudo e4defrag -v / > ~/defrag-2017-11-05 2>&1 & Which is most probably unnecessary, but I wanted to see, ...
7
votes
2answers
4k views

btrfs — Is it dangerous to defragment subvolume which has readonly snapshots?

If you open the defragment section of btrfs-filesystem(8), you will see the following ominous inscription left by the developers: Warning: Defragmenting with Linux kernel versions < 3.9 or ≥ 3....
0
votes
1answer
52 views

Are there any utilities to know where a file is physically present in the hdd? [duplicate]

I am on Debian testing and using ext4 and ntfs . while ext4 has been brilliant in recovering lost data sometimes it also discards some pieces when electricity goes for a long time or any such similar ...
1
vote
1answer
183 views

Add & execute package to Defrag a fragmented Ext3 Volume under BusyBox in Synology CS407? How?

Add & execute package to Defrag a fragmented Ext3 Volume under BusyBox in Synology CS407? How? Note: Debunking the myth of Linux Filesystems not getting fragmented. http://www.webupd8.org/2010/...
1
vote
1answer
4k views

Defragmentation options on Ext4 filesystem

I have the following devices with Linux Mint 18.1 on laptops and GNU/Linux Debian 9 on the server. (All are 64-bit and with Cinnamon desktop.) All drive devices are formatted with ext4 filesystem; ...
1
vote
1answer
711 views

How to atomically defragment ext4 directories

Fragmentation seems to create a lot of unnecessary seeks when traversing a directory tree on a HDD: # stat -c %F 00 01 02 directory directory directory # filefrag -v 00 01 02 Filesystem type is: ...
2
votes
0answers
68 views

External Fragmentation in FreeBSD due to unmovable Kernel pages

Is external fragmentation an issue in FreeBSD due to unmovable Kernel pages similar to what Linux (1) (2) faces?
5
votes
2answers
1k views

How to change the extent size in the ext4 file system?

As you can read here , ext4 file system has an extent feature that groups blocks into extents. Each of them can have up to 128MiB contiguous space. In e4defrag , there are lines similar to the ...
2
votes
1answer
213 views

Will send & receive also defragment data?

I have heavily fragmented (and 90% full) btrfs partition on my laptop. I'd like to perform defragmentation with the help of identical spare hard drive. I already re-created partition table (GPT) and ...
1
vote
0answers
701 views

How to defrag XFS file-system if xfs_fsr exits with “no improvement will be made”?

I am trying to defrag a heavily fragmented XFS file-system on a CentOS 6.6 machine: [root@server opt]# xfs_db -c frag -r /dev/md3 actual 598, ideal 215, fragmentation factor 64.05% However, when I ...
2
votes
1answer
130 views

Meanings of defragmentation and when it is needed

There seem to be two meanings of defragmentation: Defragmentation is a process that reduces the amount of fragmentation. Fragmentation occurs when the file system cannot or will not allocate enough ...
6
votes
2answers
970 views

rsync hangs unless I defrag ext4 filesystem

I have a XBian server (Raspberry Pi version of Debian) running rsync via inetd (not the native dæmon). I am serving a couple of directories on an ext4 filesystem (on a USB disk) as individual modules (...