Copying large amount of files to USB stick makes system laggy or even freeze/hang (temporary)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
WORKAROUND: With disabled swap all works smoothly even with large vm sysctl settings and low free memory:
vm.dirty_ratio = 60
vm.dirty_
1. In order to reproduce this, create large enough temporary file:
dd if=/dev/zero of=/tmp/zeroes bs=8196 count=1000000
1000000+0 records in
1000000+0 records out
8196000000 bytes (8.2 GB) copied, 31.5395 s, 260 MB/s
2. Mount USB stick/external USB hard drive.
3. Start copy to external device:
cp /tmp/zeroes /media/bob/16\ GB\ USB\ 3.0/
Expected behavior: file being copying in background for a quite a lot of time (since USB sticks not so fast) not interrupting other work on system.
Observed behavior: after some time of copying system starts to lag --- mouse cursor jerking, alt+tab lags, windows became dimmed, music lags.
If I try to copy around 20 GB of files (e.g. photoes collections) system became almost completely unresponsive and I can observe in syslog following messages:
Jan 9 02:36:19 bob-laptop kernel: [120872.200909] INFO: task kworker/u16:1:15378 blocked for more than 120 seconds.
Jan 9 02:36:19 bob-laptop kernel: [120872.200955] "echo 0 > /proc/sys/
Jan 9 02:36:19 bob-laptop kernel: [120872.200997] kworker/u16:1 D ffff88025f254580 0 15378 2 0x00000000
Jan 9 02:36:19 bob-laptop kernel: [120872.201046] ffff880159bebc10 0000000000000046 ffff880159bebfd8 0000000000014580
Jan 9 02:36:19 bob-laptop kernel: [120872.201090] ffff880159bebfd8 0000000000014580 ffff880218c6aee0 7fffffffffffffff
Jan 9 02:36:19 bob-laptop kernel: [120872.201134] ffff880159bebd68 ffff880159bebd70 ffff880218c6aee0 ffff880159bebde0
Jan 9 02:36:19 bob-laptop kernel: [120872.201178] Call Trace:
Jan 9 02:36:19 bob-laptop kernel: [120872.201200] [<ffffffff816ec
Jan 9 02:36:19 bob-laptop kernel: [120872.201229] [<ffffffff816ea
Jan 9 02:36:19 bob-laptop kernel: [120872.201263] [<ffffffff81091
Jan 9 02:36:19 bob-laptop kernel: [120872.201294] [<ffffffff81092
Jan 9 02:36:19 bob-laptop kernel: [120872.201327] [<ffffffff81092
Jan 9 02:36:19 bob-laptop kernel: [120872.201362] [<ffffffff816ec
Jan 9 02:36:19 bob-laptop kernel: [120872.201396] [<ffffffff81094
Jan 9 02:36:19 bob-laptop kernel: [120872.201429] [<ffffffff81084
Jan 9 02:36:19 bob-laptop kernel: [120872.201467] [<ffffffff8107d
Jan 9 02:36:19 bob-laptop kernel: [120872.201503] [<ffffffff8107d
Jan 9 02:36:19 bob-laptop kernel: [120872.201533] [<ffffffff81070
Jan 9 02:36:19 bob-laptop kernel: [120872.201563] [<ffffffff8107d
Jan 9 02:36:19 bob-laptop kernel: [120872.201598] [<ffffffff8107e
Jan 9 02:36:19 bob-laptop kernel: [120872.201632] [<ffffffff8107d
Jan 9 02:36:19 bob-laptop kernel: [120872.201668] [<ffffffff81084
Jan 9 02:36:19 bob-laptop kernel: [120872.201697] [<ffffffff81084
Jan 9 02:36:19 bob-laptop kernel: [120872.201734] [<ffffffff816f7
Jan 9 02:36:19 bob-laptop kernel: [120872.201765] [<ffffffff81084
Lagging stops when copying finishes. This issue observed with all tested USB storage devices (two USB sticks and one external USB-HDD), in both USB 2 and USB 3 ports, with destination filesystem ext4 and NTFS.
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: linux-image-
ProcVersionSign
Uname: Linux 3.11.0-15-generic x86_64
ApportVersion: 2.12.5-0ubuntu2.2
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/pcmC0D0p: bob 20835 F...m pulseaudio
CheckboxSubmission: 3d16077c4fdd6a0
CheckboxSystem: b633b4f40868d49
Date: Fri Jan 10 04:05:31 2014
HibernationDevice: RESUME=
InstallationDate: Installed on 2014-01-01 (8 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
MachineType: Sony Corporation SVS1311S9RB
MarkForUpload: True
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.116
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 05/17/2012
dmi.bios.vendor: Insyde Corp.
dmi.bios.version: R0142C5
dmi.board.
dmi.board.name: VAIO
dmi.board.vendor: Sony Corporation
dmi.board.version: N/A
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: Sony Corporation
dmi.chassis.
dmi.modalias: dmi:bvnInsydeCo
dmi.product.name: SVS1311S9RB
dmi.product.
dmi.sys.vendor: Sony Corporation
tags: |
added: kernel-bug-exists-upstream-v3.13-rc7 latest-bios-r0142c5 needs-upstream-testing regression-potential removed: kernel-bug-exists-upstream |
description: | updated |
This change was made by a bot.