Score:0

how to increase swap partition size and what is the min size

th flag

i have 8 GB RAM and for swap partition it is just 2 GB . I installed ubuntu 20.4 in my pc can i increase the swap partition to avoid pc bloking because it s 100% full all the time and the ram memory it's often used 80%

ChanganAuto avatar
us flag
Increasing RAM should be the priority, obviously, but increasing swap helps. If you really have a swap partition instead of a swapfile then you need to boot a live session, swapoff, remove the swap partition, eventually shrink some other partitions to make room, create a new swap partition of let's say 8GB and edit fstab to include the new one.
oldfred avatar
cn flag
Linux caches applications in RAM, so that it is used is a good thing. Larger swap will not make any difference. You do not want swap used. If system is using swap then more RAM would be suggested. http://askubuntu.com/questions/743649/new-16gb-of-ram-installed-yet-i-see-15-3-on-my-system-why?noredirect=1#comment1106622_743649 & https://askubuntu.com/questions/184217/why-most-people-recommend-to-reduce-swappiness-to-10-20/184221#184221 Linux ate my RAM! - memory use cache http://www.linuxatemyram.com/
heynnema avatar
ru flag
Do you use a /swapfile or an actual disk partition? Edit your question and show me `swapon -s` and `free -h` and `grep -i swap /etc/fstab`. Start comments to me with @heynnema or I'll miss them.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.