Gentoo Archives: gentoo-dev

From: Joshua Kinard <kumba@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Manifest2 hashes, take n+1-th: 3 hashes for the tie-breaker case
Date: Mon, 13 Nov 2017 04:29:11
Message-Id: 1ba24f4a-393f-677e-58e6-539e7a3bf23d@gentoo.org
In Reply to: Re: [gentoo-dev] Manifest2 hashes, take n+1-th: 3 hashes for the tie-breaker case by Gordon Pettey
1 On 11/12/2017 22:48, Gordon Pettey wrote:
2 > On Sun, Nov 12, 2017 at 8:22 PM, Joshua Kinard <kumba@g.o> wrote:
3 >
4 >> Minor clarification, old single core //and// uni-processor. Some older
5 >> machines have multiple physical CPUs that are single-core. Threading
6 >> should be
7 >> okay on these, as long as the thread count stays under NR_CPUS.
8 >>
9 >> I also have a really old single-CPU system, MIPS (obviously). Not the
10 >> fastest
11 >> on the block compared to the other equipment I've got, but does anyone
12 >> know of
13 >> any simple timing scripts/programs available that can benchmark some of
14 >> these
15 >> proposed digest hashes? If they turn out to be reasonably quick on my old
16 >> machine, I doubt then that speed will be too much of an issue.
17 >>
18 >
19 > Even on your "old single-CPU MIPS" system, what percentage of time is
20 > spent verifying manifest hashes compared to actually building/installing?
21 > The whole "slow and/or multiple hashes will cause problems" argument
22 > seems specious.
23
24 It appears that you have misread my inquiry quite severely. I am not terribly
25 interested in the whole argument of "multiple hashes" or "slow hashes". It's
26 just my curiosity wanting to know if there's a reliable way to benchmark, on
27 the command line, several common/known digest hashing algorithms. For my MIPS
28 systems, the type of CPU and system architecture is very different between each
29 machine. Being able to compare between each of them might have uses down the road.
30
31 But also having a rough idea of how the actual hashes perform might also be of
32 use to the discussion. Only to enlighten, not to push a particular side.
33
34 --
35 Joshua Kinard
36 Gentoo/MIPS
37 kumba@g.o
38 6144R/F5C6C943 2015-04-27
39 177C 1972 1FB8 F254 BAD0 3E72 5C63 F4E3 F5C6 C943
40
41 "The past tempts us, the present confuses us, the future frightens us. And our
42 lives slip away, moment by moment, lost in that vast, terrible in-between."
43
44 --Emperor Turhan, Centauri Republic