Re: System becomes unusable when copying a large file via USB into HDD

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

 



These are what I set:
vm.dirty_background_bytes = 3000000
vm.dirty_bytes = 5000000


That limits the to-be-written bytes to 50Mb, and when it hits 50MB it
will clear the write cache down to 30MB and let writes happen again.
Since 20MB of writes happens pretty fast on modern HD's this makes
response reasonable.  If these 2 values are 0 then these 2 rule:
vm.dirty_background_ratio = 0
vm.dirty_ratio = 0
You might note what the default is, all my system have it overridden.

They are in %'s of memory which on a 4GB machine means 40MB is 1%.  I
am not sure what the default spread but at 5% spread that is 200MB and
will take a while to write, and it may be defaulted to a 5% spread.

Outside of benchmarks having a huge writecache is not that useful, and
causes issues like this and really you don't need a very big write
cache at all to make the io subsystem work right.   See how things go
with those numbers and then play around with reducing the spread as
the smaller the spreads the more often the pauses are, but that faster
the finish and at 20MB spread I typically cannot noticed the pause.


On Tue, Mar 31, 2020 at 6:40 PM Tom Horsley <horsley1953@xxxxxxxxx> wrote:
>
> On Wed, 1 Apr 2020 04:55:23 +0530
> Sreyan Chakravarty wrote:
>
> > Marvelous.
> >
> > So now what do we do ?
>
> Well, the ubuntu bug had suggested sysctl settings, but I've
> mostly ignored it since I don't have to copy big files that often,
> so I don't know how well the ubuntu suggestions work.
> _______________________________________________
> 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
_______________________________________________
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