Beorn_Bear
Posts: 154
Joined: Tue Feb 27, 2018 6:04 pm
Location: Vancouver, Canada

Raspberry Pi 4 Cooling / SWAP file / USB 3.0 Boot

Fri Jun 28, 2019 4:47 pm

I am currently using a Raspberry Pi 3 B+ as a Mymedia server. Prior to purchasing a Raspberry 4 with 4 GB RAM, I would like to know how big a swap file is recommended in order to improve Chromium and Youtube performance. Would booting from a USB 3.0 flash drive be faster?! What would be the best SD card size?! I am using either 16 or 32 GB sd card. I am concerned about throttling and a hot pi. I am curious to see if any fans or flirc case will make much difference in performance. Any suggestions?

Gee858eeG
Posts: 2
Joined: Fri Jun 28, 2019 4:59 pm

Re: Raspberry Pi 4 Cooling / SWAP file / USB 3.0 Boot

Fri Jun 28, 2019 5:05 pm

I'm not an expert, but i don't think the swap file will be of any significance for the 4gb version for youtube playback. Why do you think that it is?
Last edited by Gee858eeG on Fri Jun 28, 2019 6:11 pm, edited 1 time in total.

W. H. Heydt
Posts: 13625
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Raspberry Pi 4 Cooling / SWAP file / USB 3.0 Boot

Fri Jun 28, 2019 5:17 pm

Boot from USB has not yet been implemented for the Pi4B. That's the bad news. The good news is that the needed code can be added to the on-board EEPROM easily when it's ready.

pik33
Posts: 195
Joined: Thu Sep 10, 2015 4:26 pm

Re: Raspberry Pi 4 Cooling / SWAP file / USB 3.0 Boot

Fri Jun 28, 2019 5:19 pm

From my current experience:

- boot time from SD card (Sandisk, 16 GB, A1) ~18 seconds to the desktop
- boot time from Sandisk Ultra USB3 32GB pendrive (via root= in cmdline.txt) ~15 seconds
- SSD not yet tested
- using the case with a slow rotating (powered from 3v3 instead of 5V) 3 cm fan I got slightly higher temperature (~50C) when idle, compared to RPi3B+ (~42C), but slightly lower temperature (60..65 instead of 65..70) while in normal use. This means using RPi4 without active cooling or rather big heatsink is not recommended. It will throttle when loaded, as it does RPi3. There is no need for heatsink if you make even slow air flow around the RPi.

- I made a 4GB reall swap partition on this USB3 pendrive

W. H. Heydt
Posts: 13625
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Raspberry Pi 4 Cooling / SWAP file / USB 3.0 Boot

Fri Jun 28, 2019 6:04 pm

pik33 wrote:
Fri Jun 28, 2019 5:19 pm
From my current experience:

- boot time from SD card (Sandisk, 16 GB, A1) ~18 seconds to the desktop
- boot time from Sandisk Ultra USB3 32GB pendrive (via root= in cmdline.txt) ~15 seconds
- SSD not yet tested
- using the case with a slow rotating (powered from 3v3 instead of 5V) 3 cm fan I got slightly higher temperature (~50C) when idle, compared to RPi3B+ (~42C), but slightly lower temperature (60..65 instead of 65..70) while in normal use. This means using RPi4 without active cooling or rather big heatsink is not recommended. It will throttle when loaded, as it does RPi3. There is no need for heatsink if you make even slow air flow around the RPi.

- I made a 4GB reall swap partition on this USB3 pendrive
Back when I first installed SuSE 9.2 on a dual-Opteron system with 2GB of ECC RAM, the install recommend a 1GB swap space. While using it for several years, I don't think it ever used any of that swap space. With a 4GB Pi4B, I seriously doubt swap space is need unless one is doing something that has an excessively large memory footprint. And even then, the swap file probably needn't be very large. I think your 4GB swap file falls into the "overkill" category.

pik33
Posts: 195
Joined: Thu Sep 10, 2015 4:26 pm

Re: Raspberry Pi 4 Cooling / SWAP file / USB 3.0 Boot

Fri Jun 28, 2019 6:16 pm

It was useful in RPi3 while make -j4 a-big-project :) so I copied this for my RPi4.

Return to “General discussion”