<div dir="ltr"><div class="gmail_default" style="font-size:large">Brian, A quick look at it seems that it is correct. Swap is a partition, it has to be unmounted to be re-sized, hence the 'swapoff' command. The 'dd' to resize it is an interesting approach, rather than using parted or gparted. If you have used all of the physical drive to install, it might feel clearer to use gparted to enlarge /swap and see which other partition is giving up some room. Check to see if the sample directions were installed to hardware like yours or was it a virtual install? I will have to take a look at the discussion on the Internet. Thank you, Ted P.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jun 6, 2020 at 2:21 PM Brian O'Keefe <<a href="mailto:okeefe@cybermesa.com">okeefe@cybermesa.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  

    
  
  <div>
    <p>Hi All,</p>
    <p>My Asus laptop has been freezing up for no reason that I could
      think of. I found out my swap partition is 2GB and this person
      solved it by increasing the swap partition to 16GB. I'm reluctant
      to start messing with partitions, though I have at times, w/o one
      of you brainiacs look at the procedure. If anyone can look this
      over I'd appreciate it but no obligations. <br>
    </p>
    <p>Stay safe!</p>
    <p>Brian</p>
    <div style="margin:0px;padding:0px 16px 0px 0px;border:0px none;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:13px;vertical-align:top;box-sizing:inherit;width:auto;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">
      <div style="padding:0px;border:0px none;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:13px;vertical-align:baseline;box-sizing:inherit;display:flex">
        <div style="margin:2px;padding:0px;border:0px none;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:1.61538rem;vertical-align:baseline;box-sizing:inherit;display:flex">0</div>
        <button title="This answer is not useful" style="margin:2px;box-sizing:inherit;font:unset;display:inline-block;padding:0px;border:medium none;border-radius:0px;background:rgba(0,0,0,0) none repeat scroll 0% 0%;outline:currentcolor none medium;text-align:center;text-decoration:none;color:unset"><u></u><u></u><u></u><u></u></button><a href="https://askubuntu.com/posts/1242975/timeline" title="Timeline" style="margin:2px;padding:0px;border:medium none;font:unset;vertical-align:baseline;box-sizing:inherit;text-decoration:none;color:unset;display:inline-block;border-radius:0px;background:rgba(0,0,0,0) none repeat scroll 0% 0%;outline:currentcolor none medium;text-align:center" target="_blank"><u></u><u></u><u></u><u></u></a></div>
    </div>
    <div style="margin:0px;padding:0px 16px 0px 0px;border:0px none;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:13px;vertical-align:baseline;box-sizing:inherit;width:auto;min-width:0px;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">
      <div>
        <p style="margin:0px 0px 1em;padding:0px;border:0px none;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both">yes Ubuntu 20.04
          hangs freeze although I have 8 GB of Ram and i7</p>
        <p style="margin:0px 0px 1em;padding:0px;border:0px none;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both">I could temporary
          fix this issue in my side, by expanding swap partition from 2
          GB to 16 GB</p>
        <p style="margin:0px 0px 1em;padding:0px;border:0px none;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both">I am not sure but
          I think there is problem in Ubuntu 20.04 memory management,
          here in my side it keep consuming memory, then when both
          memory and swap are full, the computer start to freeze and
          hang</p>
        <p style="margin:0px 0px 1em;padding:0px;border:0px none;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both">the solution
          steps are:</p>
        <p style="margin:0px 0px 1em;padding:0px;border:0px none;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both">1- check the
          amount of swap you have</p>
        <pre style="margin:0px 0px 1em;padding:12px 8px;border:0px none;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:3px"><code style="margin:0px;padding:0px;border:0px none;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;box-sizing:inherit;background-color:transparent;white-space:inherit">grep SwapTotal /proc/meminfo
</code></pre>
        <p style="margin:0px 0px 1em;padding:0px;border:0px none;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both">2-turn off the
          swap process</p>
        <pre style="margin:0px 0px 1em;padding:12px 8px;border:0px none;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:3px"><code style="margin:0px;padding:0px;border:0px none;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;box-sizing:inherit;background-color:transparent;white-space:inherit">sudo swapoff -a
</code></pre>
        <p style="margin:0px 0px 1em;padding:0px;border:0px none;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both">3-resize the
          swap(in my case i expand it to 16 gb)</p>
        <pre style="margin:0px 0px 1em;padding:12px 8px;border:0px none;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:3px"><code style="margin:0px;padding:0px;border:0px none;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;box-sizing:inherit;background-color:transparent;white-space:inherit">sudo dd if=/dev/zero of=/swapfile bs=1G count=16
</code></pre>
        <p style="margin:0px 0px 1em;padding:0px;border:0px none;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both">4- attach the
          swap to partition</p>
        <pre style="margin:0px 0px 1em;padding:12px 8px;border:0px none;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:3px"><code style="margin:0px;padding:0px;border:0px none;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;box-sizing:inherit;background-color:transparent;white-space:inherit">sudo mkswap /swapfile
</code></pre>
        <p style="margin:0px 0px 1em;padding:0px;border:0px none;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both">5- activate
          swap(enable it)</p>
        <pre style="margin:0px 0px 1em;padding:12px 8px;border:0px none;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:3px"><code style="margin:0px;padding:0px;border:0px none;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;box-sizing:inherit;background-color:transparent;white-space:inherit">sudo swapon /swapfile
</code></pre>
        <p style="margin:0px 0px 1em;padding:0px;border:0px none;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both">6- see the new
          swap size</p>
        <pre style="margin:0px 0px 1em;padding:12px 8px;border:0px none;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;box-sizing:inherit;width:auto;max-height:600px;overflow:auto;border-radius:3px"><code style="margin:0px;padding:0px;border:0px none;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:Consolas,Menlo,Monaco,"Lucida Console","Liberation Mono","DejaVu Sans Mono","Bitstream Vera Sans Mono","Courier New",monospace,sans-serif;font-size:13px;vertical-align:baseline;box-sizing:inherit;background-color:transparent;white-space:inherit">grep SwapTotal /proc/meminfo
</code></pre>
        <p style="margin:0px 0px 1em;padding:0px;border:0px none;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both">done</p>
      </div>
    </div>
    <div>-- <br>
      <img src="cid:1728b89967a61a917f31" border="0"></div>
  </div>

_______________________________________________<br>
nmglug mailing list<br>
<a href="mailto:nmglug@lists.nmglug.org" target="_blank">nmglug@lists.nmglug.org</a><br>
<a href="http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org" rel="noreferrer" target="_blank">http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org</a><br>
</blockquote></div>