You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've successfully set up ufdbguard with easylists using your script. Nice.
Once thing, though, is that ufdb complaints that it's too long a list to optimize, and that it will process urls one by one:
2022-04-03 17:58:39 [18335] ufdbCategory adblock
2022-04-03 17:58:39 [18335] ufdbCategoryExpressionList adblock/easylist
2022-04-03 17:58:39 [18335] loading regular expressions from "/usr/local/ufdbguard/blacklists/adblock/easylist"
2022-04-03 17:58:45 [18335] WARNING: the expressionlist has 25101 expressions and may use many resources *****
2022-04-03 17:58:45 [18335] Note that large numbers of expressions may impact performance considerably
2022-04-03 17:58:50 [18335] ERROR: UFDBoptimizeExprList: unable to optimise 25101 expressions of /usr/local/ufdbguard/blacklists/adblock/easylist (error 12) *****
2022-04-03 17:58:50 [18335] Since the 25101 expressions could not be optimised into one expression, they will be evaluated one by one which impacts performance *****
2022-04-03 17:58:50 [18335] ufdbCategoryExpressionList adblock/easyprivacy
2022-04-03 17:58:50 [18335] loading regular expressions from "/usr/local/ufdbguard/blacklists/adblock/easyprivacy"
2022-04-03 17:59:06 [18335] WARNING: the expressionlist has 45652 expressions and may use many resources *****
2022-04-03 17:59:06 [18335] Note that large numbers of expressions may impact performance considerably
2022-04-03 17:59:11 [18335] ERROR: UFDBoptimizeExprList: unable to optimise 45652 expressions of /usr/local/ufdbguard/blacklists/adblock/easyprivacy (error 12) *****
2022-04-03 17:59:11 [18335] Since the 45652 expressions could not be optimised into one expression, they will be evaluated one by one which impacts performance *****
there is some heavy RAM usage (2GB+) on the server as well.
I was wondering if splitting the output file into separate smaller files could be a simple solution for this?
Thanks a lot for the script!
EDIT:
I something like the following
cd /usr/local/ufdbguard/blacklists/adblock
split -a5 -l400 -d easyprivacy easyprivacy_
split -a5 -l400 -d easylist easylist_
echo -ne "\n\n\n\n\n\n\n"
for i in $(ls /usr/local/ufdbguard/blacklists/adblock); do echo "expressionlist adblock/$i"; done
Which splits the easylist and easyprivacy files in smaller 400-lines files (the maximum recommended by the docs is 500) and then outputs the needed expressionlists for the ufdbGuard.conf file.
Hi there!
I've successfully set up ufdbguard with easylists using your script. Nice.
Once thing, though, is that ufdb complaints that it's too long a list to optimize, and that it will process urls one by one:
there is some heavy RAM usage (2GB+) on the server as well.
I was wondering if splitting the output file into separate smaller files could be a simple solution for this?
Thanks a lot for the script!
EDIT:
I something like the following
Which splits the easylist and easyprivacy files in smaller 400-lines files (the maximum recommended by the docs is 500) and then outputs the needed expressionlists for the
ufdbGuard.conf
file.Then I modified my
ufdbGuard.conf
like so:And now I'm not getting any warning whatsoever and the memory usage dropped down to 500MB, which is still a lot, but much better than 2GB.
Curious how such a dirty solution worked.
Anyway, I hope it helps someone
Cheers
The text was updated successfully, but these errors were encountered: