Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Fedora support #88

Closed
ThomasKaiser opened this issue Feb 5, 2024 · 5 comments
Closed

Add Fedora support #88

ThomasKaiser opened this issue Feb 5, 2024 · 5 comments

Comments

@ThomasKaiser
Copy link
Owner

ThomasKaiser commented Feb 5, 2024

Fedora also seems to use the laughably outdated 16.02 p7zip version (see #81 why this is important) as such there's no reason to not 'support' the distro (automagically installing packages/dependencies for the user in question)

@ThomasKaiser
Copy link
Owner Author

Fedora installation instructions for ARM are IMO a joke, to 'save some time' I decided to run a VM on my MacBook.

  • Download of fedora-38-arm64-utm.zip took several hours
  • Image has no SSH access enabled
  • Settings are broken in a sense you can't use the terminal app (or at least don't see anything)
  • Fixed by switching to virtio-ramfb display driver
  • Now in the terminal app the few steps to enable SSH access can be performed (systemctl enable sshd, systemctl start sshd)
  • Just a few hours later able to begin looking into distro specifics

Bildschirmfoto 2024-02-05 um 14 46 06 klein

Bildschirmfoto 2024-02-05 um 14 45 57 klein

Bildschirmfoto 2024-02-05 um 14 49 40 klein

@ThomasKaiser
Copy link
Owner Author

ThomasKaiser commented Feb 5, 2024

1st try after playing around with dnf for the 1st time and manually installing build environment: https://sprunge.us/kiSoRI

@ThomasKaiser
Copy link
Owner Author

ThomasKaiser commented Feb 5, 2024

Stockfish builds flawlessly: https://sprunge.us/aYTfZ8

@ThomasKaiser
Copy link
Owner Author

ThomasKaiser commented Feb 5, 2024

Cpuminer can't be built (dependency issue, too much efforts for now):

[root@fedora fedora]# sbc-bench.sh -c

sbc-bench v0.9.62

Installing needed tools (can't build cpuminer) Done.
Checking cpufreq OPP. Done (results will be available in 7-10 minutes).
Executing tinymembench. Done.
Executing RAM latency tester. Done.
Executing OpenSSL benchmark. Done.
Executing 7-zip benchmark. Done.
(/usr/local/src/cpuminer-multi/cpuminer missing or not executable). Done.
Checking cpufreq OPP again. Done (6 minutes elapsed).

Results validation:

  * No swapping

Memory performance
memcpy: 28681.3 MB/s
memset: 49811.7 MB/s

7-zip total scores (3 consecutive runs): 37864,36510,38806, single-threaded: 4459

OpenSSL results:
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes  16384 bytes
aes-128-cbc     627437.46k  1351171.20k  1486251.95k  1554490.71k  1566165.67k  1548085.93k
aes-128-cbc     636763.67k  1418813.74k  1520031.83k  1538818.05k  1553899.52k  1545628.33k
aes-192-cbc    1007618.02k  1216289.15k  1265170.26k  1270389.76k  1276545.71k  1283233.11k
aes-192-cbc    1021715.59k  1212519.15k  1241449.56k  1278304.60k  1280821.93k  1303374.51k
aes-256-cbc     862037.77k  1046227.99k  1097793.11k  1109193.73k  1113732.44k  1114712.75k
aes-256-cbc     860942.81k  1032703.57k  1086847.83k  1100185.26k  1106624.51k  1102708.74k

Full results uploaded to https://sprunge.us/5Ikark

Edit: an additional dnf install -q -y openssl-devel curl-devel zlib-devel fixed dependencies and now cpuminer builds on Fedora as well: https://sprunge.us/sq2ssy

@ThomasKaiser
Copy link
Owner Author

Final check with the VM resetted to defaults:

[root@fedora fedora]# sbc-bench.sh -c

Average load and/or CPU utilization too high (too much background activity). Waiting...

Too busy for benchmarking: 09:24:00 up 3 min,  2 users,  load average: 0.89, 0.41, 0.16,  cpu: 0.88%
Too busy for benchmarking: 09:24:05 up 3 min,  3 users,  load average: 0.90, 0.42, 0.16,  cpu: 0.89%
Too busy for benchmarking: 09:24:10 up 3 min,  3 users,  load average: 0.82, 0.41, 0.16,  cpu: 0.90%
Too busy for benchmarking: 09:24:15 up 4 min,  3 users,  load average: 0.84, 0.42, 0.17,  cpu: 0.82%
Too busy for benchmarking: 09:24:20 up 4 min,  3 users,  load average: 0.85, 0.43, 0.17,  cpu: 0.84%
Too busy for benchmarking: 09:24:25 up 4 min,  3 users,  load average: 0.86, 0.44, 0.18,  cpu: 0.85%

sbc-bench v0.9.63

Installing needed tools: dnf install -q -y lm_sensors redhat-lsb-core sysstat lshw openssl links p7zip, tinymembench, ramlat, mhz, cpufetch, cpuminer. Done.
Checking cpufreq OPP. Done (results will be available in 13-19 minutes).
Executing tinymembench. Done.
Executing RAM latency tester. Done.
Executing OpenSSL benchmark. Done.
Executing 7-zip benchmark. Done.
Executing cpuminer. 5 more minutes to wait. Done.
Checking cpufreq OPP again. Done (11 minutes elapsed).

Results validation:

  * Swapping (ZRAM) occured -> https://tinyurl.com/3h222wnh
  * Too much other background activity: 1% avg, 14% max -> https://tinyurl.com/mr2wy5uv

Memory performance
memcpy: 33855.8 MB/s
memset: 40402.5 MB/s

Cpuminer total scores (5 minutes execution): 41.52,41.49,41.47,41.45,41.43,41.41,41.40,41.35,41.28,41.27,41.23,41.03,40.87,40.67,40.62,40.59,40.53,40.27,40.26,40.23,40.15,40.12,40.11,40.05,40.00,39.97,39.94,39.93,39.87,39.76,39.72,39.68,39.67,39.63,39.60,39.59,39.55,39.48,39.32,39.29,39.28,39.24,39.21,39.01,38.86,38.68,38.36,38.32,38.21,37.88,37.69,37.61,37.59,37.35,37.04 kH/s

7-zip total scores (3 consecutive runs): 38240,36524,36290, single-threaded: 4812

OpenSSL results:
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes  16384 bytes
aes-128-cbc     630395.48k  1422491.31k  1507499.86k  1542382.25k  1552826.37k  1572738.39k
aes-128-cbc     639842.22k  1417753.58k  1495289.43k  1536209.24k  1568784.38k  1573388.29k
aes-192-cbc    1036253.54k  1190083.93k  1247621.97k  1207376.21k  1268184.41k  1296433.15k
aes-192-cbc    1000087.43k  1216735.02k  1239660.97k  1275723.78k  1278580.05k  1286569.98k
aes-256-cbc     843054.36k  1037894.98k  1089043.03k  1100323.16k  1102378.33k  1101856.77k
aes-256-cbc     854579.82k  1025458.69k  1093532.67k  1108119.21k  1112307.03k  1105483.09k

Full results uploaded to https://sprunge.us/XDqjfi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant