<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<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 class="votecell post-layout--left" style="margin: 0px; padding:
0px 16px 0px 0px; border: 0px; 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; grid-column: 1 / auto; width: auto; color: rgb(36, 39,
41); letter-spacing: normal; orphans: 2; text-align: left;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); text-decoration-style:
initial; text-decoration-color: initial;">
<div class="js-voting-container grid fd-column ai-stretch gs4
fc-black-200" data-post-id="1242975" style="margin: -2px;
padding: 0px; border: 0px; 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; color:
var(--black-200) !important; flex-direction: column !important;
align-items: stretch !important; display: flex;">
<div class="js-vote-count grid--cell fc-black-500 fs-title grid
fd-column ai-center" itemprop="upvoteCount" data-value="0"
style="margin: 2px; padding: 0px; border: 0px; font-style:
inherit; font-variant: inherit; font-weight: inherit;
font-stretch: inherit; line-height: inherit; font-family:
inherit; font-size: 1.61538rem !important; vertical-align:
baseline; box-sizing: inherit; color: var(--black-500)
!important; flex-direction: column !important; align-items:
center !important; display: flex;">0</div>
<button class="js-vote-down-btn grid--cell s-btn s-btn__unset
c-pointer" title="This answer is not useful"
aria-pressed="false" aria-label="down vote"
data-selected-classes="fc-theme-primary" style="margin: 2px;
box-sizing: inherit; font: unset; cursor: default; position:
relative; display: inline-block; padding: 0px; border: none;
border-radius: 0px; background: none; outline: none;
text-align: center; text-decoration: none; color: unset;
box-shadow: none;"><svg aria-hidden="true" class="m0 svg-icon
iconArrowDownLg" width="36" height="36" viewBox="0 0 36 36"><path
d="M2 10h32L18 26 2 10z"></path></svg></button><a
class="js-post-issue grid--cell s-btn s-btn__unset c-pointer
py6 mx-auto"
href="https://askubuntu.com/posts/1242975/timeline"
data-shortcut="T" title="Timeline" style="margin: 2px;
padding: 0px; border: none; font: unset; vertical-align:
baseline; box-sizing: inherit; text-decoration: none; color:
unset; cursor: default; position: relative; display:
inline-block; border-radius: 0px; background: none; outline:
none; text-align: center; box-shadow: none;"><svg
aria-hidden="true" class="mln2 mr0 svg-icon iconHistory"
width="19" height="18" viewBox="0 0 19 18"><path d="M3 9a8 8
0 113.73 6.77L8.2 14.3A6 6 0 105 9l3.01-.01-4 4-4-4h3L3
9zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5z"></path></svg></a></div>
</div>
<div class="answercell post-layout--right" style="margin: 0px;
padding: 0px 16px 0px 0px; border: 0px; 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; grid-column: 2 / auto; width: auto; min-width: 0px;
color: rgb(36, 39, 41); letter-spacing: normal; orphans: 2;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); text-decoration-style: initial; text-decoration-color:
initial;">
<div class="post-text" itemprop="text" style="margin: 0px 0px 5px;
padding: 0px; border: 0px; font-style: inherit; font-variant:
inherit; font-weight: inherit; font-stretch: inherit;
line-height: 1.3; font-family: Arial, "Helvetica
Neue", Helvetica, sans-serif; font-size: 15px;
vertical-align: baseline; box-sizing: inherit; width: 652.347px;
overflow-wrap: break-word;">
<p style="margin: 0px 0px 1em; padding: 0px; border: 0px;
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;
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;
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;
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;
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; 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; background-color: var(--black-050); border-radius: 3px; overflow-wrap: normal;"><code style="margin: 0px; padding: 0px; border: 0px; 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;
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; 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; background-color: var(--black-050); border-radius: 3px; overflow-wrap: normal;"><code style="margin: 0px; padding: 0px; border: 0px; 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;
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; 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; background-color: var(--black-050); border-radius: 3px; overflow-wrap: normal;"><code style="margin: 0px; padding: 0px; border: 0px; 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;
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; 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; background-color: var(--black-050); border-radius: 3px; overflow-wrap: normal;"><code style="margin: 0px; padding: 0px; border: 0px; 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;
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; 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; background-color: var(--black-050); border-radius: 3px; overflow-wrap: normal;"><code style="margin: 0px; padding: 0px; border: 0px; 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;
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; 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; background-color: var(--black-050); border-radius: 3px; overflow-wrap: normal;"><code style="margin: 0px; padding: 0px; border: 0px; 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;
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 class="moz-signature">-- <br>
<img src="cid:part2.91AF0D86.02DC12A0@cybermesa.com" border="0"></div>
</body>
</html>