From f97a75958e2e1bfddd124bd9eeedbb7ece36434f Mon Sep 17 00:00:00 2001 From: tiyn Date: Fri, 21 Feb 2025 05:53:40 +0100 Subject: [PATCH] linux disk management: added read and write benchmarks --- wiki/linux/disk-management.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/wiki/linux/disk-management.md b/wiki/linux/disk-management.md index 4ac0078..ee0c36c 100644 --- a/wiki/linux/disk-management.md +++ b/wiki/linux/disk-management.md @@ -8,6 +8,24 @@ are separate entries. This section focusses on various usages for disk management related topics. +### Benchmarking Data Transfer Rates + +Real data transfer rates can easily be checked using the program `pv`. +The following command will create a file on the target drive and show the data transfer rate while +writing. +In the following case `/mnt/usb1/tmp` is the path of the target file. + +```sh +cat /dev/zero | pv > /mnt/usb1/tmp +``` + +After this the read speed can be checked by using the just created temporary file. +The following command will display the read speed. + +```sh +cat /mnt/usb1/tmp | pv > /dev/zero +``` + ### Universally Unique identifier Universally Unique identifier (UUID) are identifiers for informations on