You are not logged in.
Pages: 1
Topic closed
I have both windows and archlinux installled in my computer. However, I find copying files very unpleasant in archlinux.
In windows, when I copy files to a usb stick, I can use other applications freely while in archlinux, copying files to a usb stick will significantly reduce system performance and make it difficult to do other work at the same time.
Is this common in archlinux and is there a solution to this?
Last edited by wangchong (2015-09-02 03:55:45)
Offline
There is probably a 1,000 different ways to copy files, some of them more efficient than others. How are you copying files?
Offline
I just copied with gui using nautilus of gnome. It was a large file, not several small ones.
Last edited by wangchong (2015-09-02 04:48:54)
Offline
Which filesystem are you using on the USB stick? If it is NTFS or Fat32, performance should be worse than windows, but even in that case it shouldn't make the system unusable.
Offline
NTFS. I don't mean unusable, just mouse pointer becomes slowly and opening files takes a long time
Offline
Use htop to notice the impact on the system (cpu, memory usage) while copying the files. Also, test with cp and rsync and see if there is any difference in the behaviour.
Offline
Choice of disk scheduler can influence performance of such tasks a lot. Default CFQ has been worked on a lot lately, but people all around still claim better performance with altetrnatives, like BFQ for example. Actually, I use it myself, and I do feel the difference when copying bigger files to USB disks, with CFQ I'd get similar glitches and pauses. Ofcourse, YMMV, but it's worth trying.
Offline
I tried repo-ck with BFQ and it didn't help and using cp also suffered this problem.(It was one problem or another. For example, using cp under BFQ sometimes causes my chrome to freeze) It is not unusable but not fluent compared to windows. Is this a common behaviour?
Last edited by wangchong (2015-09-02 13:02:47)
Offline
I usually face a similar problem (barely usable system) while copying using scp, but not with usb media.
Offline
sometimes causes my chrome to freeze
That's probably the fault of sqlite's sync.
"sync" just causes more problems than it solves. It prevents further reads until all the writes are finished, which is a terrible idea on an interactive PC.
Edit: Also, see link in my sig, for more tips.
Last edited by brebs (2015-09-02 13:43:57)
Offline
wangchong:
Try using cp instead of GUI if the issue happens mostly with large files.
Most GUI implementations are using naïve and inefficient approach (fopen, fread, fwrite, …) instead of the proper solution (mmap, memmove, madvise MADV_DONTNEED). Basically they're filling RAM with garbage, pushing memory of other processes to swap, which is bad in two ways:
The processes, if they're running, will in near future need the memory, so they'll work slowly.
The load on drive becomes tremendous: not only the copying process is reading and/or writing to it, but suddenly also large amounts of data are being swapped out and in. This also causes reads and writes to be completly non-sequential - if this is a HDD, the heads need to jump constantly all over the plate, making the whole thing even slower.
Last edited by mpan (2015-09-02 15:34:34)
Offline
Maybe we can close this because this is not a bug
Offline
Closing at request of OP. Please use the report function if you want your topic closed in the future.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Pages: 1
Topic closed