Swap space is an area of the hard disk that serves as an overflow when the computer memory is full. The memory used by inactive applications is partially written out to disk to make room for other applications and for the disk cache for active files.

learn more… | top users | synonyms (1)

1
vote
0answers
9 views

Have troubles with hibernation on arch linux

My system doesn't resume after hibernation My hooks cat /etc/mkinitcpio.conf | grep resume HOOKS="base udev autodetect modconf block resume filesystems keyboard fsck" Then I done mkinitcpio -p ...
0
votes
0answers
19 views

Linux Mint 18 - Computer fully powering off when told to hibernate

I am having trouble getting my computer to hibernate. When I tell the computer to hibernate, it just powers off completely after a few seconds. When I power it back on it starts up from the beginning, ...
0
votes
0answers
19 views

Lubuntu - Cannot poweroff laptop when using swap

I'm using Lubuntu 16.04 on my Notebook HP Pavilion g6-2305sl, and I'm having some troubles apparently (I'm not really sure) connected to swap usage. I boot up with the command line login shell and ...
4
votes
2answers
186 views
+50

How to Allocate More Space to Swap and Increase its Size Greater than Ram?

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 ...
1
vote
0answers
11 views

Why total swaps and page faults/reclaims is empty in ps?

I'm running the following command: sudo ps -axo nswap,majflt,minflt,command | sort -nr | head which suppose to print total swaps in/out, total page faults and reclaims. But for given >400 ...
0
votes
1answer
41 views

How to deal with high number of page faults?

I've got ~200000 page faults per second and I think it's a huge number and it affects the overall system performance. I'm using MBP with 16G of RAM. How to deal with such number of page faults (...
-3
votes
1answer
38 views

How to Do Error-trapping and Swapoff if Error/Warning?

Pseudocode where incomplete pseudo try-catch after cas' comment #!/usr/bin/env bash # http://askubuntu.com/q/799834/25388 # Use: `sh myScript`; sudo does not work with Matlab. #set -e # no ...
3
votes
2answers
60 views

How to Resolve the Insecure warning in Swapon?

I do #!/usr/bin/env bash # http://askubuntu.com/q/799834/25388 # http://stackoverflow.com/a/69808/54964 set -e SWAP_FILE="/media/masi/SamiSwapVirtual/.swap_file_20.7.2016" SIZE_MB=16000 dd if=...
0
votes
0answers
10 views

Android, microSD and SWAP

I have an Android 4.4.4 device (which I can easily root) with a 32 GiB microSD card, which is secured well and will not be disconnected during normal work. Is there a way I could use that card or more ...
0
votes
1answer
42 views

Can swap get corrupted?

We keep having swap problems when moving a lot of files or deleting them. The latest message is "out of swap space" We rebooted. However, "out of swap space" now occurs during boot. Freenas just ...
1
vote
2answers
40 views

Increase swap space in linux through terminal

While installing Oracle DB in linux machine, I face a problem like swap space is not sufficient. How can I increase the swap space?
1
vote
0answers
29 views

Installing RHEL to multiple-boot with Windows and two other Linux distributions

Alright, so I made an earlier attempt to install RHEL 7.2 with automatic partitioning, and it turned into a mess since I have 3 other operating systems installed (windows + 2 Debian based Linux ...
0
votes
0answers
33 views

How do I setup an encrypted swap partition in Kali?

I am attempting to setup an encrypted swap partition on my Kali system, post-install. This system is also able to dual-boot into a windows 7 system that was encrypted with veracrypt. I have been ...
3
votes
1answer
89 views

I can't enable Swap space on CentOS 7

So I'm following a tutorial to install OTRS which is Open source Ticket Request System. So in order to install, it requires: 4GB of Swap space. Here's the command i used: [root@ip-10-0-7-41 ~]# df -h ...
1
vote
1answer
50 views

Use SWAP as disk cache in Linux

I am using different kind of disks on my server. Is it possible to use faster disk as SWAP and ask Linux to use it as Disk cache As I understand Linux use SWAP only for application data not disk ...
3
votes
0answers
28 views

Entire Harddrive to linux swap

I have an old hard drive that is less than 50Gb and a computer that only has about 4Gb of ram (and ~250Gb main HDD). I was thinking about using the second drive as an entire drive linux-swap partition....
4
votes
1answer
47 views

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. What will actually happen if I install two Linux distributions on my machine with ...
1
vote
2answers
56 views

Can lower swappiness speed up wake-up from hibernate?

Does anyone use swap? what is your swapiness value? Mine are 60 $ cat /proc/sys/vm/swappiness I use hibernation. It worked but slow to load when wake-up.. If I tune swappiness from 60 to 10. Does ...
1
vote
1answer
42 views

How to obtain counters for swap-in/swap-out on Linux?

I'm trying to obtain counters for swap-in/swap-out activity on CentOS 6. The intention is to feed raw data into RRDtool to generate graphs, and use it to generate alerts. I've had a look at common ...
1
vote
1answer
35 views

mkswap complains that partition is misalilgned (LVM on RAID-0)

I have a RAID-0 setup on two identical hard disks (same brand and model). The partition table is identical on both (I have cloned it). However, /dev/md0 occupies only part of the disks, because I had ...
3
votes
1answer
23 views

Can I deny use of swap space to a specific process (and have it just get killed)?

While developing some software, a program under test sometimes eats all the memory, then proceeds to yomp into the swap space and start thrashing the disk, leading to a predictable drop in ...
1
vote
0answers
40 views

Unable to activate new encrypted swap partition

First off, I did not reboot and would not like to, it's a server. It is running Debian Jessie 8.4 with kernel 3.16.0-4-amd64. I followed these steps: apt-get install cryptsetup -> no problem ...
3
votes
2answers
117 views

Linux using whole swap, becoming unresponsive while there is plenty of free RAM

I am experiencing a weird issue lately: Sometimes (I cannot reproduce it on purpose), my system is using all its swap, despite there being more than enough free RAM. If this happens, the systems then ...
0
votes
1answer
29 views

set swap space to 0 on RHEL for testing

I have tried to change the swappiness to 100, and used the malloc() code in order to set the swap to 0 on my rhel system But this not seem to be helpful . The system memory allocation looks like this :...
1
vote
2answers
38 views

Get swap memory info where swapinfo not available

I have HP-UX box. I need to write shell script to see the swap memory. Unfortunately. The box don't have swapinfo command. Is there any alternative way to see the swap usage percentage? Please note ...
1
vote
1answer
88 views

Ext4 corrupted and unrecoverable after LVM resizing + power failure

I have a completely standard, single hard drive Fedora 23 desktop. The dual-boot installer set up the Linux partition as LVM, with root, swap and home logical volumes; root and home were both ext4. ...
0
votes
1answer
49 views

Vim saved file not updating on webpage

I am attempting to update an HTML file on my server, but when I do so it doesn't appear to be updating, but rather, serves an old copy instead. I went through the usual process of pressing :w and ...
3
votes
1answer
75 views

Keep a process in RAM (prevent it from swapping)

I want to keep a process in RAM. It should never go into swap. Is this possible? The process is a Java program. I'm running CentoS 7.
1
vote
0answers
70 views

how does systemd activate encrypted swap file on alternate partition?

I have 2 partitions: / and /data. My swap file is encrypted at /data/swap. So /etc/crypttab looks like: root_crypt UUID=6666 none luks swap /data/swap /dev/urandom swap And /etc/fstab looks like (...
3
votes
1answer
34 views

How does Linux manage “simultaneous” writes to swap/disk partitions in virtual memory?

I'm currently working on an educational operating system called Pintos. While implementing virtual memory, one of the issues that I'm having is writing data to swap in a page fault that happened while ...
3
votes
1answer
46 views

Making a swap partition using lvm

When we make a swap using a regular physical drive, we just use fdisk and make a partition with type swap, using the swap code for that partition, followed by mkswap and swapon commands. But what if,...
0
votes
2answers
41 views

Cleaning swap space while running

I have a theoretical question, What would happen if I clean up all the swap space while running, Would the operating system crash because of page faults that would happen in the kernel?
0
votes
0answers
24 views

swap goes the second drive, how can I return it to normal from command line?

The following is my plan for partition of CentOS 6.7. I have two disks with A for system and files, B totally for backup. But, after installation, I log in using ssh root. Here is what I see: (...
1
vote
1answer
63 views

Machine freezes once it hits swap space under heavy load

I encountered several crashes of my machine. Meanwhile, I can reproduce it when I start a program that fills up all memory. Once the system starts writing to the swap file, the system freezes and I ...
3
votes
1answer
26 views

Setting up encrypted swap in LMDE (debian)

I want to use a swap drive that is encrypted by a random key on boot. I'm not sure if I am doing it safely, though. I currently have /etc/crypttab based off of the example on arch wiki. Unlike their ...
0
votes
1answer
53 views

-/+ buffers/cache & Swap

When should the usage of swap get started? or How do I know that my swap is being used? At least some times if not always, considering the default swappiness of 60 Also, why does free offer to omit ...
4
votes
1answer
112 views

Silent disk errors and reliability of Linux swap

My understanding is that hard drives and SSDs implement some basic error correction inside the drive, and most RAID configurations e.g. mdadm will depend on this to decide when a drive has failed to ...
1
vote
1answer
34 views

vm.swappines parameter influence on system without swap partition

I run across following definition of vm.swappines: The swappiness parameter controls the tendency of the kernel to move processes out of physical memory and onto the swap disk. So, if I have ...
0
votes
1answer
29 views

Crash with input/out error and swap unmounting [duplicate]

I am looking for hints on this problem. I've searched around, but can't find something exactly similar. I am running Debian 8 stable, updated, very minimal install (i3wm, small number of apps running)...
1
vote
3answers
142 views

How to configure swappiness in Linux Memory Management?

The swappiness parameter controls the tendency of the kernel to move processes out of physical memory and onto the swap disk,what is the default setting and how to configure that to improve overall ...
-2
votes
3answers
68 views

why we need ram if we having swap memory? [closed]

In Linux we have a swap memory right. the system will use swap memory if ram memory is full.then what is require of RAM we can use directly swap memory.
3
votes
1answer
72 views

Wear leveling of SD card because of swap file in embedded linux

I need to enable a swap file on my embedded linux product. The problem is that the file is located on an SD card. At the moment I'm using 15MB swap and about 120MB RAM because of temporary increases ...
1
vote
2answers
75 views

Recover from faking /proc/meminfo

So, without really thinking too much, I ran this script: #!/bin/bash SWAP="${1:-512}" NEW="$[SWAP*1024]"; TEMP="${NEW//?/ }"; OLD="${TEMP:1}0" sed "/^Swap\(Total\|Free\):/s,$OLD,$NEW," /proc/meminfo &...
1
vote
1answer
109 views

hibernation and swap partitions on ssd/hdd

I'm quite a beginner in Linux and I've got some problem to decide: I've got a laptop with two disks - 1TB HDD and 256 SSD, and 12GB RAM and I want to install debian on SSD. I used hibernation a ...
1
vote
0answers
33 views

Real-time monitoring of changes in swap use (per process)

I'm looking for a way to observe which processes in my system are consuming an increasing amount of swap over time. The following function generates a list of swap user per process : sbp(){ grep ...
4
votes
0answers
42 views

Why does /proc/*/status not account for all swap used on a system?

I have a system that has been swapping recently and am unable to account for all swap that is shown as in use by tools like free or top. Specifically, I can account for 19GB of 28GB swap used (...
4
votes
1answer
157 views

Pulling all of a process's swapped memory out of swap

How would one go about quickly pulling all of a process's swapped memory out of swap without writing to disk? The context on this issue is trivial, as the systemic issue necessitating the question ...
4
votes
1answer
56 views

Can I mark _current_ memory contents as non swappable?

Background: in my linux (ubuntu) workstation, I want to run some experiments that allocate more memory than the physical RAM while I do other 'normal' stuff in the GUI. Problem: I have plenty of ...
3
votes
3answers
163 views

I need to take the output of command and make it the name of a file using a script [duplicate]

I am working on a way to integrate our Linux machines into our SCCM Reports. One of the things we would like to do is verify the swap size on the machines. I know that I can get the swap amount on ...
3
votes
2answers
133 views

Swap: Better to create a dedicated swap partition or to create a swap file?

is there a rationale when to create a dedicated swap partition vs. creating a swap file, for example like /tmp/swap? In my certain case, memory is kind of low (1GB), disk space on a SSD is pretty ...