<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<br>
<div class="moz-cite-prefix">On 10/12/18 1:24 PM, Fred Gleason
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:3B9DE6C0-3886-4B9D-9838-C4103FB5FBD9@paravelsystems.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
On Oct 12, 2018, at 13:15, Gordan Bobic <<a
href="mailto:gordan@redsleeve.org" class=""
moz-do-not-send="true">gordan@redsleeve.org</a>> wrote:
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class=""><span style="font-family: Helvetica;
font-size: 12px; font-style: normal; font-variant-caps:
normal; font-weight: normal; letter-spacing: normal;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
float: none; display: inline !important;" class="">It
depends on what you are running on that system. If you
have 1GB of RAM and want to run a desktop environment
web browser, that'll go pretty poorly without swap.</span></div>
</blockquote>
</div>
<br class="">
</div>
<div class="">So how does putting swap on RAM help that situation?
You’re not increasing the overall memory space by doing so, but
merely partitioning it into two different buckets (while also
adding the complexity and performance overhead of accessing the
part that is now ‘swap’).</div>
</blockquote>
<br>
See Gordon's earlier comment on Firefox's bad memory allocation.
Zram is a big help there; I see this on my F29 system.<br>
<br>
<tt># free</tt><tt><br>
</tt><tt> total used free shared
buff/cache available</tt><tt><br>
</tt><tt>Mem: 1022148 655520 107204
22284 259424 327636</tt><tt><br>
</tt><tt>Swap: 487304 253952 233352</tt><tt><br>
</tt><tt><br>
</tt><tt># zramctl </tt><tt><br>
</tt><tt>NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS
MOUNTPOINT</tt><tt><br>
</tt><tt>/dev/zram0 lz4 475.9M 246.4M 109.1M 114.2M 2
[SWAP]</tt><tt><br>
</tt> <br>
My mail server can be all over the place on memory and swap usage
(it uses real swap file on sata) depending on what all the scanning
software is doing and who is using roundcubemail.<br>
<br>
So YMMV, and this should not hurt if your system does not need to
swap.<br>
<br>
<tt># free</tt><tt><br>
</tt><tt> total used free shared
buff/cache available</tt><tt><br>
</tt><tt>Mem: 2060396 189332 1189972
26432 681092 1766392</tt><tt><br>
</tt><tt>Swap: 982420 0 982420</tt><tt><br>
</tt><tt><br>
</tt><tt># zramctl </tt><tt><br>
</tt><tt>NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS
MOUNTPOINT</tt><tt><br>
</tt><tt>/dev/zram0 lz4 959.4M 4K 64B 4K 2
<swap></tt><tt><br>
</tt><br>
<br>
I may switch this setup to a Cubeboard2 (1GB mem) from the
Cubietruck. I have a number of C2 and only a couple CT, so if it
does not need the memory...<br>
<br>
<blockquote type="cite"
cite="mid:3B9DE6C0-3886-4B9D-9838-C4103FB5FBD9@paravelsystems.com">
<div class=""><br class="">
</div>
<div class="">Cheers!</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; font-size: 11px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">|----------------------------------------------------------------------|</span></div>
<div style="margin: 0px; font-size: 11px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">|
Frederick F. Gleason, Jr. | Chief Developer
|</span></div>
<div style="margin: 0px; font-size: 11px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">|
| Paravel Systems
|</span></div>
<div style="margin: 0px; font-size: 11px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">|----------------------------------------------------------------------|</span></div>
<div style="margin: 0px; font-size: 11px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">|
A room without books is like a body without a soul.
|</span></div>
<div style="margin: 0px; font-size: 11px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">|
-- Cicero
|</span></div>
<div style="margin: 0px; font-size: 11px; line-height: normal;
font-family: Menlo;" class=""><span
style="font-variant-ligatures: no-common-ligatures" class="">|----------------------------------------------------------------------|</span></div>
</div>
<div class=""><span style="font-variant-ligatures:
no-common-ligatures" class=""><br class="">
</span></div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Arm-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Arm-dev@centos.org">Arm-dev@centos.org</a>
<a class="moz-txt-link-freetext" href="https://lists.centos.org/mailman/listinfo/arm-dev">https://lists.centos.org/mailman/listinfo/arm-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>