Gentoo Archives: gentoo-user

From: Frank Steinmetzger <Warp_7@×××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Copying USB->USB: sync after every file
Date: Mon, 23 Jan 2017 15:50:45
Message-Id: 20170123155033.GA19695@kern
1 Hi list,
2
3 I need a pointer, please. Something is amiss on my laptop’s setup. When I
4 copy a number of big files (i.e. videos) from one USB device to another, it
5 starts to read the file, then after a few seconds starts to write to the
6 destination and only *after* that file has been completely written, it
7 continues with the next file.
8
9 I never knew this behaviour before and my PC does not do this -- it copies
10 in one continuous go.
11
12 I noticed it first in KDE’s transfer speed graph. Then I could reproduce it
13 with a simple `cp`, but also with rsync and mc. It must be a kernel setting
14 regarding power saving or writeback size or what have you.
15
16 Can you give me a nudge? My sysctl.conf has only one active line besides
17 some netfilter stuff:
18 vm.swappiness = 1
19 (This is an SSD, I don’t even have swap on this machine unless I know I
20 definitely need it temporarily)
21
22
23 Here is the output of dstat whilst I copied a number of videos from a USB stick
24 to an external USB 2 harddrive in mc:
25
26 ----system---- ----total-cpu-usage---- -dsk/total- ----most-expensive----
27 time |usr sys idl wai hiq siq| read writ| block i/o process
28 12-01 20:00:49| 1 1 73 25 0 0| 0 34M|
29 12-01 20:00:51| 1 1 73 25 0 0| 0 37M|
30 12-01 20:00:53| 3 2 72 22 0 0| 20M 20M|mc 20M 20M
31 12-01 20:00:55| 5 3 71 21 0 0| 34M 0 |mc 34M 34M
32 12-01 20:00:57| 5 4 70 21 0 0| 33M 812k|mc 33M 33M
33 12-01 20:00:59| 1 1 73 25 0 0| 0 36M|
34 12-01 20:01:01| 1 1 73 25 0 0| 0 34M|
35 12-01 20:01:03| 3 2 73 22 0 0| 25M 17M|mc 25M 25M
36 12-01 20:01:05| 4 2 73 21 0 0| 34M 0 |mc 34M 34M
37 12-01 20:01:07| 4 3 73 21 0 0| 34M 0 |mc 34M 34M
38 12-01 20:01:09| 2 2 73 23 0 0| 12M 29M|mc 12M 12M
39 12-01 20:01:11| 2 1 64 34 0 0|4096B 34M|
40 12-01 20:01:13| 1 1 49 49 0 0| 0 34M|
41 12-01 20:01:15| 4 2 71 23 0 0| 31M 9381k|mc 32M 32M
42 12-01 20:01:17| 4 2 73 21 0 0| 34M 17k|mc 34M 34M
43 12-01 20:01:19| 3 3 73 21 0 0| 34M 3132k|mc 35M 35M
44 12-01 20:01:20| 3 3 68 26 0 0| 35M 34M|mc 35M 35M
45
46 Cheers
47
48 --
49 Gruß | Greetings | Qapla’
50 Please do not share anything from, with or about me with any social network.
51
52 Nothing is illegal if one hundred business men decide to do it.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Copying USB->USB: sync after every file Jeremi Piotrowski <jeremi.piotrowski@×××××.com>
[gentoo-user] Re: Copying USB->USB: sync after every file Ian Zimmerman <itz@×××××××.net>