Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]delete *many* files in btrfs-would subvolume help ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3698
Location: Hamburg

PostPosted: Tue May 12, 2015 7:40 pm    Post subject: [solved]delete *many* files in btrfs-would subvolume help ? Reply with quote

I do have a 3 TB btrfs - formatted disc at my tinderbox, where deleting 15 chroot images of gentoo images took now about 3 hours (~35 GB for each image).
I'm wondering if and how subvolumes would help to speed up the wiping of a chroot image.


Last edited by toralf on Thu May 21, 2015 2:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
kernelwarrior
n00b
n00b


Joined: 08 May 2015
Posts: 8

PostPosted: Thu May 14, 2015 3:27 am    Post subject: Reply with quote

If you stashed each image into its own subvol, yes, you could have GREATLY improved the deletion speed when deciding all of those images were no longer needed.

btrfs's tools to manage subvols is still a bit unwieldly compared with zfs's when faced with "lots" of them.

While it IS very risky, especially without a UPS, you can see if disabling write barriers helps with the delete performance. I suspect it won't be worth much, given the potential risks.
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3698
Location: Hamburg

PostPosted: Thu May 21, 2015 2:37 pm    Post subject: Reply with quote

Pff - over 30 minutes before, now just 1/2 min to delete a chroot image directory ....
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum