I’m having the same problem. I’m running Kopia on both Windows and Raspberry Pi Ubuntu 21.04. The repository is on a ZFS pool. All three (Windows, Pi, and ZFS pool) are currently somewhat busy and somewhat slow, but as you’ll see, that’s not the (full) explanation. I will report back if/when things change after restarting the devices.
Now, on to the logs. There’s something distinctly buggy going on with the timestamps of the “sweeping content cache” lines - a delay of exactly 1 minute at each one! I see the same in jaykayes’s log.
On the Ubuntu-Pi:
kopia policy list --log-level 'debug'
2021-08-18 19:55:10.016 D [logger.go:254] build version v0.8.4, available v0.8.4
2021-08-18 19:55:10.018 D [logger.go:254] no updated version available
2021-08-18 19:55:10.018 D [logger.go:254] password for /home/steve/.config/kopia/repository.config retrieved from password file
2021-08-18 19:55:30.128 D [logger.go:254] [STORAGE] ListBlobs("m")=<nil> returned 3 items and took 19.333527195s
2021-08-18 19:55:30.129 D [logger.go:254] saving 3 blobs with prefix m to cache
2021-08-18 19:55:30.131 D [logger.go:254] listed 3 index blobs with prefix m from source
2021-08-18 19:56:10.798 D [logger.go:254] finished sweeping content cache in 5.099931ms and retained 0/5242880000 bytes (0 %)
2021-08-18 19:56:10.811 D [logger.go:254] finished sweeping metadata cache in 15.850579ms and retained 58133000/5242880000 bytes (1 %)
2021-08-18 19:57:10.808 D [logger.go:254] finished sweeping content cache in 386.197µs and retained 0/5242880000 bytes (0 %)
2021-08-18 19:57:10.833 D [logger.go:254] finished sweeping metadata cache in 21.257248ms and retained 58133000/5242880000 bytes (1 %)
2021-08-18 19:58:10.811 D [logger.go:254] finished sweeping content cache in 721.154µs and retained 0/5242880000 bytes (0 %)
2021-08-18 19:58:10.858 D [logger.go:254] finished sweeping metadata cache in 23.905223ms and retained 58133000/5242880000 bytes (1 %)
2021-08-18 19:58:26.230 D [logger.go:254] [STORAGE] ListBlobs("n")=<nil> returned 45 items and took 3m15.435048591s
2021-08-18 19:58:26.230 D [logger.go:254] saving 45 blobs with prefix n to cache
2021-08-18 19:58:26.236 D [logger.go:254] listed 45 index blobs with prefix n from source
2021-08-18 19:58:26.277 D [logger.go:254] [STORAGE] GetBlob("m6fe5e244e81ebd414acff166a9307edf",0,-1)=({5057 bytes}, <nil>) took 29.970492ms
2021-08-18 19:58:26.287 D [logger.go:254] updating timestamp on /home/steve/.cache/kopia/90dd96712b38984b/metadata/mc/3757a9468a311abbce8c031b601450e.f to 2021-08-18 19:58:26.287297502 +0200 CEST m=+196.317531917
2021-08-18 19:58:26.290 D [logger.go:254] updating timestamp on /home/steve/.cache/kopia/90dd96712b38984b/metadata/me/c6a3c0e24fad126d31d336eabc10b5c.f to 2021-08-18 19:58:26.29027471 +0200 CEST m=+196.320509126
2021-08-18 19:58:26.292 D [logger.go:254] blob n65d4a7a4e8219269e3b435754cd48e92 referenced by compaction log is not found
2021-08-18 19:58:26.297 D [logger.go:254] downloading 3 new index blobs (372061 bytes)...
2021-08-18 19:58:26.330 D [logger.go:254] [STORAGE] GetBlob("n3cd96cbbc4ab283ce6bf79dfcb80bef6-sa7ed0f938cd7a661107",0,-1)=({20134 bytes}, <nil>) took 26.495291ms
2021-08-18 19:58:26.342 D [logger.go:254] [STORAGE] GetBlob("nc7d006b2d0fb939f76d3ec13b6ec4bd4-sbe8a2f6247e0e643107",0,-1)=({159 bytes}, <nil>) took 38.958803ms
2021-08-18 19:58:26.597 D [logger.go:254] [STORAGE] GetBlob("n0be7699b3b9046db58c884dce44e0b87",0,-1)=({351768 bytes}, <nil>) took 261.935614ms
2021-08-18 19:58:26.614 D [logger.go:254] Index contents downloaded.
2021-08-18 19:58:26.615 D [logger.go:254] combined 6 into 6 index segments
2021-08-18 19:58:26.617 D [logger.go:254] listing manifest contents
2021-08-18 19:58:26.673 D [logger.go:254] [STORAGE] GetBlob("qe98eb1800a2279a16b16d742e0da4c2c-s6c1456c159765673107",0,-1)=({4319 bytes}, <nil>) took 55.606965ms
2021-08-18 19:58:26.717 D [logger.go:254] [STORAGE] GetBlob("q6e49d67917af9d07bd6911f5407ae9b4-s4e977fdacd1f8af6107",0,-1)=({168345 bytes}, <nil>) took 98.874768ms
2021-08-18 19:58:26.749 D [logger.go:254] [STORAGE] GetBlob("q3246b18d0e503525d2e8567552ada843-s187ec56dbe6f2e85107",0,-1)=({26219 bytes}, <nil>) took 129.437954ms
2021-08-18 19:58:26.772 D [logger.go:254] [STORAGE] GetBlob("q1fbdc3a94c22ab6c12062350a946a24e-s7ca27f789fdcf7da107",0,-1)=({4282 bytes}, <nil>) took 96.872562ms
2021-08-18 19:58:26.781 D [logger.go:254] [STORAGE] GetBlob("qc0c8bcac8b327282fafcc4506a5d80d5-s191538e03c11e466107",0,-1)=({4282 bytes}, <nil>) took 162.673409ms
2021-08-18 19:58:26.817 D [logger.go:254] [STORAGE] GetBlob("q470927153e125846dc196bc7ac7005b4-sbe8a2f6247e0e643107",0,-1)=({4282 bytes}, <nil>) took 189.17307ms
2021-08-18 19:58:26.822 D [logger.go:254] closing shared manager
2021-08-18 19:58:26.831 D [logger.go:254] finished sweeping metadata cache in 8.102418ms and retained 58721847/5242880000 bytes (1 %)
2021-08-18 19:58:26.831 D [logger.go:254] [STORAGE] Close()=<nil> took 666ns
2021-08-18 19:58:26.834 D [logger.go:254] in use heap 2826240 (delta 2826240 max 0) stack 622592 (delta 622592 max 0)
kopia policy set global --snapshot-time 02:00 --log-level debug
[Edit: oops, I just realized ‘global’ should be in quotes] [Edit: nope that didn’t work either]
2021-08-18 19:53:55.428 D [logger.go:254] build version v0.8.4, available v0.8.4
2021-08-18 19:53:55.430 D [logger.go:254] no updated version available
2021-08-18 19:53:55.431 D [logger.go:254] password for /home/steve/.config/kopia/repository.config retrieved from password file
2021-08-18 19:54:17.716 D [logger.go:254] [STORAGE] ListBlobs("m")=<nil> returned 3 items and took 21.466538299s
2021-08-18 19:54:17.716 D [logger.go:254] saving 3 blobs with prefix m to cache
2021-08-18 19:54:17.719 D [logger.go:254] listed 3 index blobs with prefix m from source
2021-08-18 19:54:56.243 D [logger.go:254] finished sweeping content cache in 289.069µs and retained 0/5242880000 bytes (0 %)
2021-08-18 19:54:56.294 D [logger.go:254] finished sweeping metadata cache in 48.716153ms and retained 58133000/5242880000 bytes (1 %)
2021-08-18 19:55:56.243 D [logger.go:254] finished sweeping content cache in 191.885µs and retained 0/5242880000 bytes (0 %)
2021-08-18 19:55:56.304 D [logger.go:254] finished sweeping metadata cache in 8.982734ms and retained 58133000/5242880000 bytes (1 %)
2021-08-18 19:56:56.246 D [logger.go:254] finished sweeping content cache in 394.734µs and retained 0/5242880000 bytes (0 %)
2021-08-18 19:56:56.317 D [logger.go:254] finished sweeping metadata cache in 11.840742ms and retained 58133000/5242880000 bytes (1 %)
2021-08-18 19:57:56.246 D [logger.go:254] finished sweeping content cache in 208.941µs and retained 0/5242880000 bytes (0 %)
2021-08-18 19:57:56.326 D [logger.go:254] finished sweeping metadata cache in 7.48465ms and retained 58133000/5242880000 bytes (1 %)
2021-08-18 19:58:26.230 D [logger.go:254] [STORAGE] ListBlobs("n")=<nil> returned 45 items and took 4m29.982880332s
2021-08-18 19:58:26.231 D [logger.go:254] saving 45 blobs with prefix n to cache
2021-08-18 19:58:26.233 D [logger.go:254] listed 45 index blobs with prefix n from source
2021-08-18 19:58:26.275 D [logger.go:254] [STORAGE] GetBlob("m6fe5e244e81ebd414acff166a9307edf",0,-1)=({5057 bytes}, <nil>) took 28.704754ms
2021-08-18 19:58:26.287 D [logger.go:254] updating timestamp on /home/steve/.cache/kopia/90dd96712b38984b/metadata/mc/3757a9468a311abbce8c031b601450e.f to 2021-08-18 19:58:26.287452536 +0200 CEST m=+271.281918761
2021-08-18 19:58:26.290 D [logger.go:254] updating timestamp on /home/steve/.cache/kopia/90dd96712b38984b/metadata/me/c6a3c0e24fad126d31d336eabc10b5c.f to 2021-08-18 19:58:26.290318247 +0200 CEST m=+271.284784471
2021-08-18 19:58:26.291 D [logger.go:254] blob n65d4a7a4e8219269e3b435754cd48e92 referenced by compaction log is not found
2021-08-18 19:58:26.297 D [logger.go:254] downloading 3 new index blobs (372061 bytes)...
2021-08-18 19:58:26.332 D [logger.go:254] [STORAGE] GetBlob("n3cd96cbbc4ab283ce6bf79dfcb80bef6-sa7ed0f938cd7a661107",0,-1)=({20134 bytes}, <nil>) took 28.908954ms
2021-08-18 19:58:26.342 D [logger.go:254] [STORAGE] GetBlob("nc7d006b2d0fb939f76d3ec13b6ec4bd4-sbe8a2f6247e0e643107",0,-1)=({159 bytes}, <nil>) took 38.803083ms
2021-08-18 19:58:26.469 D [logger.go:254] [STORAGE] GetBlob("n0be7699b3b9046db58c884dce44e0b87",0,-1)=({351768 bytes}, <nil>) took 133.159187ms
2021-08-18 19:58:26.505 D [logger.go:254] Index contents downloaded.
2021-08-18 19:58:26.519 D [logger.go:254] combined 6 into 6 index segments
2021-08-18 19:58:26.523 D [logger.go:254] removing unused n0045f0d4e8a9155b8d61979ad296f0f8-scec216cb7369952b107.sndx 2021-08-18 17:41:23.608507626 +0200 CEST
2021-08-18 19:58:26.523 D [logger.go:254] removing unused n30f8bed4ed149661669f9ff99cc7d8ad-s7fe3ed801d2a820e107.sndx 2021-08-18 17:30:46.880897652 +0200 CEST
2021-08-18 19:58:26.524 D [logger.go:254] removing unused n7904c62e253a585b009156cea1dfb0d1.sndx 2021-08-18 17:30:47.32489025 +0200 CEST
2021-08-18 19:58:26.524 D [logger.go:254] removing unused n5d85ca46b65c90c0572e86430ee5a767-s1a377b9fecc45679107.sndx 2021-08-18 17:30:47.15689305 +0200 CEST
2021-08-18 19:58:26.524 D [logger.go:254] removing unused n9bccb80eccbc60086fcdff4420f34a3e-s1b336a16aa83d10f107.sndx 2021-08-18 17:30:47.436888382 +0200 CEST
2021-08-18 19:58:26.525 D [logger.go:254] removing unused n9d0cb743cb50b0d010eec7f3c5812a95-s936e573491b37855107.sndx 2021-08-18 17:30:47.432888449 +0200 CEST
2021-08-18 19:58:26.525 D [logger.go:254] removing unused n452936990575d598bda8d1f68e89dc1f-s859f27a99feb3554107.sndx 2021-08-18 17:30:46.880897652 +0200 CEST
2021-08-18 19:58:26.526 D [logger.go:254] removing unused n70e966d959eb5d1bc432305804f0ba15-s23a78f3765737df6107.sndx 2021-08-18 17:30:46.016912056 +0200 CEST
2021-08-18 19:58:26.526 D [logger.go:254] removing unused n974677f4c9454c4c10e76d1f5cbb33fb-sa1dde7799b15b2a2107.sndx 2021-08-18 17:30:46.392905788 +0200 CEST
2021-08-18 19:58:26.526 D [logger.go:254] removing unused n0f91d2a079ed0be61fa72fb129bbeddf-sae1aec03afc9d074107.sndx 2021-08-18 17:30:46.148909855 +0200 CEST
2021-08-18 19:58:26.526 D [logger.go:254] removing unused nb4c6a498c38c5e0ae2453f1e03ea2e9b-sc32ad59859a5e8d2107.sndx 2021-08-18 17:30:46.312907121 +0200 CEST
2021-08-18 19:58:26.527 D [logger.go:254] removing unused nd97243ebd450b4714251f1fa81a12793-sbc23bfee57b3d074107.sndx 2021-08-18 17:30:46.896897385 +0200 CEST
2021-08-18 19:58:26.527 D [logger.go:254] removing unused ne28b107a63140f1198d5c89c968c564a-scb43c93ed7ff60b2107.sndx 2021-08-18 17:41:23.648507135 +0200 CEST
2021-08-18 19:58:26.527 D [logger.go:254] removing unused n167747e728408a806820fafcae7b269f-se78e1f237bde8cce107.sndx 2021-08-18 17:30:47.580885981 +0200 CEST
2021-08-18 19:58:26.528 D [logger.go:254] removing unused n1edac404faf4cc9a987ff7bbf312343a-s03aa88c346d267bf107.sndx 2021-08-18 17:30:47.112893784 +0200 CEST
2021-08-18 19:58:26.533 D [logger.go:254] removing unused n31c0a6dfd9fe06eff5f7f37094327ea0-s447724627af1af92107.sndx 2021-08-18 17:30:47.760882981 +0200 CEST
2021-08-18 19:58:26.533 D [logger.go:254] removing unused n87337cd8e78571a1f4012e0c41262436-s6d127163dc5ad5ca107.sndx 2021-08-18 17:30:46.364906254 +0200 CEST
2021-08-18 19:58:26.533 D [logger.go:254] removing unused nd509339b4a089bc44ab0396a85ac751c-s4b72e77568e2eb1e107.sndx 2021-08-18 17:30:47.196892384 +0200 CEST
2021-08-18 19:58:26.533 D [logger.go:254] removing unused n6195042f9ef2d8a109e66d6b36d04836-s8244f56d2e6e00a8107.sndx 2021-08-18 17:30:46.196909055 +0200 CEST
2021-08-18 19:58:26.533 D [logger.go:254] removing unused n7ce260a2b5ffd62864b8f8bc736252fe-s5fbdb09772e97feb107.sndx 2021-08-18 17:30:46.028911856 +0200 CEST
2021-08-18 19:58:26.533 D [logger.go:254] removing unused n8d8d31f1b796366a4810aa7cdcc255cf-sc39db22371c51308107.sndx 2021-08-18 17:41:23.41251003 +0200 CEST
2021-08-18 19:58:26.534 D [logger.go:254] removing unused n0552c5314cf960ebf91369b4ab12379c-sbf77458ce7608502107.sndx 2021-08-18 17:30:47.428888516 +0200 CEST
2021-08-18 19:58:26.534 D [logger.go:254] removing unused n2b4fe52768dd210d12c5247a20249228-sce760dc68002180f107.sndx 2021-08-18 17:30:46.58890252 +0200 CEST
2021-08-18 19:58:26.534 D [logger.go:254] removing unused n677b57d087bcaf42f4288c10642d5f64-s3cd16d9724f27e6b107.sndx 2021-08-18 17:30:47.680884314 +0200 CEST
2021-08-18 19:58:26.534 D [logger.go:254] removing unused n778964aab6cf8b9acc8b6722acae7988-s7ef6437f1e767e67107.sndx 2021-08-18 17:30:47.428888516 +0200 CEST
2021-08-18 19:58:26.534 D [logger.go:254] removing unused n16cae66cc81669adaafe2a3c203474d1-sc26d136a7e760cc1107.sndx 2021-08-18 17:30:46.700900653 +0200 CEST
2021-08-18 19:58:26.534 D [logger.go:254] removing unused n3787763970e2d81c3ed2195250aedca5-s39474d94d65170a8107.sndx 2021-08-18 17:30:46.848898185 +0200 CEST
2021-08-18 19:58:26.535 D [logger.go:254] listing manifest contents
2021-08-18 19:58:26.675 D [logger.go:254] [STORAGE] GetBlob("qe98eb1800a2279a16b16d742e0da4c2c-s6c1456c159765673107",0,-1)=({4319 bytes}, <nil>) took 79.251768ms
2021-08-18 19:58:26.717 D [logger.go:254] [STORAGE] GetBlob("q6e49d67917af9d07bd6911f5407ae9b4-s4e977fdacd1f8af6107",0,-1)=({168345 bytes}, <nil>) took 121.190853ms
2021-08-18 19:58:26.745 D [logger.go:254] [STORAGE] GetBlob("q3246b18d0e503525d2e8567552ada843-s187ec56dbe6f2e85107",0,-1)=({26219 bytes}, <nil>) took 149.139046ms
2021-08-18 19:58:26.772 D [logger.go:254] [STORAGE] GetBlob("q1fbdc3a94c22ab6c12062350a946a24e-s7ca27f789fdcf7da107",0,-1)=({4282 bytes}, <nil>) took 94.416399ms
2021-08-18 19:58:26.781 D [logger.go:254] [STORAGE] GetBlob("qc0c8bcac8b327282fafcc4506a5d80d5-s191538e03c11e466107",0,-1)=({4282 bytes}, <nil>) took 184.654684ms
2021-08-18 19:58:26.817 D [logger.go:254] [STORAGE] GetBlob("q470927153e125846dc196bc7ac7005b4-sbe8a2f6247e0e643107",0,-1)=({4282 bytes}, <nil>) took 209.37695ms
2021-08-18 19:58:26.819 I [logger.go:244] Setting policy for steve@pi:/media/steve/O2-4TB-ext4/timeshift/snapshots/global
2021-08-18 19:58:26.820 I [logger.go:244] - setting snapshot times to [2:00]
2021-08-18 19:58:26.904 D [logger.go:254] [STORAGE] PutBlob("s6db8dd2e72fa77b7a7817ff361711290-sd89ff28cbf77cb17107",len=197)=<nil> took 80.717817ms
2021-08-18 19:58:26.963 D [logger.go:254] [STORAGE] PutBlob("qefcda4d6c7f3fdaf605ff90202623d37-sd89ff28cbf77cb17107",len=4282)=<nil> took 37.204017ms
2021-08-18 19:58:26.979 D [logger.go:254] [STORAGE] PutBlob("n70a661cedf10d32b21c8039798d7ec72-sd89ff28cbf77cb17107",len=159)=<nil> took 15.547366ms
2021-08-18 19:58:26.979 D [logger.go:254] [STORAGE] GetMetadata("n70a661cedf10d32b21c8039798d7ec72-sd89ff28cbf77cb17107")=({n70a661cedf10d32b21c8039798d7ec72-sd89ff28cbf77cb17107 159 2021-08-18 19:58:26.972894748 +0200 CEST}, <nil>) took 40.259µs
2021-08-18 19:58:26.980 D [logger.go:254] [STORAGE] DeleteBlob("s6db8dd2e72fa77b7a7817ff361711290-sd89ff28cbf77cb17107")=<nil> took 295.143µs
2021-08-18 19:58:26.981 D [logger.go:254] not closing shared manager, remaining = 1
2021-08-18 19:58:26.983 D [logger.go:254] listing manifest contents
2021-08-18 19:58:26.986 D [logger.go:254] [STORAGE] GetBlob("qefcda4d6c7f3fdaf605ff90202623d37-sd89ff28cbf77cb17107",0,-1)=({4282 bytes}, <nil>) took 350.235µs
2021-08-18 19:58:26.994 D [logger.go:254] not closing shared manager, remaining = 1
2021-08-18 19:58:26.995 D [logger.go:254] closing shared manager
2021-08-18 19:58:27.004 D [logger.go:254] finished sweeping metadata cache in 8.212583ms and retained 58726129/5242880000 bytes (1 %)
2021-08-18 19:58:27.004 D [logger.go:254] [STORAGE] Close()=<nil> took 593ns
2021-08-18 19:58:27.007 D [logger.go:254] in use heap 3694592 (delta 3694592 max 0) stack 622592 (delta 622592 max 0)
Meanwhile, while running the above commands, I benchmarked the directory which holds the Kopia repository:
# Random read benchmark. Note: a minute earlier, this was 4 MiB/s; again, the system is somewhat busy.
--- /tank/--- Backups/Kopia (zfs pool/steve 6.27 TiB) ioping statistics ---
837 requests completed in 3.01 s, 3.27 MiB read, 277 iops, 1.09 MiB/s
generated 838 requests in 3.02 s, 3.27 MiB, 277 iops, 1.09 MiB/s
min/avg/max/mdev = 14.3 us / 3.60 ms / 168.2 ms / 17.0 ms
# Linear write benchmark:
$ ioping -RLW -- '/tank/--- Backups/Kopia'
--- /tank/--- Backups/Kopia (zfs pool/steve 6.27 TiB) ioping statistics ---
213 requests completed in 23.2 s, 53.2 MiB written, 9 iops, 2.29 MiB/s
generated 214 requests in 23.2 s, 53.5 MiB, 9 iops, 2.30 MiB/s
min/avg/max/mdev = 235.8 us / 108.9 ms / 23.1 s / 1.58 s
[Probably not relevant, but I do notice that on the bottom line, there was apparently one write which took 23 seconds! When I ran it again, the bottom line read min/avg/max/mdev = 198.6 us / 478.3 us / 2.23 s / 23.2 ms
. I don’t know whether this is related to the Kopia slowness, but regardless, Kopia’s commands are running faaaaar slower than anything else on either system.]
Note: I ran the same commands both with and without “sudo ionice -c 1 nice -n -10” in front. This causes them to run with “realtime” I/O priority and high CPU priority.