Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Aug 2013 17:14:08 +0900
From:      Chie Taguchi <taguchi.ch@gmail.com>
To:        Tim Kientzle <tim@kientzle.com>
Cc:        Guillaume Bibaut <yom@iaelu.net>, freebsd-arm@freebsd.org
Subject:   Re: building document of Xorg
Message-ID:  <3D90F8CB-14A3-4E9F-AE5A-E970E76AEA5F@gmail.com>
In-Reply-To: <EE342965-2CDF-4074-A645-B64D34B6F7DC@kientzle.com>
References:  <20130818101242.b3801b1b97dbe42cb905653c@gmail.com> <0D701E6E-8DE0-45DE-854B-133FCCC35C79@iaelu.net> <20130818212508.beddbf0e04a2f5f9a3a699a1@gmail.com> <20130819220401.11acd306a94e60a87d6424c9@gmail.com> <EE342965-2CDF-4074-A645-B64D34B6F7DC@kientzle.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_E012D13E-7556-4CCA-85F2-4E4026B41EDF
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

i try to build both type libgcrypt, and run libcrypt's tests/benchmark =
app.

uname -a
FreeBSD raspberry-pi 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Tue Aug 13 =
03:22:23 JST 2013 =
user@PC:/usr/home/user/crochet-freebsd/work/obj/arm.armv6/usr/src.arm/sys/=
RPI-B-ELY arm

this is a part of result,
---------------------------
USE_GCC=3D4.2:

MD5          234375ms 625000ms 3984375ms 546875ms 156250ms
SHA1         546875ms 781250ms 4218750ms 859375ms 468750ms
RIPEMD160    468750ms 859375ms 4140625ms 859375ms 468750ms
TIGER192     1093750ms 1484375ms 5156250ms 1328125ms 1171875ms
SHA256       781250ms 1484375ms 5000000ms 1171875ms 781250ms
SHA384       1953125ms 3046875ms 6250000ms 2265625ms 1875000ms
SHA512       1953125ms 3046875ms 6250000ms 2265625ms 1953125ms
SHA224       781250ms 1562500ms 5000000ms 1093750ms 937500ms
MD4          78125ms 468750ms 3750000ms 546875ms 234375ms
CRC32        234375ms 234375ms 4375000ms 468750ms 312500ms
CRC32RFC1510 234375ms 156250ms 4375000ms 468750ms 390625ms
CRC24RFC2440 1171875ms 1171875ms 5625000ms 1484375ms 1250000ms
WHIRLPOOL    6484375ms 6953125ms 14843750ms 6875000ms 6562500ms
TIGER        1093750ms 1562500ms 5156250ms 1328125ms 1015625ms
TIGER2       1015625ms 1484375ms 5156250ms 1406250ms 1171875ms
----------------------------
clang without assembly code:

MD5          234375ms 468750ms 3046875ms 468750ms 390625ms
SHA1         468750ms 703125ms 3359375ms 703125ms 390625ms
RIPEMD160    468750ms 703125ms 3281250ms 625000ms 390625ms
TIGER192     703125ms 1171875ms 3828125ms 1015625ms 625000ms
SHA256       781250ms 1328125ms 4062500ms 1015625ms 781250ms
SHA384       1328125ms 2187500ms 4687500ms 1562500ms 1328125ms
SHA512       1250000ms 2187500ms 4687500ms 1562500ms 1328125ms
SHA224       703125ms 1328125ms 4062500ms 937500ms 859375ms
MD4          156250ms 468750ms 2968750ms 468750ms 234375ms
CRC32        78125ms 156250ms 2578125ms 390625ms 234375ms
CRC32RFC1510 156250ms 156250ms 2500000ms 390625ms 312500ms
CRC24RFC2440 546875ms 546875ms 2890625ms 781250ms 703125ms
WHIRLPOOL    6015625ms 6406250ms 9296875ms 6328125ms 6093750ms
TIGER        781250ms 1093750ms 3906250ms 937500ms 859375ms
TIGER2       703125ms 1171875ms 3828125ms 937500ms 859375ms
-------------------------------

-------------------------------
USE_GCC=3D4.2:

Algorithm         generate  100*sign  100*verify
------------------------------------------------
RSA 1024 bit       8593750ms   78359375ms     2187500ms
RSA 2048 bit       45546875ms   418671875ms     5625000ms
RSA 3072 bit       1337109375ms   1147109375ms     10234375ms
RSA 4096 bit       881875000ms   2457812500ms     16640625ms
DSA 1024/160             -   37343750ms     40156250ms
DSA 2048/224             -   139531250ms     132343750ms
DSA 3072/256             -   299609375ms     275390625ms
ECDSA 192 bit      3437500ms   87734375ms     157812500ms
ECDSA 224 bit      4218750ms   107187500ms     192500000ms
ECDSA 256 bit      5078125ms   126328125ms     236875000ms
ECDSA 384 bit      10078125ms   253593750ms     478984375ms
ECDSA 521 bit      24062500ms   596796875ms     1134765625ms

powm       2890625ms 7812500ms 21250000ms
random     390625ms 468750ms
---------------
clang without assembly code:

Algorithm         generate  100*sign  100*verify
------------------------------------------------
RSA 1024 bit       10000000ms   103359375ms     3125000ms
RSA 2048 bit       230468750ms   602031250ms     8437500ms
RSA 3072 bit       1168750000ms   1783750000ms     16640625ms
RSA 4096 bit       1171875000ms   3805000000ms     27109375ms
DSA 1024/160             -   50703125ms     53046875ms
DSA 2048/224             -   211640625ms     197968750ms
DSA 3072/256             -   489843750ms     439531250ms
ECDSA 192 bit      3515625ms   90390625ms     162968750ms
ECDSA 224 bit      4453125ms   111093750ms     207421875ms
ECDSA 256 bit      5468750ms   134062500ms     254296875ms
ECDSA 384 bit      11484375ms   281718750ms     528203125ms
ECDSA 521 bit      26640625ms   667500000ms     1300156250ms

powm       3671875ms 11015625ms 32031250ms
random     390625ms 234375ms
------------------------------

and i will attach both entire-result files.

Thanks,

C.Taguchi

--Apple-Mail=_E012D13E-7556-4CCA-85F2-4E4026B41EDF
Content-Disposition: attachment;
	filename=use-gcc4.2-benchmark.txt
Content-Type: text/plain;
	name="use-gcc4.2-benchmark.txt"
Content-Transfer-Encoding: quoted-printable

MD5          234375ms 625000ms 3984375ms 546875ms 156250ms
SHA1         546875ms 781250ms 4218750ms 859375ms 468750ms
RIPEMD160    468750ms 859375ms 4140625ms 859375ms 468750ms
TIGER192     1093750ms 1484375ms 5156250ms 1328125ms 1171875ms
SHA256       781250ms 1484375ms 5000000ms 1171875ms 781250ms
SHA384       1953125ms 3046875ms 6250000ms 2265625ms 1875000ms
SHA512       1953125ms 3046875ms 6250000ms 2265625ms 1953125ms
SHA224       781250ms 1562500ms 5000000ms 1093750ms 937500ms
MD4          78125ms 468750ms 3750000ms 546875ms 234375ms
CRC32        234375ms 234375ms 4375000ms 468750ms 312500ms
CRC32RFC1510 234375ms 156250ms 4375000ms 468750ms 390625ms
CRC24RFC2440 1171875ms 1171875ms 5625000ms 1484375ms 1250000ms
WHIRLPOOL    6484375ms 6953125ms 14843750ms 6875000ms 6562500ms
TIGER        1093750ms 1562500ms 5156250ms 1328125ms 1015625ms
TIGER2       1015625ms 1484375ms 5156250ms 1406250ms 1171875ms

                ECB/Stream         CBC             CFB             OFB   =
          CTR     =20
             --------------- --------------- --------------- =
--------------- ---------------
IDEA         3437500ms 3359375ms 3671875ms 3750000ms 3515625ms 3593750ms =
3593750ms 3593750ms 5468750ms 5468750ms
3DES         7343750ms 7343750ms 7734375ms 7812500ms 7578125ms 7656250ms =
7734375ms 7656250ms 9609375ms 9609375ms
CAST5        1796875ms 1875000ms 2031250ms 2109375ms 1953125ms 1953125ms =
2031250ms 2031250ms 3906250ms 3828125ms
BLOWFISH     2187500ms 2109375ms 2421875ms 2421875ms 2343750ms 2265625ms =
2421875ms 2343750ms 4218750ms 4296875ms
AES          1953125ms 1796875ms 1875000ms 1796875ms 1718750ms 1718750ms =
2265625ms 2109375ms 1718750ms 1796875ms
AES192       2187500ms 2109375ms 2187500ms 2031250ms 2031250ms 2031250ms =
2421875ms 2421875ms 2031250ms 2031250ms
AES256       2421875ms 2421875ms 2421875ms 2343750ms 2265625ms 2343750ms =
2734375ms 2656250ms 2265625ms 2265625ms
TWOFISH      1562500ms 1640625ms 1718750ms 1875000ms 1718750ms 1640625ms =
1796875ms 1718750ms 3515625ms 3515625ms
ARCFOUR      390625ms 468750ms
DES          2968750ms 3046875ms 3359375ms 3437500ms 3281250ms 3203125ms =
3281250ms 3359375ms 5156250ms 5234375ms
TWOFISH128   1562500ms 1640625ms 1796875ms 1796875ms 1718750ms 1640625ms =
1640625ms 1718750ms 3515625ms 3515625ms
SERPENT128   1875000ms 1796875ms 2109375ms 2109375ms 2031250ms 2031250ms =
1953125ms 2109375ms 3828125ms 3828125ms
SERPENT192   1875000ms 1796875ms 2109375ms 2031250ms 2031250ms 2031250ms =
2109375ms 2031250ms 3828125ms 3828125ms
SERPENT256   1875000ms 1796875ms 2109375ms 2031250ms 1953125ms 2031250ms =
2031250ms 2109375ms 3828125ms 3828125ms
RFC2268_40   2578125ms 2031250ms 2812500ms 2421875ms 2656250ms 2734375ms =
2656250ms 2734375ms 4609375ms 4609375ms
SEED         1875000ms 1875000ms 1953125ms 2187500ms 1953125ms 1953125ms =
1953125ms 2109375ms 3828125ms 3828125ms
CAMELLIA128  3359375ms 3359375ms 3593750ms 3671875ms 3515625ms 3437500ms =
3515625ms 3593750ms 5312500ms 5390625ms
CAMELLIA192  3828125ms 3828125ms 4062500ms 4140625ms 3984375ms 3984375ms =
4062500ms 3984375ms 5859375ms 5703125ms
CAMELLIA256  3828125ms 3828125ms 4062500ms 4140625ms 3984375ms 3984375ms =
4062500ms 4062500ms 5703125ms 5781250ms

Algorithm         generate  100*sign  100*verify
------------------------------------------------
RSA 1024 bit       8593750ms   78359375ms     2187500ms
RSA 2048 bit       45546875ms   418671875ms     5625000ms
RSA 3072 bit       1337109375ms   1147109375ms     10234375ms
RSA 4096 bit       881875000ms   2457812500ms     16640625ms
DSA 1024/160             -   37343750ms     40156250ms
DSA 2048/224             -   139531250ms     132343750ms
DSA 3072/256             -   299609375ms     275390625ms
ECDSA 192 bit      3437500ms   87734375ms     157812500ms
ECDSA 224 bit      4218750ms   107187500ms     192500000ms
ECDSA 256 bit      5078125ms   126328125ms     236875000ms
ECDSA 384 bit      10078125ms   253593750ms     478984375ms
ECDSA 521 bit      24062500ms   596796875ms     1134765625ms

powm       2890625ms 7812500ms 21250000ms

random     390625ms 468750ms

--Apple-Mail=_E012D13E-7556-4CCA-85F2-4E4026B41EDF
Content-Disposition: attachment;
	filename=clang-disableasm-benchmark.txt
Content-Type: text/plain;
	name="clang-disableasm-benchmark.txt"
Content-Transfer-Encoding: quoted-printable

MD5          234375ms 468750ms 3046875ms 468750ms 390625ms
SHA1         468750ms 703125ms 3359375ms 703125ms 390625ms
RIPEMD160    468750ms 703125ms 3281250ms 625000ms 390625ms
TIGER192     703125ms 1171875ms 3828125ms 1015625ms 625000ms
SHA256       781250ms 1328125ms 4062500ms 1015625ms 781250ms
SHA384       1328125ms 2187500ms 4687500ms 1562500ms 1328125ms
SHA512       1250000ms 2187500ms 4687500ms 1562500ms 1328125ms
SHA224       703125ms 1328125ms 4062500ms 937500ms 859375ms
MD4          156250ms 468750ms 2968750ms 468750ms 234375ms
CRC32        78125ms 156250ms 2578125ms 390625ms 234375ms
CRC32RFC1510 156250ms 156250ms 2500000ms 390625ms 312500ms
CRC24RFC2440 546875ms 546875ms 2890625ms 781250ms 703125ms
WHIRLPOOL    6015625ms 6406250ms 9296875ms 6328125ms 6093750ms
TIGER        781250ms 1093750ms 3906250ms 937500ms 859375ms
TIGER2       703125ms 1171875ms 3828125ms 937500ms 859375ms

                ECB/Stream         CBC             CFB             OFB   =
          CTR     =20
             --------------- --------------- --------------- =
