Author Topic: Raspberry Pi OS: 32 bit vs 64 bit beta  (Read 445 times)

0 Members and 1 Guest are viewing this topic.

Offline fox

  • Member
  • Master
  • *
  • Posts: 1979
Raspberry Pi OS: 32 bit vs 64 bit beta
« on: March 27, 2021, 01:58:13 pm »
Good YouTube video here testing the speed of the two doing common operations.
Ubuntu 21.04 on 2019 5k iMac
Ubuntu 20.04 on Dell XPS 13 2 in 1

Offline Jason

  • Administrator
  • Master
  • *****
  • Posts: 3772
  • Humanist. Skeptic. Husband.
Re: Raspberry Pi OS: 32 bit vs 64 bit beta
« Reply #1 on: March 28, 2021, 03:46:53 am »
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.
"With all its sham, drudgery, and broken dreams, it is still a beautiful world." - Max Ehrmann, Desiderata

Offline ssfc72

  • Member
  • Master
  • *
  • Posts: 1839
Re: Raspberry Pi OS: 32 bit vs 64 bit beta
« Reply #2 on: March 28, 2021, 05:39:27 am »
Thanks Mike, for the Link to that RPi YouTube video.
Mint 19.1 on a Dell 14" Inspiron notebook, HP Pavilion X360, 11" k120ca notebook (Linux Lubuntu), Dell 13" XPS notebook computer (MX Linux)
Cellphone Samsung A50, PCMobile pay as you go

Offline fox

  • Member
  • Master
  • *
  • Posts: 1979
Re: Raspberry Pi OS: 32 bit vs 64 bit beta
« Reply #3 on: March 28, 2021, 11:00:14 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 21.04 on 2019 5k iMac
Ubuntu 20.04 on Dell XPS 13 2 in 1

Offline Jason

  • Administrator
  • Master
  • *****
  • Posts: 3772
  • Humanist. Skeptic. Husband.
Re: Raspberry Pi OS: 32 bit vs 64 bit beta
« Reply #4 on: March 28, 2021, 02:35:13 pm »
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.
"With all its sham, drudgery, and broken dreams, it is still a beautiful world." - Max Ehrmann, Desiderata