FS#44755 - [linux] System freezes while copying files to USB device

Attached to Project: Arch Linux
Opened by Dusan Kazik (prescott) - Tuesday, 28 April 2015, 07:01 GMT
Last edited by Doug Newgard (Scimmia) - Friday, 06 October 2017, 02:33 GMT
Task Type General Gripe
Category Kernel
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
While copying files to usb device (USB key or external hdd) system is freezing until all files are copied.
GI have googled and found this solution that helps:

http://unix.stackexchange.com/questions/99154/disable-transparent-hugepages

so disable hugepages helps.
maybe should be disabled defaulty in system.
i am using 64bit arch
This task depends upon

Closed by  Doug Newgard (Scimmia)
Friday, 06 October 2017, 02:33 GMT
Reason for closing:  Upstream
Comment by Alberto (agm28011997) - Friday, 26 August 2016, 00:30 GMT
i am not sure what is the thing happening here but I will do tests with my older pc because it isnt normal that my older pc not have this problem, and other likes the speed shown in the copy.. very fast and after stops minutes until it is finished, it is like the speed shown was the speed to the cache and not to the usb
Comment by AK (Andreaskem) - Friday, 26 August 2016, 05:49 GMT
Sounds more like this problem:
https://lwn.net/Articles/572911/

Maybe you should adjust the values mentioned in this article?

edit: Sorry, I did not notice that this is an old issue...
Comment by Alberto (agm28011997) - Friday, 26 August 2016, 06:31 GMT
it is an old issue but the deactivation of hugepages defrag with madvise(I think because i don't know the way to test if it is desactivated) and the put of dirty pages fix my problem, in speed with the usb and the lag of the pc, all went fenomenal I think, I will do more tests but at the moment I think the fix has to be in the stock kernel.. sometimes is imposible to work with data transfering in the background and now yes
Comment by mattia (nTia89) - Monday, 02 October 2017, 18:07 GMT
is this issue still valid?
Comment by Alberto (agm28011997) - Wednesday, 04 October 2017, 22:28 GMT
yes and not, it is something related at the way the kernel uses de ram for cache.. it is not from arch fault, sorry, i will close

Loading...