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.