Swap Partition Size seems small

Forum rules
Before you post please read this
Post Reply
User avatar
AZgl1500
Level 8
Level 8
Posts: 2315
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes sweeping down the plains
Contact:

Swap Partition Size seems small

Post by AZgl1500 » Mon Jun 25, 2018 8:28 am

when I installed a 500 gB SSD, I used "something else" to create a separate /home partition.
been a while, so no longer remember the steps I went thru.

Just now, reviewing the partitions I noted that the Swap partition seems very small.

Was wondering if that is because the laptop now has 12gB of RAM instead of the previous 4gB ??

Image


Just a curious question, the laptop is extremely fast, and a pleasure to use now, compared to before when it was a sluggard with the HDD it used to have and small RAM size.

/dev/sda4 is dedicated as a /backup partition.

User avatar
xenopeek
Level 24
Level 24
Posts: 22772
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Swap Partition Size seems small

Post by xenopeek » Mon Jun 25, 2018 8:37 am

14 MiB is not a normal swap amount. That's 0.1% of your RAM and thus meaningless.

That your system will be faster with 12 GiB RAM is hardly a surprise. It means your operating system can use more unused RAM for file cache and buffers, speeding up all file operations.

I'd suggest to remove swap from your /etc/fstab file. Unless you want to hibernate (suspend to disk) or run extremely memory hungry programs (like raw photo or video editing) you should be fine to run without swap.

It's generally recommend to have 20% of RAM available as swap. In your case that would about 2½ GiB (say about 2500 MiB). You can easily add that with a swap file if and when you feel you need it. See general instructions for creating and configuring a swap file here: viewtopic.php?f=46&t=270961#p1480094
Image

User avatar
AZgl1500
Level 8
Level 8
Posts: 2315
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes sweeping down the plains
Contact:

Re: Swap Partition Size seems small

Post by AZgl1500 » Mon Jun 25, 2018 8:52 am

Before the addition of the SSD and the extra 8gB of RAM,

all Hibernate and Sleep modes would crash this laptop, so they are turned OFF anyway.

not into video editing, and doubt I do that in future.

User avatar
JerryF
Level 9
Level 9
Posts: 2907
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: Swap Partition Size seems small

Post by JerryF » Mon Jun 25, 2018 1:42 pm

In your case, I also recommend getting rid of a swap. Not needed.
IF your problem has been solved, please edit your original post and add [SOLVED] to the beginning of the Subject Line. It helps other members.

User avatar
xenopeek
Level 24
Level 24
Posts: 22772
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Swap Partition Size seems small

Post by xenopeek » Mon Jun 25, 2018 1:44 pm

If one could avoid the out-of-memory (OOM) killer with only 14 MiB swap, that must be some record :) Yeah, just disable the swap line in /etc/fstab/.
Image

User avatar
JerryF
Level 9
Level 9
Posts: 2907
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: Swap Partition Size seems small

Post by JerryF » Mon Jun 25, 2018 1:47 pm

:lol:
xenopeek wrote:
Mon Jun 25, 2018 1:44 pm
If one could avoid the out-of-memory (OOM) killer with only 14 MiB swap, that must be some record :) Yeah, just disable the swap line in /etc/fstab/.
IF your problem has been solved, please edit your original post and add [SOLVED] to the beginning of the Subject Line. It helps other members.

User avatar
AZgl1500
Level 8
Level 8
Posts: 2315
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes sweeping down the plains
Contact:

Re: Swap Partition Size seems small

Post by AZgl1500 » Mon Jun 25, 2018 3:23 pm

Okay,

I agree, 14 mib is totally worthless in this particular case.

I will remove it from fstab

not going to mess with the partitions though, no real advantage for a measly 14 mib.

just commented it out:


Image

Post Reply

Return to “Mounting Partitions”