From owner-freebsd-current@freebsd.org Sat Mar 21 11:08:08 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6505F25E89D for ; Sat, 21 Mar 2020 11:08:08 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 48kyYK4Rylz3H3Z for ; Sat, 21 Mar 2020 11:08:05 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: by mailman.nyi.freebsd.org (Postfix) id 2DEF425E866; Sat, 21 Mar 2020 11:08:04 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E901F25E862; Sat, 21 Mar 2020 11:08:03 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailgate.Leidinger.net (bastille.leidinger.net [89.238.82.207]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48kyYG1L7Tz3Gww; Sat, 21 Mar 2020 11:08:01 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from outgoing.leidinger.net (p5B165828.dip0.t-ipconnect.de [91.22.88.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (Client did not present a certificate) by mailgate.Leidinger.net (Postfix) with ESMTPSA id A635426FB; Sat, 21 Mar 2020 12:07:58 +0100 (CET) Received: from webmail.leidinger.net (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (Client did not present a certificate) by outgoing.leidinger.net (Postfix) with ESMTPS id 1C988116FC; Sat, 21 Mar 2020 12:07:56 +0100 (CET) Date: Sat, 21 Mar 2020 12:07:55 +0100 Message-ID: <20200321120755.Horde.zo0-HJ_AnsKmqqmFSb98-e8@webmail.leidinger.net> From: Alexander Leidinger To: Stefan Ehmann Cc: current@freebsd.org, freebsd-stable@freebsd.org Subject: Re: HOWTO donate CPU to the fight against the Corona-virus References: <20200319085745.Horde.yAf5603LMT07oVm8NR1Abs6@webmail.leidinger.net> <2005523.RhTPgMbj8J@walrus.pepperland> In-Reply-To: <2005523.RhTPgMbj8J@walrus.pepperland> Accept-Language: de,en Content-Type: multipart/signed; boundary="=_ClfmenlmAABLeGcw7Zxopr7"; protocol="application/pgp-signature"; micalg=pgp-sha1 MIME-Version: 1.0 X-Rspamd-Queue-Id: 48kyYG1L7Tz3Gww X-Spamd-Bar: -------- X-Spamd-Result: default: False [-8.81 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[leidinger.net:s=outgoing-alex]; URIBL_BLOCKED(0.00)[leidinger.net.multi.uribl.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-0.996,0]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; IP_SCORE(-3.72)[ip: (-9.78), ipnet: 89.238.64.0/18(-4.89), asn: 34240(-3.92), country: DE(-0.02)]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[leidinger.net:+]; DMARC_POLICY_ALLOW(-0.50)[leidinger.net,quarantine]; SIGNED_PGP(-2.00)[]; FREEMAIL_TO(0.00)[gmx.net]; RECEIVED_SPAMHAUS_PBL(0.00)[40.88.22.91.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:34240, ipnet:89.238.64.0/18, country:DE]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Mar 2020 11:08:08 -0000 This message is in MIME format and has been PGP signed. --=_ClfmenlmAABLeGcw7Zxopr7 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Stefan Ehmann (from Sat, 21 Mar 2020=20=20 11:38:26=20+0100): > On Thursday, March 19, 2020 8:57:45 AM CET Alexander Leidinger via freebs= d- > stable wrote: >> Hi, >> >> if someone wants to donate some FreeBSD based CPU resources to the >> fight against the Corona-virus, here is a quick HOWTO in terms of >> installing the Folding@Home client on FreeBSD: >> >> https://www.leidinger.net/blog/2020/03/19/fighting-the-coronavirus-with-= free >> bsd-foldinghome/ >> > > Unfortunately, (using a CPU slot for the same work unit) TPF is 2-3 times > slower than on Ubuntu for me. Much of the speed difference seems to=20=20 >=20be related > to libOpenCL. If remove libOpenCL on Ubuntu, it's still 20-30% faster tha= n on > FreeBSD. The pure CPU based code should be the same. Someone would have to=20=20 trace=20/ reverse engineer what is going on. > Don't know how stable the TPF numbers are, so numbers may be bogus. > > Will a CPU slot also use the GPU with libOpenCL or is it just using bette= r > optimized code? I tried to install libOpenCL but all I get is: No idea. Just an assumption: either full CPU or full GPU. > OpenCL: Not detected: clGetPlatformIDs() returned -1001 Depending on what clGetPlatformIDs is doing and if it is not=20=20 using/requesting=20some GPU support, it may be worth to check the code=20= =20 of=20it so see if we can improve something. > Since there's no CUDA support for FreeBSD, I guess there is no point=20= =20 >=20in trying > getting GPU slots to work. I assume the same. First step would be to get CUDA support in FreeBSD.=20= =20 I=20think I remember somewhere on the X11 mailinglist someone told that=20= =20 he=20got some NVidia GPU compute part working... not really sure about=20= =20 that=20part. It would help to get a big player to request it from=20=20 NVidia.=20As Netflix seems to go the "encode videos on CPU" (assumption=20= =20 based=20upon their Intel av1 codec support/benchmarks) way, and other=20=20 players=20in the video / graphics business more oriented towards linux,=20= =20 I=20do not have much hope in this regard ATM. Bye, Alexander. --=20 http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_ClfmenlmAABLeGcw7Zxopr7 Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJedfWLAAoJEBINsJsD+NiGJHEP/3zpzXxXQeZSdx10m9MQnJks 9AXLUbwH4LO6iAfnpSXRP8HxDp3HO8hRS4slzWxPokja8vxXSqWSlrX3Ze1RWaSU JGwta4hx8khuE7l5gUEZVFkso7y6Qp+WnSlyzJIwY1NDyxIIm4MlIzGPoR8z+iIc kUhuCeauagm/bqdIiYMeNUrNuxS/IPtA+Dwd02teS08IxN7l6xk8YQ0Sa59iGlmq PX7UsoICtqCih/kRon0y7a8HWqGgYfN+25DLeTJXffG+6y0OxyqgBSBrjLA3BIXS CiM32qBRs76HM3kgveqd6kfycsNN7Xgds2qeWaGPJbifts+ba1lPCD1qlILebQLh 4JcI2DmvdCLiucVxZWUF8LG1Ea54WCQCiCi6676mv+8ILOoZW17a3lJZH7t/vegH JIfx5PbzPRV+DOjnTQIJYu+pd4yxrrT6eKJm2Wm/dCfmIJXnIWA49Aae6zi3aNG5 bkW7WrBy2DANdGHl7jArOSDv8hcn1MPzsZ/6VMcMAb+HHKSP9K/iS23Y7k+RiixZ zJhG4crzdNKIIc0yIaXvptcMM59Tk4znG9LsRuBTCduLhtqPN7JYWxUth7A3INcB QqOetB56A9gvyn+PNNrq8zunpWxnOJjNnhrzDJuPk1NRzUSvEA/f48KQsrV3T8zn tXC9HuY7BwjBgaCeiG28 =G/qe -----END PGP SIGNATURE----- --=_ClfmenlmAABLeGcw7Zxopr7--