Skip to content

Memory limits? #121

Answered by kriszyp
Llorx asked this question in Q&A
Dec 28, 2021 · 3 comments · 4 replies
Discussion options

You must be logged in to vote

can a 16GB database be used within a 512MB device and grow "infinitely"?

Yes, it can! In our application/servers we currently have about 150GB of database on a server with 64GB of RAM (and lots of other processes running). More precisely memory mapping is mapping to virtual memory. And on most (64-bit) OSes this has a maximum of 256TB (so not quite infinite, but pretty huge and vastly larger than typical physical RAM amounts). And mapping virtual memory to physical memory is handled by OS, and is an sophisticated dynamic algorithm that balances on-demand loading from disk with read-ahead, caching, paging etc. Essentially memory mapping means that the database is directly accessing the O…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@Llorx
Comment options

Answer selected by Llorx
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@Llorx
Comment options

@kriszyp
Comment options

@Llorx
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants