Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1563727
| From | "Jason A. Donenfeld" <Jason@zx2c4.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/2] random: use chacha20 for get_random_int/long |
| Date | 2017-01-20 16:50 +0100 |
| Message-ID | <t1JBT-CL-5@gated-at.bofh.it> (permalink) |
| References | <sWHAK-5Op-5@gated-at.bofh.it> <t0QvM-7Ve-13@gated-at.bofh.it> <t1zVU-36K-1@gated-at.bofh.it> <t1Imu-8mw-37@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, Jan 20, 2017 at 3:28 PM, Theodore Ts'o <tytso@mit.edu> wrote:
> Compare that to the fact that you're wasting up to 66% of the
> generated words in the batched entropy array, and certainly on average
> you're wasting CPU cycles, even if you are reducing the cost of
> calling get_random_u{32,64} by a handful of cycles....
What do you mean? Nothing is wasted right now. The u64 function only
gets u64s from a dedicated u64 array. The u32 function only gets u32s
from a dedicated u32 array. There are separate batched entropy arrays
for each function.
Perfect respect of alignment rules. Perfect cache line
characteristics. Most optimal instructions used. Zero bytes of entropy
wasted. Clean C code.
Unless I'm misunderstanding your emails, can you please give the
original patch another read?
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH 1/2] random: use chacha20 for get_random_int/long Theodore Ts'o <tytso@mit.edu> - 2017-01-18 06:00 +0100
Re: [PATCH 1/2] random: use chacha20 for get_random_int/long "Jason A. Donenfeld" <Jason@zx2c4.com> - 2017-01-20 06:30 +0100
Re: [PATCH 1/2] random: use chacha20 for get_random_int/long Theodore Ts'o <tytso@mit.edu> - 2017-01-20 15:30 +0100
Re: [PATCH 1/2] random: use chacha20 for get_random_int/long "Jason A. Donenfeld" <Jason@zx2c4.com> - 2017-01-20 16:40 +0100
Re: [PATCH 1/2] random: use chacha20 for get_random_int/long "Jason A. Donenfeld" <Jason@zx2c4.com> - 2017-01-21 01:20 +0100
Re: [PATCH 1/2] random: use chacha20 for get_random_int/long Theodore Ts'o <tytso@mit.edu> - 2017-01-21 01:20 +0100
Re: [PATCH 1/2] random: use chacha20 for get_random_int/long "Jason A. Donenfeld" <Jason@zx2c4.com> - 2017-01-20 16:50 +0100
Re: [PATCH 1/2] random: use chacha20 for get_random_int/long Theodore Ts'o <tytso@mit.edu> - 2017-01-21 01:20 +0100
Re: [PATCH 1/2] random: use chacha20 for get_random_int/long "Jason A. Donenfeld" <Jason@zx2c4.com> - 2017-01-21 01:50 +0100
Re: [PATCH 1/2] random: use chacha20 for get_random_int/long Theodore Ts'o <tytso@mit.edu> - 2017-01-21 07:30 +0100
Re: [PATCH 1/2] random: use chacha20 for get_random_int/long "Jason A. Donenfeld" <Jason@zx2c4.com> - 2017-01-21 15:10 +0100
Re: [PATCH 1/2] random: use chacha20 for get_random_int/long Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-01-22 12:30 +0100
Re: [PATCH 1/2] random: use chacha20 for get_random_int/long "Jason A. Donenfeld" <Jason@zx2c4.com> - 2017-01-22 13:30 +0100
Re: [PATCH 1/2] random: use chacha20 for get_random_int/long Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-01-22 16:30 +0100
[PATCH 1/2] random: use chacha20 for get_random_int/long "Jason A. Donenfeld" <Jason@zx2c4.com> - 2017-01-22 16:40 +0100
[PATCH 2/2] random: convert get_random_int/long into get_random_u32/u64 "Jason A. Donenfeld" <Jason@zx2c4.com> - 2017-01-22 16:40 +0100
Re: [PATCH 1/2] random: use chacha20 for get_random_int/long Theodore Ts'o <tytso@mit.edu> - 2017-01-22 23:30 +0100
Re: [PATCH 1/2] random: use chacha20 for get_random_int/long "Jason A. Donenfeld" <Jason@zx2c4.com> - 2017-01-22 23:50 +0100
Re: [PATCH 1/2] random: use chacha20 for get_random_int/long Theodore Ts'o <tytso@mit.edu> - 2017-01-23 01:40 +0100
Re: [PATCH 1/2] random: use chacha20 for get_random_int/long Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-01-23 09:20 +0100
csiph-web