How will hibernation work in two Linux installations sharing a swap partition?
This question is a more specific “subquestion” of the one about side effects when two distros share a swap partition.
This question is a more specific “subquestion” of the one about side effects when two distros share a swap partition.
/proc/sys/vm/swappiness is nice, but I want a knob that is per process like /proc/$PID/oom_adj. So that I can make certain processes less likely than others to have any of their pages swapped out. Unlike memlock(), this doesn’t prevent a program from being swapped out. And like nice, the user by default can’t make their programs less likely, but only more likely to get swapped. I think I had to call this /proc/$PID/swappiness_adj.
What sets the size of the tmpfs? (On my machine it resides in /dev/shm)
I can see its entry in /etc/fstab, but no notation of its size.
When checking with df -h, it seems to be half the size of the physical memory installed in the system.
Is this the default behavior?
On my Debian VM machine with 512 MB RAM and 348 MB swap, what will happen if I open a 1 GB file in an editor and get out of memory?
During installation of most (if not all) distro’s of linux, the hard drive is partitioned to include a swap partition by default.
The Linux kernel swaps out most pages from memory when I run an application that uses most of the 16GB of physical memory. After the application finishes, every action (typing commands, switching workspaces, opening a new web page, etc.) takes very long to complete because the relevant pages first need to be read back in from swap.
Situation: increase swap size (/dev/sda3) greater than Ram (8 GB) when HD 128 GB
Motivation: 8 GB RAM is too little; 30 GB free space in my SSD; I want to turn 20 GB to SSD swap
Characteristics of system