<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I suspect you use vmstat to determine the swap usage (?)<br>
    /gary<br>
    <br>
    <div class="moz-cite-prefix">On 19-02-27 01:14 PM, Dave
      Collier-Brown via talk wrote:<br>
    </div>
    <blockquote
      cite="mid:e8c361b9-dc25-b65d-5849-b4d9e669b819@indexexchange.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <p><font size="-1">Linux is somewhat unusual in that it
          dynamically kills large processes when it's running out of
          memory. You used to have to set limits to get that behavior.  
          Because of it, I run a moderately large swap (~8 GB) and can
          watch large jobs drive swap usage up. Then <i><b>I</b></i>
          decide if I want them dead.</font></p>
      <p><font size="-1">--dave</font><br>
      </p>
      <div class="moz-cite-prefix">On 2019-02-27 10:38 a.m., Stewart C.
        Russell via talk wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:b8e575ed-0915-55f1-89bb-e6b1aed134b9@gmail.com">
        <pre class="moz-quote-pre" wrap="">On 2019-02-27 10:02 a.m., Gary via talk wrote:
</pre>
        <blockquote type="cite">
          <pre class="moz-quote-pre" wrap="">I have kubuntu 18.04 with 20 gigs ram. Does anyone know what the optimum
size swap area that I should have?
</pre>
        </blockquote>
        <pre class="moz-quote-pre" wrap="">I asked a question about this at a GTALUG Q&A a few years back.
Basically what I remember was:

* are you frequently running out of memory? If not, don't change anything.

* depending on what applications you're running, there are various
kernel parameters that govern swap behaviour. They're tuned for
"typical" performance.

* The OOM killer (out-of-memory process killer) can sometimes kill a
task that's taking up what it thinks is too much memory. I sometimes get
that with very large (or very badly thought out) OpenSCAD renders, and
it can be annoying to have to work round it. OOM killer exists to keep
the system stable, and doesn't care if your work isn't happening.

Swap is more of a thing on smaller machines such as a Raspberry Pi.
These days, you've always got enough memory + swap until you find that
one job for which you don't. For me, that was trying to build MySQL (for
someone else, I promise!) on a Raspberry Pi.

cheers,
 Stewart


---
Talk Mailing List
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:talk@gtalug.org">talk@gtalug.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://gtalug.org/mailman/listinfo/talk">https://gtalug.org/mailman/listinfo/talk</a>
</pre>
      </blockquote>
      <pre class="moz-signature" cols="72">-- 
David Collier-Brown,         | Always do right. This will gratify
System Programmer and Author | some people and astonish the rest
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:dave.collier-brown@indexexchange.com">dave.collier-brown@indexexchange.com</a> |              -- Mark Twain
</pre>
      <br>
      <p><strong><em><span style="color: #212121;">CONFIDENTIALITY
              NOTICE AND DISCLAIMER</span></em></strong><em><span
            style="color: #212121;"> : This telecommunication, including
            any and all attachments, contains confidential information
            intended only for the person(s) to whom it is addressed. Any
            dissemination, distribution, copying or disclosure is
            strictly prohibited and is not a waiver of confidentiality.
            If you have received this telecommunication in error, please
            notify the sender immediately by return electronic mail and
            delete the message from your inbox and deleted items
            folders. This telecommunication does not constitute an
            express or implied agreement to conduct transactions by
            electronic means, nor does it constitute a contract offer, a
            contract amendment or an acceptance of a contract offer.
            Contract terms contained in this telecommunication are
            subject to legal review and the completion of formal
            documentation and are not binding until same is confirmed in
            writing and has been signed by an authorized signatory.</span></em></p>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">---
Talk Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:talk@gtalug.org">talk@gtalug.org</a>
<a class="moz-txt-link-freetext" href="https://gtalug.org/mailman/listinfo/talk">https://gtalug.org/mailman/listinfo/talk</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>