![]() This is expecially useful when you randomly get 4 1.2+gb processes running at the same time. Testing shows this to work very well up to a partition size = to total memory size to increase the amount of fast memory available to the pi. Zram creates a compressed, in memory swap partition that is used when all available memory runs out. #set the GPU to 16MB, the minimum amount of allocated ramĮcho "gpu_mem=16" | sudo tee -a /boot/config.txt This is unnecessary when running headless, so it can be reduced to the mimimum, freeing up memory for the OS. This is most applicable to the 2GB Pi 4, or a 4GB pi 4 trying to run 4 Rosetta processes.īy default, 64MB of memory is allocated to the GPU. Passive w/ plastic top off + a Thermaltake Volcano 6cu+ heatsink resting on top 51cĪctive w/ plastic top off + heatsink + 60mm fan blowing at side opposite power cable 38cĪctive w/ plastic top off + heatsink + 60mm fan blowing at front opposite network cable 35c Pi 4 4GB in a Flirc Case, w/ 100% load from 4 Rosetta processes, ~20c ambient, Max Temps:Īctive w/ top on + 60mm fan blowing at front opposite network cable 42cĪctive w/ plastic top off + 60mm fan blowing at front opposite network cable 35cĪctive w/ plastic top off + 60mm fan blowing at side opposite power cable 40c Sudo sed -i "s/dtparam=audio=on/dtparam=audio=off/" /boot/config.txt #disable host controller serial transmitter (hciuart)Įcho 0 | sudo tee /sys/class/leds/led1/brightnessĮcho "dtparam=eth_led0=4" | sudo tee -a /boot/config.txtĮcho "dtparam=eth_led1=4" | sudo tee -a /boot/config.txt #Disable Bluetooth and bluetooth servicesĮcho "dtoverlay=disable-bt" | sudo tee -a /boot/config.txt #Disable Wifi, and disable check for wifiĮcho "dtoverlay=disable-wifi" | sudo tee -a /boot/config.txt I personally created a small shell script called power.sh to turn off HDMI, the power LED, and USB. ![]() If a command does not involve /boot/config.txt, it will last until the next reboot. Any line that has a reference to this file will require a reboot to take effect. Many configurations involve modifying /boot/config.txt. I also assume that you will be using wired networking - setting up dozens of wireless clients can cause Wifi interferance that I did not not want to deal with. I have only tested the following in Raspbian Lite, but they should all work in any distribution of Raspbian. ![]() If you're only using a headless Raspberry Pi for distributed computing, you can shutdown quit a bit of the onboard features to save power. Sudo apt-get remove dhcpcd5 alsa* -y & sudo apt autoremove -y Sudo sed -i "s/IPADDR/$STATIC_IPADDR/" /etc/network/interfaces.d/eth0 STATIC_IPADDR=`ip -f inet addr show eth0 | awk '/inet / '` Set gateway, netmask, and dns-nameservers for your network. #Set current IP address as static, and disable and remove dhcpd, switch ssh from ssh.service to ssh.socket Sudo systemctl disable triggerhappy.socket #disable the triggerhappy hotkey daemon that controls things like keyboard volume control Sudo mv /etc/logrotate.d/rsyslog /etc/logrotate.d/.save Sudo sed -i "s/\#ForwardToSyslog=yes/ForwardToSyslog=no/" /etc/systemd/nf #disable rsyslogd and replace with journalctl My Recommendations for Reducing the Size and Memory Ovehead of Raspbian Lite This means you won’t be able to run Rosetta on it. Boinc runs fine, but Xbian does not play nicely with 64 bit user space. Runs heavier (uses more ram) than Raspbian, and does not have the nice Pi specific commands. Ubuntu - Ubuntu compiled for arm / Raspberry Pi. My Preferred OS build for Boinc (Raspbian lite)Ħ4 Bit Raspberry Pi OS (Beta 64 bit build) I initially setup this one to process Rosetta, but ram was too big of a concern, so I switched it to run only WCG Open Pandemics. I also run a mix of WCG, and Asteroids on them.ġ.4GHz Quad Core Cortex A53, 1GB ram. ![]() I use these with Xbian, a HD Homerun, and a Cable Card to replace my cable boxes. I use it to run Pi hole and 3 processes of 3Bġ.2GHz Quad Core Cortex A53, 1GB ram. There is very little reason to get any of the older Pis as they are going to be roughly the same price as the 2GB Pi 4 and will offer much less performance.ĩ00Mhz Quad core Cortex A7, rev1.1 is the last 32 bit only processor. The Current version is the Pi 4, which comes with 2GB ($35), 4GB ($55), or 8GB ($75) of ram. Additionally, for a minimal purchase, I can incrementally add more processing power. I've been using 4GB Raspberry Pis for Rosetta, and they are quite energy efficient when compared to my other hardware.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |