policyd-weight cache - how to disable? - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: Usage (/forum-34.html) +--- Thread: policyd-weight cache - how to disable? (/thread-10153.html) |
policyd-weight cache - how to disable? - pl.zenon - 03-27-2010 05:47 AM Hello, I would like to disable policyd-weight cache because I have vps with low amount of memory and generally I don't need this funcionality. I tried to create a config file in /etc/policyd-weight.conf with all settings copied from defaults and modified $CACHESIZE string to value "0". Unfortunately after that any settings doesn't change... (Of course I restarted policyd-weight after configuration file creation) Could you tell me how can I disable caching in policyd-weight? RE: policyd-weight cache - how to disable? - BeNe - 03-27-2010 05:55 AM Cachesize is correct: Code: $CACHESIZE = 2000; # set to 0 to disable caching for spam results. But it make more sense to disable unneeded services or tune some others to free some RAM - not ? Greez BeNe RE: policyd-weight cache - how to disable? - pl.zenon - 03-28-2010 05:46 AM (03-27-2010 05:55 AM)BeNe Wrote: (...) I exactly did it, but unfortunately policyd-weight don't read policyd-weight.conf from /etc. Maybe I have to create this file in the other path? But which one? (03-27-2010 05:55 AM)BeNe Wrote: But it make more sense to disable unneeded services or tune some others to free some RAM - not ? You have right, but I did it already. I configured mysql, apache, fastcgi, turned off postgrey, bind and some processes like rootkit checker from cron and I'm looking for next methods to decrease ram consumption. I hope disabling caching in policyd-weight will save several MB. RE: policyd-weight cache - how to disable? - kilburn - 03-28-2010 09:41 PM policyd-weight is written in perl, so you can just open the executable file with your favourite editor and perform a quick scan to find the path where it's looking for its configuration file. |