Tuesday, August 09, 2022

Re: dump(8) is slow

Tomasz Rola <rtomek@ceti.pl> 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
> 524288+0 records in
> 524288+0 records out
> 536870912 bytes (537 MB, 512 MiB) copied, 2,06702 s, 260 MB/s
> 1660089699
>
> I tried it with reading first 512 megs, for you, since you want to
> deal with terabytes, count= would need to be adjusted, say, 100 gigs?
>
> Reasoning: the specification for sata says one thing, but it says
> theoretical upper speed, if I am correct. So you want to know about
> real speed limit of _this_ device.

Bravo, you tested the speed at 1024 bytes of data per system call.

No comments:

Post a Comment