top | item 41200842

(no title)

outsidein | 1 year ago

Most DB systems allocate memory pools for specific purposes, and do a better job in managing RAM vs OS because the DB knows which queries will be processed and can optimize RAM usage accordingly. Using virtual memory (paged out to disk) would spoil the DB optimizations and should be avoided in general.

But the more important part is managing disk IO, as permanent storage is far slower, but magnitudes larger than RAM (except for memory DBs which depend on special RAM with battery backup). Even in times of SSD.

This applies for dedicated DB servers.

If you have a server with mixed workloads and other apps beside DB, it becomes blurry.

discuss

order

No comments yet.