Hello,
I'm planning upgrading my MacMini (mid-2010) to 16GB. I'm planning performing queries on my MySql databases on RAM. The tables have around 30M entries, usually filled with indexes to other tables, so each table entry is pretty small, but they have relationships which make the queries heavier.
I note that my 8GB Retina Macbook is doing a lot of swap while doing these queries (up to 12-15GB of "swap used" on Activity Monitor). The RAM pressure remains yellow most of the time and I get 4GB of "compressed memory".
My question is: with this information (12-15GB swap, 4GB compressed in a 8GB computer) does it mean that 16GB would be enough or maybe I'd need 32GB? I don't know if the compressed RAM feature is suitable for swapping compressed memory every time (since MySql probably needs accessing all entries at every moment) or is it useful only for storing inactive data from idle apps?
I don't know if OSX compresses data in the swap file too. If not so, the additional memory could keep the swap file empty while doing these queries since the uncompressed swap data should fit in 8GB of compressed RAM. What do you think?
I'm planning upgrading my MacMini (mid-2010) to 16GB. I'm planning performing queries on my MySql databases on RAM. The tables have around 30M entries, usually filled with indexes to other tables, so each table entry is pretty small, but they have relationships which make the queries heavier.
I note that my 8GB Retina Macbook is doing a lot of swap while doing these queries (up to 12-15GB of "swap used" on Activity Monitor). The RAM pressure remains yellow most of the time and I get 4GB of "compressed memory".
My question is: with this information (12-15GB swap, 4GB compressed in a 8GB computer) does it mean that 16GB would be enough or maybe I'd need 32GB? I don't know if the compressed RAM feature is suitable for swapping compressed memory every time (since MySql probably needs accessing all entries at every moment) or is it useful only for storing inactive data from idle apps?
I don't know if OSX compresses data in the swap file too. If not so, the additional memory could keep the swap file empty while doing these queries since the uncompressed swap data should fit in 8GB of compressed RAM. What do you think?
Last edited: