[erlang-questions] Maximising memory compactness

Jesper Louis Andersen jesper.louis.andersen@REDACTED
Fri Apr 4 10:42:34 CEST 2014


On Fri, Apr 4, 2014 at 10:33 AM, Olivier BOUDEVILLE <
olivier.boudeville@REDACTED> wrote:

> Thanks in advance for any hint!


In the case of large ETS tables which hold lots of data, the 'compressed'
option is of interest in such a setup. It trades memory usage for CPU
cycles. But on modern CPUs, this gap is probably smaller than what people
think.

The best solution is to decide upon a critical breaking point where you
stop wasting time on optimizing for a single node and begin considering
introducing multiple nodes. The switch has an overhead, but hunting for
small amounts of memory seem wasteful.

Also consider that memory bounds on modern machines tend to go up. In two
years, you will probably have 64 gigabyte machines at Amazon without any
hitch where we use 32 gigabyte now.


-- 
J.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140404/4c9fd76e/attachment.htm>


More information about the erlang-questions mailing list