cc -march for Intel Celeron N5105 (for optimised Nextcloud on FeeBSD)

Hello!
recently I bought a
  • ACEMAGICIAN AK1PRO Mini PC N5105 2.9GHz 16GB RAM 512GB SSD M.2 Micro Desktop Computer, 4K UHD, WLAN, Gigabit Ethernet, HDMI X 2
and want to install FreeBSD on it to build my own Nextcloud server.
I am thinking about recompiling kernel and user land specifically for the Intel Celeron N5105 cpu to get most out of it.
  1. Would you recommend it? Does it give some benefits?
  2. If yes, which parameters should I use for cc -march etc.?
Your help is very much appreciated.
Thank you!
 
Think about it.
Your system usually spends only a fraction of it's runtime in kernel mode or the user land binaries. Let's say that is 10%, to be generous. Using "-march" will give you maybe 5%, for the sake of an argument. That is 0.5% in total. How long will you have that running before these 0.5% add up to the time spent recompiling everything?
 
Think about it.
Your system usually spends only a fraction of it's runtime in kernel mode or the user land binaries. Let's say that is 10%, to be generous. Using "-march" will give you maybe 5%, for the sake of an argument. That is 0.5% in total. How long will you have that running before these 0.5% add up to the time spent recompiling everything?
You are right. Thank you for your additional information.
 
If you were to run some simulation or such 24/7 full burn, that would make sense to optimize. But optimizing things like strlen() or "cp" will most likely cost more time than it will ever save you.
 
Recompiling kernel and userland won't make much of a difference unless you run a workload that uses the kernel heavily.

Realistically you'd have to compile all ports, too. On a decaf CPU that won't be fun.
 
I bought a Nipogi AK2PLUS N100 16GB RAM and use it as a home server. Installed FreeBSD 14.1-RELEASE from USB stick (GENERIC kernel) and it runs like a swiss clock from july 2024, 24/7. There are some ACPI errors, no matter I ignore them. WiFi works, Bluetooth not installed but recognized. I scratched off Windows 11 Home without even registering it.
The CPUs are very similar, Acemagician and Nipogi fish from the same pot.

EDIT: Ah, I forgot this: Compare Intel N5105 and Intel N100
 
Back
Top