--------------- ---------------
IDEA         2187500ms 2109375ms 2421875ms 2500000ms 2343750ms 2187500ms =
2265625ms 2343750ms 4062500ms 3984375ms
3DES         5000000ms 5000000ms 5234375ms 5312500ms 5156250ms 5156250ms =
5234375ms 5234375ms 6875000ms 6953125ms
CAST5        1562500ms 1562500ms 1875000ms 2031250ms 1640625ms 1718750ms =
1718750ms 1718750ms 3515625ms 3515625ms
BLOWFISH     1640625ms 1796875ms 2109375ms 2109375ms 1953125ms 1796875ms =
1953125ms 1953125ms 3671875ms 3671875ms
AES          1406250ms 1406250ms 1250000ms 1250000ms 1250000ms 1250000ms =
1562500ms 1640625ms 1250000ms 1250000ms
AES192       1640625ms 1484375ms 1484375ms 1406250ms 1406250ms 1406250ms =
1796875ms 1875000ms 1406250ms 1484375ms
AES256       1796875ms 1718750ms 1718750ms 1562500ms 1640625ms 1640625ms =
2031250ms 2031250ms 1640625ms 1640625ms
TWOFISH      1406250ms 1328125ms 1640625ms 1640625ms 1484375ms 1484375ms =
1562500ms 1484375ms 3203125ms 3125000ms
ARCFOUR      468750ms 390625ms
DES          2265625ms 2265625ms 2500000ms 2656250ms 2343750ms 2421875ms =
2421875ms 2500000ms 4140625ms 4140625ms
TWOFISH128   1328125ms 1406250ms 1562500ms 1640625ms 1484375ms 1562500ms =
1484375ms 1640625ms 3125000ms 3125000ms
SERPENT128   1718750ms 1640625ms 1875000ms 1875000ms 1796875ms 1796875ms =
1796875ms 1875000ms 3437500ms 3437500ms
SERPENT192   1562500ms 1562500ms 1875000ms 1875000ms 1796875ms 1796875ms =
1796875ms 1953125ms 3437500ms 3437500ms
SERPENT256   1718750ms 1562500ms 1953125ms 1875000ms 1718750ms 1718750ms =
1796875ms 1875000ms 3437500ms 3359375ms
RFC2268_40   1718750ms 2187500ms 2031250ms 2500000ms 1796875ms 1875000ms =
1953125ms 1875000ms 3593750ms 3593750ms
SEED         1406250ms 1406250ms 1640625ms 1640625ms 1562500ms 1484375ms =
1562500ms 1562500ms 3125000ms 3125000ms
CAMELLIA128  2812500ms 2734375ms 3125000ms 3125000ms 2890625ms 2890625ms =
2890625ms 2890625ms 4531250ms 4609375ms
CAMELLIA192  3046875ms 3046875ms 3281250ms 3359375ms 3203125ms 3125000ms =
3203125ms 3203125ms 4843750ms 4843750ms
CAMELLIA256  3125000ms 3046875ms 3359375ms 3359375ms 3046875ms 3203125ms =
3203125ms 3281250ms 4843750ms 4765625ms

Algorithm         generate  100*sign  100*verify
------------------------------------------------
RSA 1024 bit       10000000ms   103359375ms     3125000ms
RSA 2048 bit       230468750ms   602031250ms     8437500ms
RSA 3072 bit       1168750000ms   1783750000ms     16640625ms
RSA 4096 bit       1171875000ms   3805000000ms     27109375ms
DSA 1024/160             -   50703125ms     53046875ms
DSA 2048/224             -   211640625ms     197968750ms
DSA 3072/256             -   489843750ms     439531250ms
ECDSA 192 bit      3515625ms   90390625ms     162968750ms
ECDSA 224 bit      4453125ms   111093750ms     207421875ms
ECDSA 256 bit      5468750ms   134062500ms     254296875ms
ECDSA 384 bit      11484375ms   281718750ms     528203125ms
ECDSA 521 bit      26640625ms   667500000ms     1300156250ms

powm       3671875ms 11015625ms 32031250ms

random     390625ms 234375ms

--Apple-Mail=_E012D13E-7556-4CCA-85F2-4E4026B41EDF
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii



On 2013/08/20, at 14:26, Tim Kientzle <tim@kientzle.com> wrote:

