<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">On Thu, 13 Dec 2018, 17:10 Fred Gleason <<a href="mailto:fredg@paravelsystems.com">fredg@paravelsystems.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">On Dec 13, 2018, at 11:54, Stephan Guilloux <<a href="mailto:stephan.guilloux@crisalid.com" target="_blank" rel="noreferrer">stephan.guilloux@crisalid.com</a>> wrote:<div><br><div><blockquote type="cite"><div><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);float:none;display:inline!important">Stress test still running on reputable brand with no PB, after 6 or 7h.</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);float:none;display:inline!important">During this stressing session, we found a few broken SD, from another reputable brand.<span class="m_-7247165279449020260Apple-converted-space"> </span></span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);float:none;display:inline!important">Not all cards, though, but enough to put some confusion... ;-)</span></div></blockquote></div><br></div><div>Well, remember, we are dealing with flash RAM here. After enough write/erase cycles, it *will* wear out. The goal is to optimize the overall system to get maximum lifetime out of the media. For example, on our production setups we do things like putting ‘/var/log’ on tmpfs (it doesn’t matter for the particular application that the log data evaporates after reboots). That greatly reduces wear on the media, while still allowing log data to be accessed during a session for debug purposes.</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Great advice indeed. Unfortunately, many packages expect directories in /var/log to exist before they start and will break without them. A long time ago I wrote a service called tmpersist that takes care of that, but ultimately it was just left untriaged on RH bugzilla until it rotted - seems I was the only one around who cared.</div><div dir="auto"><br></div><div dir="auto">Make sure /tmp and /var/tmp are also mounted on tmpfs.</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>