Re:Frivpn – A multi-threaded OpenVPN client
by beagle3 on Tuesday February 20, 2018 @08:22AM
(#16420078)
Most of this single core improvement, if I understand correctly, comes speculative execution and larger caches (rather than shorter pipelines), which -- in the context of crypto -- means that implementations go to great length to avoid the features that speed up execution, specifically BECAUSE they leak information.
Re:Frivpn – A multi-threaded OpenVPN client
by krylon on Tuesday February 20, 2018 @10:02AM
(#16420796)
Fair point.
Now, I know just enough about cryptography to know I know nearly nothing about it, so maybe someone can put this into context: Wouldn't a multi threaded crypto implementation open up a whole bunch of new potential attacks?
Re:Frivpn – A multi-threaded OpenVPN client
by ktpsns on Tuesday February 20, 2018 @03:51PM
(#16424081)
Good argument, but it is probably limited to the x86 architecture (and its contemporary grandchildren). In contrast, the OP explicitely mentions the Raspberry PI with its ARM CPU. This kind of RISC chips (more or less) secretly took over the world since virtually all mobile devices are equipped with such a SoC. It is common knowledge that these CPUs don't deliver the single core power of a desktop CPU but nevertheless parallelize. Without doubt it is worth in getting crypto fast(er) on such devices.
Re:Frivpn – A multi-threaded OpenVPN client
by krylon on Wednesday February 21, 2018 @04:26AM
(#16428097)
Fair point, I had not considered ARM and other low-power CPUs.
My first multi-core machine was an Athlon64 X2 with two cores running at 2GHz. Today, my work laptop (ThinkPad L540) has a dual-core CPU (plus 2-way SMT) running at 2.6 GHz (3.2 GHz with TurboBost). But single-core performance has improved notably. Not as much as was common in the 1990s, but still. And for most desktop systems[1] more than two or four cores seem to be pointless, anyway, since they will sit idle most of the time.
[1] I am not talking about developer workstations, CAD machines or other high-end use cases, but the kind of machine where some office drone runs Outlook, Excel, and a web browser.