Re: What is the current status of defragmentation?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Adam Ryczkowski posted on Thu, 18 Jul 2013 00:18:23 +0200 as excerpted:

> Today I booted my linux-mint 14 into the latest 3.10.1 kernel to
> defragment the root btrfs filesystem on my ASUS N56VZ laptop with hybrid
> Seagate Momentus XT disk. I did something like
> 
>    find / -exec btrfs filesystem defrag {}

> [description of experience snipped] It clearly showed me, that
> defragmenting the filesystem is not that trivial, as it is for ext4.
> So I have quesions: [snipped]

> Does this command
> 
> find / -type f -o -type d -print0 | xargs --null --no-run-if-empty btrfs
> filesystem defragment -cv
> 
> look like a reasonable idiom for defragmenting the whole filesystem?

Given that you don't mention the btrfs wiki, and to a large extent your 
questions are covered there, I'll assume you're not familiar with it.

The short answer is that yes, a find of that nature, piped to xargs to 
run btrfs filesystem defrag, is the suggested solution.  However, you 
really need to read up on the wiki, and then ask any remaining questions 
you may have.  (I still had some questions myself.)

Bookmarking link:  https://btrfs.wiki.kernel.org/

Defrag is covered there in some detail, including a recommended find-
piped defrag command. =:^)

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux