[nmglug] Freezing

Ted Pomeroy ted.pome at gmail.com
Sat Jun 6 15:19:12 PDT 2020


Brian, Very interesting. Is your swap a file or a partition? I just read an
article https://bogdancornianu.com/change-swap-size-in-ubuntu/ which sounds
like what you describe for making swap bigger. It notes that Ubuntu changed
the protocol of swap from a partition to a file. I am using Xubuntu 18.04
and the install here is a swap partition. As shown here from my lsblk:
sda      8:0    0 298.1G  0 disk
├─sda1   8:1    0   199M  0 part
├─sda2   8:2    0 165.4G  0 part
├─sda3   8:3    0     1K  0 part
├─sda4   8:4    0 103.3M  0 part
├─sda5   8:5    0   125G  0 part /
└─sda6   8:6    0   7.5G  0 part [SWAP]
sr0     11:0    1  1024M  0 rom
So, be careful and check first. I might suggest you ascertain the nature of
your system before trying to use the directions you quoted.
Thank you, Ted P.

On Sat, Jun 6, 2020 at 3:35 PM Ted Pomeroy <ted.pome at gmail.com> wrote:

> 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.
>
> On Sat, Jun 6, 2020 at 2:21 PM Brian O'Keefe <okeefe at cybermesa.com> wrote:
>
>> Hi All,
>>
>> 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.
>>
>> Stay safe!
>>
>> Brian
>> 0
>> <https://askubuntu.com/posts/1242975/timeline>
>>
>> yes Ubuntu 20.04 hangs freeze although I have 8 GB of Ram and i7
>>
>> I could temporary fix this issue in my side, by expanding swap partition
>> from 2 GB to 16 GB
>>
>> 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
>>
>> the solution steps are:
>>
>> 1- check the amount of swap you have
>>
>> grep SwapTotal /proc/meminfo
>>
>> 2-turn off the swap process
>>
>> sudo swapoff -a
>>
>> 3-resize the swap(in my case i expand it to 16 gb)
>>
>> sudo dd if=/dev/zero of=/swapfile bs=1G count=16
>>
>> 4- attach the swap to partition
>>
>> sudo mkswap /swapfile
>>
>> 5- activate swap(enable it)
>>
>> sudo swapon /swapfile
>>
>> 6- see the new swap size
>>
>> grep SwapTotal /proc/meminfo
>>
>> done
>> --
>> _______________________________________________
>> nmglug mailing list
>> nmglug at lists.nmglug.org
>> http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nmglug.org/pipermail/nmglug-nmglug.org/attachments/20200606/2ebe2e9e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.png
Type: image/png
Size: 3913 bytes
Desc: not available
URL: <http://lists.nmglug.org/pipermail/nmglug-nmglug.org/attachments/20200606/2ebe2e9e/attachment-0001.png>


More information about the nmglug mailing list