Sample Header Ad - 728x90

Understanding RAM Usage, ReadThroughput, and Freeable Memory Metrics in PostgreSQL RDS

1 vote
1 answer
1170 views
I'm facing an interesting issue related to RAM usage, ReadThroughput, and Freeable Memory metrics with my PostgreSQL database on an RDS instance, and I'm hoping to get some insights here. Two months ago, I experienced a significant increase in the ReadThroughput metric, leading to a instance crash. I understand that a spike in ReadThroughput often suggests memory insufficiency. However, during this period, the Freeable Memory remained stable at around 12GB. In response, I upgraded to a more powerful instance type, which currently offers about 47GB of Freeable Memory. Following the upgrade, I've noticed a dramatic decrease in ReadThroughput, which is positive as it minimizes disk reads. However, despite the database size growing by approximately 5% over the past week, the Freeable Memory remains unchanged and ReadThroughput has slightly increased. Does this imply the RAM allocation remains constant despite the database growth? If so, why might this be the case? Additionally, I'm curious as to why a sudden increase in disk usage (reflected in the ReadThroughput) was observed two months ago while the Freeable Memory stayed steady. Any insights or advice from the community would be greatly appreciated.
Asked by Morgan (21 rep)
Jun 15, 2023, 10:36 AM
Last activity: May 28, 2024, 05:03 AM