Re: btrfs: What to do with large growing files?

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

 



On Mon, 2021-01-11 at 13:57 -0600, Richard Shaw wrote:
> So from what I understand once a file is >0 that you can't set nodatacow.
> 
> I'm playing around with cryptocurrency and the current one downloads the
> whole blockchain and it's at 65GB and growing. I think the growing part is
> the problem. That and it's being stored on /home which is a spinning disk
> not an SSD like the system disk.
> 
> I'm seeing a lot of IO wait in glances and the system is sluggish even
> though CPU and memory usage is relatively low.
> 
> Ideas?

You have to copy the file. I've just done something analogous with a
large VM image, following Chris Murphy's helpful suggestion. See the
recent thread on "Compression on Btrfs" (though the method has nothing
to do with compression as such).

If your file is Blockchain and lives in /some/path:

1) chattr +C /some/path ('lsattr -ld /some/path' to check)
2) cp Blockchain Blockchain.new (in my case I had to copy to another
device and back again owing to the size of the file).
3) rm Blockchain
4) mv Blockchain.new Blockchain

There may be a slicker way to do it but this does work.

poc
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux