ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Leonid Krivoshein <klark.devel@gmail.com>
To: devel@lists.altlinux.org
Subject: Re: [devel] Аппаратный AES и наш p7zip
Date: Sun, 26 Apr 2020 12:55:32 +0300
Message-ID: <c2da1d09-20fa-645d-673f-b518de1d9ecf@gmail.com> (raw)
In-Reply-To: <eee9d35e-a6e7-4a1c-6dca-488aad2889c4@altlinux.org>


22.04.2020 23:09, Andrey Cherepanov пишет:
>
> cas ~ # lscpu | grep -ow aes
> aes
> cas ~ # 7z b -mm=AES256CBC:2
>
> 7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
> p7zip Version 16.02 (locale=ru_RU.UTF-8,Utf16=on,HugeFiles=on,64 
> bits,4 CPUs x64)
>
> x64
> CPU Freq: 64000000 - - 64000000 - - - - -
>
> RAM size:    3833 MB,  # CPU hardware threads:   4
> RAM usage:    882 MB,  # Benchmark threads:      4
>
>                        Compressing  | Decompressing
> Dict     Speed Usage    R/U Rating  |      Speed Usage R/U Rating
>          KiB/s     %   MIPS   MIPS  |      KiB/s     % MIPS   MIPS
>
> 22:
>
>
> System ERROR:
> E_NOTIMPL
>
> # lsmod | grep aes
> aesni_intel           372736  10
> crypto_simd            16384  1 aesni_intel
> glue_helper            16384  1 aesni_intel
>
> Кто может пояснить, почему у нас этот тест не срабатывает?
>

По-моему, потому что надо использовать третий, а не второй на этом железе:

AES256CBC:1 - software AES
AES256CBC:2 - hardware AES-NI supported by most modern CPUs
AES256CBC:3 - hardware VAES (Vector AES) supported only by new Intel Ice 
Lake


$ 7z b -mm=AES256CBC:2

7-Zip [64] 15.09 beta : Copyright (c) 1999-2015 Igor Pavlov : 2015-10-16
p7zip Version 15.09 beta (locale=ru_RU.utf8,Utf16=on,HugeFiles=on,64 
bits,8 CPUs x64)

x64
CPU Freq:  2542  2781  3024  3280  3380  3377  3373  3359  3173

RAM size:   32051 MB,  # CPU hardware threads:   8
RAM usage:   1701 MB,  # Benchmark threads:      8

                        Compressing  |                  Decompressing
Dict     Speed Usage    R/U Rating  |      Speed Usage    R/U Rating
          KiB/s     %   MIPS   MIPS  |      KiB/s     %   MIPS   MIPS

22:


System ERROR:
E_NOTIMPL

$ 7z b -mm=AES256CBC:3

7-Zip [64] 15.09 beta : Copyright (c) 1999-2015 Igor Pavlov : 2015-10-16
p7zip Version 15.09 beta (locale=ru_RU.utf8,Utf16=on,HugeFiles=on,64 
bits,8 CPUs x64)

x64
CPU Freq:  2533  2776  2996  3313  3296  3370  3364  3326  3295

RAM size:   32051 MB,  # CPU hardware threads:   8
RAM usage:   1701 MB,  # Benchmark threads:      8

                        Compressing  |                  Decompressing
Dict     Speed Usage    R/U Rating  |      Speed Usage    R/U Rating
          KiB/s     %   MIPS   MIPS  |      KiB/s     %   MIPS   MIPS

22:     920054   795   2842  22611  |     893816   783   2805  21966
23:     867794   796   2680  21327  |     857621   781   2699  21077
24:     819505   774   2603  20140  |     839577   786   2626  20633
25:     817169   783   2564  20083  |     837326   792   2597  20578
----------------------------------  | ------------------------------
Avr:             787   2672  21040  |              786   2682  21064
Tot:             786   2677  21052

$  lscpu | grep -ow aes
aes




-- 
Best regards,
Leonid Krivoshein.



  parent reply	other threads:[~2020-04-26  9:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-22 22:48 ` Alexey V. Vissarionov
2020-04-23  5:36   ` Andrey Cherepanov
2020-04-23  5:57     ` Alexey V. Vissarionov
2020-04-26  9:55 ` Leonid Krivoshein [this message]
2020-04-26 11:45   ` Alexey V. Vissarionov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c2da1d09-20fa-645d-673f-b518de1d9ecf@gmail.com \
    --to=klark.devel@gmail.com \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git