tmpfs /tmp tmpfs defaults,noatime,mode=1777,size=5m 0 0 tmpfs /var/log tmpfs defaults,noatime,mode=1777,size=5m 0 0 tmpfs /var/tmp tmpfs defaults,noatime,mode=1777,size=1m 0 0The "size=5m" and similar parameters force the RAM size used for the corresponding temporary file to certain megabytes. The "m" suffix corresponds to "mega bytes". The details are explained in this link.
I have tested my Raspberry Pi with several reboots and cold start and everything works without a hitch.
I need to increase the amount of RAM dedicated to /tmp to 5MB after zeromq and nanomsg build (compilation) failure happened when /tmp was still 1 MB. This is due to gcc places the intermediate compilation result (i.e. the expanded asm code + macros) in /tmp before linking takes place. It seems some of the code expands to > 1MB of size. After changing /tmp to use 5MB of RAM, everything worked without a hitch.
Post a Comment