> Here's another way to fix libgcrypt on arm.  This disables
> the GCC-specific assembly code.  I've verified that this allows
> libgcrypt to build on FreeBSD/ARM with clang.  I haven't done any
> tests so don't know whether this impacts libgcrypt
> performance or not:
>=20
> --- work/libgcrypt-1.5.3/mpi/longlong.h.orig    2013-07-25 =
09:10:04.000000000 +0000
> +++ work/libgcrypt-1.5.3/mpi/longlong.h 2013-08-19 09:59:28.000000000 =
+0000
> @@ -184,7 +184,7 @@
> /***************************************
>  **************  ARM  ******************
>  ***************************************/
> -#if defined (__arm__) && W_TYPE_SIZE =3D=3D 32
> +#if defined (__arm__) && W_TYPE_SIZE =3D=3D 32 && =
!defined(__FreeBSD__)
> #define add_ssaaaa(sh, sl, ah, al, bh, bl) \
>   __asm__ ("adds %1, %4, %5\n"                                         =
 \
>           "adc  %0, %2, %3"                                            =
\
>=20
>=20
> On Aug 19, 2013, at 6:04 AM, Chie Taguchi wrote:
>=20
>> i add security/libgcrypt(ports/181365), graphics/libGL(ports/176705) =
to repo.
>>=20
>> and i also added document about security/libgcrypt(ports/181365), =
graphics/dri(ports/176703), graphics/libGL(ports/176705).
>>=20
>> regards.
>>=20
>> C.Taguchi
>>=20
>> On Sun, 18 Aug 2013 21:25:08 +0900
>> Chie Taguchi <taguchi.ch@gmail.com> wrote:
>>=20
>>> thank you for your infomation.
>>>=20
>>> it is useful for many people to make a collection repo of ports fix =
infomation about Xorg and others.
>>>=20
>>> i will push that fixes, security/libgcrypt(ports/181365), =
graphics/dri(ports/176703), graphics/libGL(ports/176705) to repo later.
>>>=20
>>> and i also sended PR x11-fonts/fontconfig issue(ports/181372).
>>>=20
>>> but i have a question about ${ARCH} value in ports Makefile. "armv6" =
or "arm" || "armv6", which is the better way?=20
>>>=20
>>> thanks,
>>>=20
>>> C.Taguchi
>>>=20
>>> On Sun, 18 Aug 2013 09:42:06 +0200
>>> Guillaume Bibaut <yom@iaelu.net> wrote:
>>>=20
>>>> Very nice, at least that's what I was looking for.
>>>>=20
>>>> There are still patches to apply on some other ports too :
>>>> - security/libgcrypt : to use GCC
>>>> - graphics/dri : =
http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/176703
>>>> - graphics/libGL : the same as dri since it's based on MesaLib
>>>>=20
>>>> I can't remember if I'm forgetting anything else, but if anyone =
finds anything, they could add it here :)
>>>>=20
>>>> Thanks.
>>>>=20
>>>> --
>>>> Guillaume Bibaut
>>>>=20
>>>> Le 18 aout 2013 a 03:12, Chie Taguchi <taguchi.ch@gmail.com>=20
>>>>=20
>>>>> Hi all,
>>>>>=20
>>>>> i wrote a building document of x11/Xorg(not minimum) for =
RaspberryPi.
>>>>> if you want to build Xorg, it will be useful for you!
>>>>> i hope so.:)
>>>>>=20
>>>>> https://github.com/taguchi-ch/freebsd-ports-xorg-raspberrypi
>>>>>=20
>>>>> Thanks.
>>>>>=20
>>>>> --=20
>>>>> Chie Taguchi <taguchi.ch@gmail.com>
>>>>> _______________________________________________
>>>>> freebsd-arm@freebsd.org mailing list
>>>>> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
>>>>> To unsubscribe, send any mail to =
"freebsd-arm-unsubscribe@freebsd.org"
>>>>=20
>>>=20
>>>=20
>>> --=20
>>> Chie Taguchi <taguchi.ch@gmail.com>
>>=20
>>=20
>> --=20
>> Chie Taguchi <taguchi.ch@gmail.com>
>> _______________________________________________
>> freebsd-arm@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
>> To unsubscribe, send any mail to =
"freebsd-arm-unsubscribe@freebsd.org"
>=20


--Apple-Mail=_E012D13E-7556-4CCA-85F2-4E4026B41EDF--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D90F8CB-14A3-4E9F-AE5A-E970E76AEA5F>