Comments (9)
I've commented out the mahakala for now. Works fine without it, but obviously you don't get to block all those 1.6 million domains. That's well over 900,000!!!
from pi-hole.
Yeah this annoying error has been coming up a lot more recently. I'm looking into increasing the swap size somehow via gravity.sh
from pi-hole.
I was able to get around this by bypassing the assignment to the data variable and piping the curl to awk (shamelessly pulled from the if/then conditional on data further down) and directing it then redirecting it to the destination file.
from pi-hole.
I actually used to have it setup that way, but we changed it for a few reasons:
- to limit writing to the SD card (reduces the likelihood of corruption)
- to be a respectful netizen by not downloading the entire list needlessly every time
gravity.sh
runs
so I would like to keep it as is and either find a way to increase the memory or come up with a new solution all together.
from pi-hole.
If I maintain 2. in your list above and decrease file read/writes, can I rearrange some of the intermediate files that are at the end of gravity.sh, in gravity_advanced()? There are some sed sections that are no longer needed, or could be moved, with some of my latest commits. If so, I'd like to store the data from the curl requests to disk, that way $data isn't holding the whole mahakala list in memory at one time. Although, I'd still assume it would still use a bit of memory when it gets to the sort | uniq section later.
I'm not running on a RPi to test out memory bounds... (Running odroid XU3 and C1 for testing.)
from pi-hole.
If we can increase the swap size to 500 or more, if needed, we can still limit the writing to the SD card since the swap will only be used when needed. I was thinking of something like this:
dphys-swapfile swapoff
echo -e "CONF_SWAPSIZE=500" > /etc/dphys-swapfile
dphys-swapfile setup
dphys-swapfile swapon
from pi-hole.
I made a more streamline development branch so try it out and let me know if you still get the memory allocation error.
https://github.com/jacobsalmela/pi-hole/blob/development/gravity.sh#L47-L70
from pi-hole.
I'm getting this issue, but I wanted to check if this is just limited to certain versions of the rpi? I have Raspberry Pi 1 Model B (512MB)
from pi-hole.
I think it is more prevalent on the original B, but it depends on what people have running on their Pi. I think this is a good all around fix.
from pi-hole.
Related Issues (20)
- FTL database shouldn't be readable by unprivileged users HOT 6
- Raspberry Pi 5 having trouble binding interfaces when using NetworkManager HOT 1
- Update of pi-hole not possible on Linuxmint 6 (Debian) HOT 2
- pihole -v shows update available but pihole -up doesn't HOT 6
- Default list author fine with breaking functionality -- suggest finding alternative HOT 4
- Dashboard hanging HOT 1
- Consider NOT rate-limiting queries from the local router HOT 4
- Update (pihole -up) fails as installer (basic-install.sh) bypasses local DoH proxy HOT 3
- DHCP static reservation will not reset when changed. HOT 1
- v6: documentation on PUT /clients/ is not complete HOT 3
- Pihole stop working at all after reboot. Can't access internet by itself HOT 3
- pihole -up Banana Pi M1 not working HOT 2
- OS Detection saying supported OS is not Supported HOT 9
- "Restart DNS resolver" required every few days to make browsing work again! HOT 42
- crash on internet outage HOT 2
- fails to install in nobara linux(fedora 39) HOT 7
- wasabisys.com always gets N/A reply; perhaps due to absurd reply that canβt be handled? HOT 2
- Using "IP/admin" page for admin interface returns a blank/clear/white page. HOT 1
- Logfiles under /etc/pihole HOT 1
- Teleporter does not restore DHCP server enabled state
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pi-hole.