Werner changed the topic of #armbian to: armbian - Linux for ARM development boards | www.armbian.com | Github: github.com/armbian | Announcements: #armbian-announcements | Developer talk: #armbian-devel | Off-Topic: #armbian-offtopic | Logs: -> irc.armbian.com
zeemate_ has quit [Ping timeout: 268 seconds]
krei-se has quit [Ping timeout: 260 seconds]
krei-se has joined #armbian
califax has quit [Remote host closed the connection]
<DC-IRC>
[Discord] <Werner> I personally have a kvm instance with 16G of memory to build stuff but I also build images on an Orangepi5 with 8G of memory.
buzzmarshall has quit [Quit: Konversation terminated!]
<DC-IRC>
[Discord] <mecoblock> well that’s a no brainer if you were looking for a mac. Only downside is no asahi but VM's work great and that’s also how I run linux on mine
coldfeet has quit [Remote host closed the connection]
<DC-IRC>
[Discord] <menu> asahi's future is uncertain now anyway, but i actually like macOS, it's my preferred desktop OS! unfortunately i don't have a spare £600 to upgrade, so the 2015 macbook pro will continue to overheat 😂
<DC-IRC>
[Discord] <mecoblock> those 2015 tanks are a classic but also deserve to be sent to retirement
<DC-IRC>
[Discord] <menu> i was hanging it out of the window the other night to update some dependencies, they build from source, all four cores at 100% for 24 hours got real damn hot
jasmint has quit [Ping timeout: 245 seconds]
jasmint has joined #armbian
zeemate has quit [Ping timeout: 248 seconds]
<DC-IRC>
[Discord] <.grippy> @mecoblock Regardless of opinions on Apple, M series silicon is crazy fast and in the context of the Mac Mini specifically super good value, especially for dev work if you don't care about GPU. I'm sitting on my couch with my M3 Pro MBP and I just timed it - < 1 min to build a server image with Ubuntu base for example, 1:20 if you count generating the .img . My 7950x3D desktop ta <clipped message>
<DC-IRC>
[Discord] <.grippy> kes significantly longer, haven't timed it but I don't even bother at this point.
<DC-IRC>
[Discord] <johnthecoolingfan> > takes significantly longer, haven't timed it but I don't even bother at this point.
<DC-IRC>
[Discord] <johnthecoolingfan> So no data to support your point?
<DC-IRC>
[Discord] <johnthecoolingfan> Also to make it a fair test caching and reuse of already buidl components should be disallowed (or cache and reuse the same things on both stations)
<DC-IRC>
[Discord] <johnthecoolingfan> Also to make it a fair test caching and reuse of already buidl components should be disallowed (or cache and reuse the same things on both stations), plus the target image configuration shoudl be the same
<DC-IRC>
[Discord] <johnthecoolingfan> Easy to skew the times if you don't match the conditions
<DC-IRC>
[Discord] <johnthecoolingfan> Easy to skew the results if you don't match the conditions
<DC-IRC>
[Discord] <johnthecoolingfan> that would be great
<DC-IRC>
[Discord] <menu> i would expect the Apple Silicon to perform significantly better, purely because it's not cross-compiling
<DC-IRC>
[Discord] <johnthecoolingfan> build for risc-v on both?
<DC-IRC>
[Discord] <menu> that would be a fair test imo
<DC-IRC>
[Discord] <johnthecoolingfan> Is cross-compiling inherently slower than compiling for the host architecture?
<DC-IRC>
[Discord] <johnthecoolingfan> I don't really understand how the target and host architectures matching boost compilation times...
joshaspinall has joined #armbian
<DC-IRC>
[Discord] <johnthecoolingfan> Also can just run twice more tests, one build for x86, anotehr for arm
<DC-IRC>
[Discord] <johnthecoolingfan> Also can just run twice more tests, one build for x86, another for arm
<DC-IRC>
[Discord] <johnthecoolingfan> the more data teh better
<DC-IRC>
[Discord] <johnthecoolingfan> the more data the better
<DC-IRC>
[Discord] <johnthecoolingfan> Because now I want to know what it would be like, will x86 compile for x86 faster than for arm and arm compile faster for arm than for x86 or would it be that x86/arm target compiles faster than the other arch
<DC-IRC>
[Discord] <menu> typically yes, but it would be good to benchmark a range of hardware
<DC-IRC>
[Discord] <johnthecoolingfan> Because now I want to know what it would be like, will x86 compile for x86 faster than for arm and arm compile faster for arm than for x86 or would it be that x86/arm target compiles faster than the other arch, and risc-v as always cross-compilation (even if the target arch is relatively obscure and not a common target) as a control
<DC-IRC>
[Discord] <johnthecoolingfan> Because now I want to know what it would be like, will x86 compile for x86 faster than for arm and arm compile faster for arm than for x86 or would it be that x86/arm target compiles faster than the other arch, and risc-v as always cross-compilation (even if the target arch is relatively obscure and not a common target) as a control group or smth
<DC-IRC>
[Discord] <.grippy> Time to Image Generated :
<DC-IRC>
[Discord] <.grippy> 2.5Gb/s Wired Ethernet - no local network caching
<DC-IRC>
[Discord] <.grippy> So yeah, significantly slower cross compiling, also let's not talk power consumption lol
<DC-IRC>
[Discord] <.grippy> This was the better of 2 runs for the PC, first one came in over 5 min
<DC-IRC>
[Discord] <.grippy> @johnthecoolingfan I'll try an x86 test too sure
<DC-IRC>
[Discord] <johnthecoolingfan> awesome, thank you
<DC-IRC>
[Discord] <johnthecoolingfan> was about to point out that docker on windows is a VM and a such has more overhead, but from the sources I found macs with apple silicon also use a virtual machine.
<DC-IRC>
[Discord] <.grippy> Cleared all caches/volumes etc again.
<DC-IRC>
[Discord] <.grippy> Uefi-x86 -> edge -> noble 24.04 -> Img with console interface standard
<DC-IRC>
[Discord] <.grippy> Mac - 5 min 59s
<DC-IRC>
[Discord] <.grippy> PC - 1m 55s
<DC-IRC>
[Discord] <johnthecoolingfan> now that's interesting.
<DC-IRC>
[Discord] <.grippy> Ha so exactly reversed, that's funny
<DC-IRC>
[Discord] <johnthecoolingfan> now that's exciting
<DC-IRC>
[Discord] <.grippy> Mind you the mac is sipping power and the PC is pulling like 400W lol. But interesting that it's exactly the opposite
krei-se- has joined #armbian
krei-se has quit [Ping timeout: 260 seconds]
krei-se- has quit [Remote host closed the connection]
krei-se has joined #armbian
<DC-IRC>
[Discord] <johnthecoolingfan> So for compiling for arm M3 mac is great
<DC-IRC>
[Discord] <johnthecoolingfan> And PC is great for x86 compilation
<DC-IRC>
[Discord] <johnthecoolingfan> And if it was taking the PC to compile x86 the same amount of time as it was taking mac to compile for arm (if the x86 took less time overall), mac would approximately take 284-ish seconds, or 4m44s
<DC-IRC>
[Discord] <johnthecoolingfan> And if it was taking the PC to compile x86 the same amount of time as it was taking mac to compile for arm (if the x86 took less time overall), mac would approximately take 284-ish seconds, or 4m44s for x86 corss-compile
<DC-IRC>
[Discord] <johnthecoolingfan> And if it was taking the PC to compile x86 the same amount of time as it was taking mac to compile for arm (if the x86 took less time overall), mac would approximately take 284-ish seconds, or 4m44s for x86 cross-compile
<DC-IRC>
[Discord] <johnthecoolingfan> If the results were not dependent on whether it's a cross-compile, the conslusion would be more straightforward, but with this the conslusion is that it's better to match target arch to host arch, and since armbian has more arm boards, M3 mac is generally better for this purpose
<DC-IRC>
[Discord] <johnthecoolingfan> I suspect a risc-v compilation test would show mac being slower
<DC-IRC>
[Discord] <menu> they do, i'd be curious to see how it performed using UTM with native Apple Virtualization though
<DC-IRC>
[Discord] <menu> they do, i'd be curious to see how it performed using UTM with native Apple Virtualization though - with prefer_docker=no, because i find docker inherently slow
<DC-IRC>
[Discord] <johnthecoolingfan> cross-compiling without docker is a nightmare. I remember how nightmarish it was on arch to install teh toolchain
<DC-IRC>
[Discord] <johnthecoolingfan> cross-compiling without docker is a nightmare. I remember how nightmarish it was on arch to install the toolchain
<DC-IRC>
[Discord] <johnthecoolingfan> Gentoo seems to have better cross-compiling support though, `cross` is a great tool
<DC-IRC>
[Discord] <johnthecoolingfan> Gentoo seems to have better cross-compiling support though, `crossdev` is a great tool
<DC-IRC>
[Discord] <menu> does the build script not handle this? i only build for ARM at present
<DC-IRC>
[Discord] <johnthecoolingfan> Never tried without docker. No idea how it handles it, but I expect one of two things:
<DC-IRC>
[Discord] <johnthecoolingfan> 1. Install the toolchain via package manager (on ubuntu/debian, can't handle EVERY package manager in existence in the long run)
<DC-IRC>
[Discord] <johnthecoolingfan> 2. Fail if teh toolchain is missing on host
<DC-IRC>
[Discord] <johnthecoolingfan> Never tried without docker. No idea how it handles it, but I expect one of two things:
<DC-IRC>
[Discord] <johnthecoolingfan> 1. Install the toolchain to host via package manager (on ubuntu/debian, can't handle EVERY package manager in existence in the long run)
<DC-IRC>
[Discord] <johnthecoolingfan> 2. Fail if the toolchain is missing on host
<DC-IRC>
[Discord] <menu> 1 is what i'd *expect* to happen, i haven't actually read the build script but i'd have thought it grabs deps the same as the docker image
<DC-IRC>
[Discord] <johnthecoolingfan> Never tried without docker. No idea how it handles it, but I expect one of two things:
<DC-IRC>
[Discord] <johnthecoolingfan> 1. Install the toolchain to host via package manager (on ubuntu/debian, can't handle EVERY package manager in existence in the long run, otherwise go to 2)
<DC-IRC>
[Discord] <johnthecoolingfan> 2. Fail if the toolchain is missing on host
<DC-IRC>
[Discord] <johnthecoolingfan> Also option 3: skip the package manager and download/install the toolchain into a temp dir
<DC-IRC>
[Discord] <johnthecoolingfan> Also option 3: skip the package manager and download/install the toolchain into a temp/cache dir
<DC-IRC>
[Discord] <johnthecoolingfan> And docker is a glorified temp dir
krei-se has quit [Remote host closed the connection]
krei-se has joined #armbian
krei-se has quit [Remote host closed the connection]
krei-se has joined #armbian
krei-se has quit [Remote host closed the connection]
krei-se has joined #armbian
wootehfoot has joined #armbian
<DC-IRC>
[Discord] <.grippy> I’ll try a riscv crosscompile on both tonight but not gonna do full tool chain haha. Part of the whole appeal of docker is how easy it is to un-f it
<DC-IRC>
[Discord] <.grippy> But quite surprising results yeah