-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
it doesn't work #8
Comments
Why do you need to disable rc.local ? |
@netherwort i think you have miss read the read me file, |
On Raspberry 2B with Raspbian Stretch the original script of zram.sh will not be executed properly. The installed version of Bash is not calculating the values for memory properly.
I commented every line in /etc/dphys-swapfile and removed /etc/init.d/dphys-swapfile |
Don't see any benefits by enabling ZRAM on RPi 3 at all, also don't understand why doubling size of zram by multiplying with number 2048. Do you see any difference in performance? :) |
@dcpender Thanks! This was really useful! (I have near no experience.) I opened 5 applications and experienced no lag, which means it worked! |
@netherwort your welcome, I have another auto script that installs both zram and wbar however i have modded the conky config to suit a 7" Raspberry Pi Touch Screen |
@mikebkk your zram.sh should look like this, 1 #!/bin/bash |
@Amilino personally i have noticed my pi runs fine with or without zram in its current setup. |
Yes, that is my point. It is working same with or without zram. |
true however with it enabled it is there if needed, i beleave the idea of zram is for more graphical processes as well so depends on what your using the pi for. |
I found out that on my pi the instruction 'let' is unknown by the shell |
Thank you I was getting an error no such file or directory for zram1 to 3. This change fixed the script on Pi 3b+. |
let command is working fine on Pi 2 and 3. |
(standard_in) 1: syntax error I run this script on 3B raspbian. |
@mikebkk Raspberry Pi 3B+ |
With your post you are confirming, that the shell is not calculating correctly. Did you install 'bc'?
Don't give up so easily I needed to use the version totalmem=$(free | grep -e "^Mem:" | awk '{print $2}') to get this output
with totalmem=free | grep -e "^Mem:" | awk '{print $2}'
As soon as you get a correctly calculated result you can activate your zram.sh keep looking up and have fun |
Disk /dev/zram0: 171.3 MiB, 179658752 bytes, 43862 sectors I have no problems. |
I replaced former to latter in that script. sudo /home/pi/Documents/zramnew.sh perfect :) Thanks. |
Good to hear that you succeeded! |
Thank you for your reply :) I suggest to make zram for 1 core. https://wiki.gentoo.org/wiki/Zram If this script uses 1 core ! Block device could use more large files at once. |
first of all do |
UnixBench result. If there are any suggestions , no bother :P |
My modified script is below. |
Sorry, I don't understand. |
you mean like steream memory bandwidth test? no zram,physical memory only Function Best Rate MB/s Avg time Min time Max time with this script , zram only Function Best Rate MB/s Avg time Min time Max time |
Why these negative comments? Why are you writing that 'let' is working although it is not? By executing the shell-testscript I published earlier you can see that the memory-calculation fails because of this. Using zram with factor 2048 made my KDE Desktop work. If I reduce the size of zram by using a lower factor the KDE-Desktop is responding very slowly and Chromium-Browser crashes when more than 6 sites are open. |
I think that bottle neck is SD card, I replaced it and after that things are working faster. Do not see any differences with zram or without and my RPi is quite loaded with things. Also command 'let' is working just fine. I am on the latest version of Raspbian. |
sudo nano /etc/rc.local DOES NOT MAKE ANY SENSE! it says "In order to enable or disable this script just change the execution bits." AND DOES NOT TELL YOU HOW TO DO IT!
The text was updated successfully, but these errors were encountered: