• Welcome to Peterborough Linux User Group (Canada) Forum.
 

Raspberry Pi OS: 32 bit vs 64 bit beta

Started by fox, March 27, 2021, 01:58:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fox

Good YouTube video here testing the speed of the two doing common operations.
Ubuntu 23.10 on 2019 5k iMac
Ubuntu 22.04 on Dell XPS 13

Jason

I only watched the first half of the video but the results at least up to that point were as I suspect - a 64-bit OS isn't going to be intrinsically faster than a 32-bit OS. I think one of the reasons for that is that we don't normally just use the OS part of the platform isolated from running applications. A 64-bit OS can, if it has backwards compatibility, run 32-bit apps, too. So are the apps in the 64-bit version of Rasberry Pi OS also compiled for 64-bit? That matters although not as much as one would think (i.e. 64-bit isn't going to be double as fast no matter what).

But the other point I didn't see mentioned (but maybe it was later in the video) is that a 64-bit OS is going to use more RAM. In order to keep track of processes in RAM, you need a list of referenced addresses that use up a portion of that same RAM. A 64-bit OS is going to use 64-bit addressing. You can have more RAM because of this (over 4 GB) but the downside is that you need more of that RAM to manage the addresses (double what you needed for 32-bit addresses). So if your applications are already using too much RAM, then a 64-bit OS could end up being slower than its 32-bit cousin. Also, I believe that compiling applications for 64-bit means they will be bigger, too. But if it's not close to using that amount of RAM, the difference won't matter.
* Zorin OS 17.1 Core and Windows 11 Pro on a Dell Precision 3630 Tower with an
i5-8600 3.1 GHz 6-core processor, dual 22" displays, 16 GB of RAM, 512 GB Nvme and a Geforce 1060 6 GB card
* Motorola Edge (2022) phone with Android 13

ssfc72

Thanks Mike, for the Link to that RPi YouTube video.
Mint 20.3 on a Dell 14" Inspiron notebook, HP Pavilion X360, 11" k120ca notebook (Linux Lubuntu), Dell 13" XPS notebook computer (MXLinux)
Cellphone Samsung A50, Koodo pre paid service

fox

Quote from: Jason on March 28, 2021, 03:46:53 AM
....
But the other point I didn't see mentioned (but maybe it was later in the video) is that a 64-bit OS is going to use more RAM. In order to keep track of processes in RAM, you need a list of referenced addresses that use up a portion of that same RAM. A 64-bit OS is going to use 64-bit addressing. You can have more RAM because of this (over 4 GB) but the downside is that you need more of that RAM to manage the addresses (double what you needed for 32-bit addresses). So if your applications are already using too much RAM, then a 64-bit OS could end up being slower than its 32-bit cousin. Also, I believe that compiling applications for 64-bit means they will be bigger, too. But if it's not close to using that amount of RAM, the difference won't matter.

I don't recall anything in the video about keeping track of RAM use; it was focused on speed. One surprising thing was that at the beginning, the 32-bit OS booted up much faster than the 64-bit. But that seemed to be negated with a reboot, followed by a shutdown and a second boot. I don't understand those results; in particular why the 64-bit OS took so much longer to boot from a completely cold start.
Ubuntu 23.10 on 2019 5k iMac
Ubuntu 22.04 on Dell XPS 13

Jason

Quote from: fox on March 28, 2021, 11:00:14 AM
I don't recall anything in the video about keeping track of RAM use; it was focused on speed. One surprising thing was that at the beginning, the 32-bit OS booted up much faster than the 64-bit. But that seemed to be negated with a reboot, followed by a shutdown and a second boot. I don't understand those results; in particular why the 64-bit OS took so much longer to boot from a completely cold start.

Yeah, that doesn't really make sense to me, either. But perhaps the 64-bit system had to load a different driver for the different display (especially since it has touch capability) and the first time it had to detect and download it or at least spend some time setting it up. The second time it was ready to go. I'm just spitballing. Being able to view the boot logs could show the difference.
* Zorin OS 17.1 Core and Windows 11 Pro on a Dell Precision 3630 Tower with an
i5-8600 3.1 GHz 6-core processor, dual 22" displays, 16 GB of RAM, 512 GB Nvme and a Geforce 1060 6 GB card
* Motorola Edge (2022) phone with Android 13