-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I was running a backup job, and I timed it. The output is weird: (here some other times out of the screen, about 3 minute total) real 161m35.208s user 216m2.220s sys 36m30.599s real 10m27.555s user 14m33.090s sys 2m37.550s real 11m7.647s user 14m39.255s sys 1m55.313s total real 184m27.589s user 247m7.060s sys 41m20.225s Now, how can be the "real" time less than the user time? I don't remember seeing it before. It is happening on a new 15.2 install. Perhaps the sum of times on the two cores of the machine? In case the job is relevant, it is this: function hacer() { echo echo "Haciendo la particion $1 ($2) en $3" echo "copiando, comprimiendo, y calculando md5..." mkfifo mdpipe dd if=/dev/$1 status=progress bs=16M | tee mdpipe | pigz > $3.gz & md5sum -b mdpipe | tee -a md5checksum_expanded wait rm mdpipe echo "$3" >> md5checksum_expanded echo "Verificando..." pigz --test $3.gz echo echo "·········" } echo time hacer sda3 "161M" "sda3__Windows" echo time hacer sda4 "10M" "sda4__LENOVO" echo time hacer sda6 "11M" "sda6__LENOVO_PART" - -- Cheers Carlos E. R. (from 15.2 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCYaFeeRwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVZN8An3+T7XOnkPIYam64elLm zJIX5os5AJ9KGI+o0AZluPSZH1PhNsq5ds+JiQ== =MLSm -----END PGP SIGNATURE-----
On 27.11.2021 01:23, Carlos E. R. wrote:
Hi,
I was running a backup job, and I timed it. The output is weird:
(here some other times out of the screen, about 3 minute total)
real 161m35.208s user 216m2.220s sys 36m30.599s
real 10m27.555s user 14m33.090s sys 2m37.550s
real 11m7.647s user 14m39.255s sys 1m55.313s
total
real 184m27.589s user 247m7.060s sys 41m20.225s
Now, how can be the "real" time less than the user time?
Your program is multi-threaded or multi-tasked and runs on multiple CPU concurrently.
dd if=/dev/$1 status=progress bs=16M | tee mdpipe | pigz > $3.gz &
At least pigz is multithreaded as far as I remember.
On 27/11/2021 07.42, Andrei Borzenkov wrote:
On 27.11.2021 01:23, Carlos E. R. wrote:
Hi,
I was running a backup job, and I timed it. The output is weird:
(here some other times out of the screen, about 3 minute total)
real 161m35.208s user 216m2.220s sys 36m30.599s
real 10m27.555s user 14m33.090s sys 2m37.550s
real 11m7.647s user 14m39.255s sys 1m55.313s
total
real 184m27.589s user 247m7.060s sys 41m20.225s
Now, how can be the "real" time less than the user time?
Your program is multi-threaded or multi-tasked and runs on multiple CPU concurrently.
dd if=/dev/$1 status=progress bs=16M | tee mdpipe | pigz > $3.gz &
At least pigz is multithreaded as far as I remember.
Yes, it is. Ok, so the time of two threads. I see. Thanks. -- Cheers / Saludos, Carlos E. R. (from 15.2 x86_64 at Telcontar)
participants (2)
-
Andrei Borzenkov
-
Carlos E. R.