Re: dump(8) is slow

2022-08-11 Thread Christian Weisgerber
On 2022-08-10, Tomasz Rola wrote: >> DUMP: Date this dump completed: Tue Aug 9 13:51:01 2022 >> DUMP: Average transfer rate: 36530 KB/s >> >> That is far below the read-write speed of a modern SATA drive. > > Ok. But what is a theoretic speed limit for this device? The data sheet claims

Re: dump(8) is slow

2022-08-10 Thread Tomasz Rola
On Tue, Aug 09, 2022 at 07:06:04PM -0600, Theo de Raadt wrote: > Tomasz Rola wrote: > > > Ok. But what is a theoretic speed limit for this device? > > [...] > > Bravo, you tested the speed at 1024 bytes of data per system call. The OP complained his dump was slow. I was wondering if it was

Re: dump(8) is slow

2022-08-09 Thread Theo de Raadt
Tomasz Rola wrote: > Ok. But what is a theoretic speed limit for this device? > > If I do something like this on my laptop w/ssd: > > # date +'%s'; dd if=/dev/sda2 of=/dev/null bs=1024 count=$((512*1024)); > date +'%s' > 1660089697 > 521565184 bytes (522 MB, 497 MiB) copied, 2 s, 261 MB/s >

Re: dump(8) is slow

2022-08-09 Thread Tomasz Rola
On Tue, Aug 09, 2022 at 02:21:21PM +0200, Christian Weisgerber wrote: > Moving 9TB with dump|restore from an old hard disk to a bigger one > reminded me again that dump(8) is, well, slow: > > DUMP: 9104433830 tape blocks > DUMP: Date of this level 0 dump: Sat Aug

Re: dump(8) is slow

2022-08-09 Thread gwes
On 8/9/22 18:28, gwes wrote: On 8/9/22 13:14, Christian Weisgerber wrote: Kenneth Gober: Are you certain that dump(8) is the big bottleneck here?  My recollection is that restore(8) is significantly slower, so of course if restore(8) is systat's default vmstat display shows you the

Re: dump(8) is slow

2022-08-09 Thread gwes
On 8/9/22 13:14, Christian Weisgerber wrote: Kenneth Gober: Are you certain that dump(8) is the big bottleneck here? My recollection is that restore(8) is significantly slower, so of course if restore(8) is systat's default vmstat display shows you the time spend in disk accesses.

Re: dump(8) is slow

2022-08-09 Thread Christian Weisgerber
Kenneth Gober: > Are you certain that dump(8) is the big bottleneck here? My recollection > is that restore(8) is significantly slower, so of course if restore(8) is systat's default vmstat display shows you the time spend in disk accesses. Typical figures during the dump-restore run were 1.0

Re: dump(8) is slow

2022-08-09 Thread Kenneth Gober
On Tue, Aug 9, 2022 at 8:25 AM Christian Weisgerber wrote: > Moving 9TB with dump|restore from an old hard disk to a bigger one > reminded me again that dump(8) is, well, slow: > > DUMP: 9104433830 tape blocks > DUMP: Date of this level 0 dump: Sat Aug 6 16:36:52 2022 >

dump(8) is slow

2022-08-09 Thread Christian Weisgerber
Moving 9TB with dump|restore from an old hard disk to a bigger one reminded me again that dump(8) is, well, slow: DUMP: 9104433830 tape blocks DUMP: Date of this level 0 dump: Sat Aug 6 16:36:52 2022 ... DUMP: Date this dump completed: Tue Aug 9 13:51:01 2022 DUMP: Average transfer