On 1-8-2016 at 22:04 Nathan Smith wrote:
hello everyone
it's your favorite newb here, heh.
Anyway, I'm running a moo on a dedicated 8 GB ram server and
something is seriously eating up the memory
So I have a few questions of which I know the answers to, but
would like an expert to back up my knowledge on the matter:
1. Is 8 GB enough for a MOO?
It's about 25 times too much.. Completely useless.. Rule of thumb
used to be 2,5-3 times the size of your database.
2. What uses more, forks or whiles
They don't compare in that way
3. What are the absolute do nots for forks, i.e, I
know that this is a massive don't:
fork(0)
insert verb code
this:(verb)();
endfork
Why would that be a no go?? Al that does is spawn a new process
every time, which is not a bad thing to do.. Depending on your
use-case.
But I assume there are a few others too.
4. What is best way to go about tracking memory usage within the
moo. I've no custom builtins so there's no leaks there...
If your MOO-process in Unix/Linux is growing endlessly, you might
want to run it through Valgrind.. But if it's true that you haven't
made any changes to the MOO-server, it's quite unlikely that you're
going to find any leaks. I have already volounteered to you to help
you with that..
Thoughts?
Forks and whiles are potentials for wasting ticks / cpu, but have
little to do with memory usage... Other than that.. Your problems a
week or two ago were server crashes... It makes me wonder what
really is going on, because all this just doesn't happen when
running a stock MOO-server.. (GammaMOO was it, right?)