[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Memory size and allocation
Reply to Dennis Payne:
> > Is this policy SO bad?
> Yes it is.
[cut]
Ok, it is. =)
//=================
Steve Baker:
> I don't think that you should be trying to consume *all* of memory before
> you start giving it back. That sort of thing is pretty antisocial in a
> multi-tasking system...what happens if X-windows needs some memory when
> your program has it *all*? Also, Linux has virtual memory - which means
> that before the operating system finally admits that there isn't a single
> byte left anywhere, it'll be tossing chunks of your program out to disk
> into the swap partition.
Ok, it is *very* bad...
Then it seems i'll have to collect garbage frequently and speed up the load
routines.
Again, thank you all, your suggestions were precious.
Francesco