Andy wrote:
> Whether the OS caches the data or PG does, you still want it cached.
> your
> sorting backends gobble up the pages that otherwise would be filled
> the
> database buffers, then your postmaster will crawl, as it'll *really*
> to
> wait for stuff from disk. In my scenario, you'd spec the machine so
> there would be plenty of memory for *everything*.

That's the whole point: memory is a limited resource.  If pg is
crawling, then the problem is simple: you need more memory.  The
question is: is it postgresql's responsibility to manage that resource?
Pg is a data management tool, not a memory management tool.  The same
'let's manage everything' argument also frequently gets brought up wrt
file i/o, because people assume the o/s sucks at file management.  In
reality, they are quite good, and through use of the generic interface
the administrator is free to choose a file system that best suits the
needs of the application.

At some point, hard disks will be replaced by solid state memory you really want to recode your memory manager when
this happens because all your old assumptions are no longer correct?


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?


Reply via email to