From: Vlad H. <hv...@us...> - 2007-07-20 10:15:24
|
> > Yes, it could. The question is who will be responsible for the too large > > values (> 2GB in total). Should we adjust the specified size to some > > hardcoded limit before allocating memory or rely on the OS kernel and > > allocate as much as allowed (and perhaps write to firebird.log that we > > couldn't do better). > > I do not like an idea of allocating as much memory as possible for cash. It's > highly possible (or even unavoidable) that after it we will need some memory > for other purporses. And we get in OOM case, which is purely handled in > current codebase. I already planned to reimplement memory allocation algorithm in cch to allocate memory for page buffers when it needed (not one huge chunk at time). But have no time to do it :( Regards, Vlad |