On Wed, Mar 4, 2015 at 6:29 AM, Stuart Henderson <s...@spacehopper.org> wrote: > On 2015-03-01, Felipe Scarel <fbsca...@gmail.com> wrote: >> Now loading the "phishing/domains" URL list, which has about ~63k >> entries. relayd's "parent" process ballons to over 2GB memory usage >> (I'm assuming it's reading the URL lists and building a data structure >> for the relays), > > Yes, it's building a red-black tree structure during startup. >
Nice to know. >> So that's about ~520 MB of memory per relay process, out of 3 total. > > This is probably shared (fork does copy-on-write, so forked processes can > just use the original memory unless they make changes to it). Try adjusting > the "prefork" number and check the free memory with top(1) rather than the > per-process memory with ps(1). > Alright, I'll do that. In other news, Reyk replied to me via Twitter saying that relayd "is not optimized for large blacklists yet". I'll keep using the current version for the time being, as ~100k URLs is sufficient for my current demand. Thanks for your help!