Questions tagged [swap]

Swap space is a virtual memory of RAM. It is used when the amount of RAM is full. Swap space can be a dedicated swap partition, a swap file, or a combination of swap partitions and swap files.

Filter by
Sorted by
Tagged with
0 votes
2 answers
2k views

Explain `fstab` swap syntax

Disk sda is SSD, while sdb is a conventional hard drive. # cat /proc/swaps Filename Type Size Used Priority /dev/sda1 ...
174140's user avatar
  • 94
0 votes
1 answer
3k views

I have a Linux swap partition but how do I set it up permanently?

I have a laptop with 2GB RAM and not the funds to buy more RAM. Ever since I installed 64-BIT Mint (MATE desktop), I am using more than 1GB RAM compared to between 170 - 500MB when I was in 32-BIT ...
Xian's user avatar
  • 11
0 votes
2 answers
253 views

What is better to use for big swap as an extension of RAM: SSD or 15k HDD (Cheetah)?

I need to hugely extend RAM in the platform I can't do it. As a temporary solution I want to use swap for it. What is better to use for swap storage - an SSD or 15k HDD like Cheetah? I understand that ...
flashnik's user avatar
  • 109
0 votes
4 answers
8k views

Windows 7 Virtual Memory Optimization - ReadyBoost vs. Flash Swap vs. RAM Disk?

At first i thought ReadyBoost means having swap file allocated to flash drive which is wrong because ReadyBoost serves as additional storage for swap file or should i say it mirrors swap file on hard ...
Boris_yo's user avatar
  • 5,864
0 votes
1 answer
133 views

Can I temporarily swap out my new MacBook hard drive with the old one?

I recently upgraded my standard hd to an ssd. There are some files on the old one that I still need to access. Can I simply swap the current one for the old one temporarily? Just to email off some ...
Weston's user avatar
  • 103
0 votes
2 answers
652 views

Debian server seems to use more and more swap

I've got a problem with my debian server. It has 4GB of ram and 1GB swap. Swap is around 95% full and ram still has 80% left. I'm running lighttpd (max 40 users at the same time) and some gameservers (...
sascha's user avatar
  • 490
0 votes
3 answers
2k views

sizes of RAM, of virtual memory and of swap for 32-bit OS

If I understand correctly, a 32-bit OS (Ubuntu) can only address 4GiB memory, so RAM with size larger than 4Gib will only be used 4Gib of itself and the rest is a waste. I am now confused about this ...
Tim's user avatar
  • 17.3k
0 votes
2 answers
204 views

Cannot use free space for swap partition

I am trying to increase the swap space on a CentOs-7 VM. I was running a program that crashed on the VM complaining about running out of memory. I thought increasing the swap space might fix the issue....
Mohammed Arshaan's user avatar
0 votes
1 answer
246 views

Windows support for discard operation of disk drives

Calling a discard operation by a file system to hardware storage is important for both optimal lifespans of solid-state drives and space reclamation of thin-provisioned virtual drives. Information ...
brainchild's user avatar
0 votes
1 answer
245 views

Is unencrypted swap partition safe after shutdown in linux OS?

I am trying to google this question, but so far I don't find any answer online. I am running debian OS. Unencrypted swap partition is NOT safe when the system is using it and running. Hackers may get ...
sgon00's user avatar
  • 885
0 votes
2 answers
828 views

swap order of text in notepad++

I'm trying to swap my code (over 1000 lines) of this: from: HA09 HA(a9b0, a8b1, Cout09, Sum09); FA19 FA(Sum09, a7b2, Cout08, Cout19, Sum19); to: HA HA09(a9b0, a8b1, Cout09, Sum09)...
learner's user avatar
0 votes
1 answer
4k views

How can I use a flash drive to increase my virtual memory?

My computer has 8gb of physical memory. I'm running some memory intensive processes that quickly eat up that 8gb. When the physical memory runs out, it starts using the virtual memory and I see ...
Daffy's user avatar
  • 289
0 votes
4 answers
217 views

Partitioning a Linux based system

I am using Linux Mandriva OS. During installation my friend suggested 2GB for the swap partition and the remainder as the root partition. What is the use of providing a separate space for root? ...
Rajan Chennai's user avatar
0 votes
2 answers
2k views

Resizing swap partition (RHEL 5.x)

The following is what parted print outputs: (parted) print Model: VMware Virtual disk (scsi) Disk /dev/sda: 26.8GB Sector size (logical/...
ring bearer's user avatar
0 votes
1 answer
91 views

On Ubuntu, will I benefit by using a swapfile on a network share?

My setup is as follows: A strong desktop, with quad core CPU and a 7200RPM HDD. A weak three years old lenovo laptop, used as a media center, running Ubuntu. They are connected using WiFi (N). ...
Tzafrir's user avatar
  • 123
0 votes
1 answer
4k views

How to find which programs are using up swap space

How can I figure out which programs are using up swap space? My current memory usage is 2.9GiB out of 3.0GiB used(and I though I had 4GB, I need to check into that) and 1.3Gib of swap used.
Echo says Reinstate Monica's user avatar
0 votes
2 answers
3k views

Linux - Use disk as RAM

I have a VM and in it a process that consumes a lot of memory (~200GB). Some sort of in-memory DB. I need to run it on a standard laptop and I cannot recompile it or see the code. I've added 256GB of ...
assafmo's user avatar
  • 111
0 votes
1 answer
84 views

Windows page file

I'm working on some CGI and am running out of RAM as well as page file space. However I have a second drive with a little extra space I could use for swapping. I have one question: If the swap space ...
posfan12's user avatar
  • 662
0 votes
1 answer
2k views

New Ubuntu 12.04 install doesn't have swap working

This is a brand new Ubuntu 12.04 installation on my netbook. During installation I selected to encrypt my home folder. Now I'm trying to set up hibernation, but my swap partition isn't working. ...
user avatar
0 votes
2 answers
807 views

I've two swap partitions, how can i delete one?

I've installed Ubuntu on my computer but I did a mistake during the installation and it created two swap's. In fact I had tree partitions (system, home, swap) but the installator crashed so I ...
Gp2mv3's user avatar
  • 123
0 votes
1 answer
960 views

System thinks it is swapping, but isn't

I have a linux server (Ubuntu 10.04) which has no swap space (swapon -l reports nothing, 0kb swap memory listed in /proc/meminfo). The beginning of the output of top (sorted by %mem) is reproduced ...
Zack Bloom's user avatar
0 votes
2 answers
68 views

utilities of swapped partition

Can swapped space from hard disk be used to increase availability of RAM for playing games etc. on Windows XP?? Can anyone tell me how to do such a swap??
skj's user avatar
  • 1
0 votes
1 answer
1k views

Does an Ubuntu Server need swap space?

I'm setting up a home server that will be used for backups and serving up files over the Internet with Ubuntu Server 8.04.3. Do these kinds of tasks require swap space?
AtomFury's user avatar
  • 159
0 votes
1 answer
60 views

Is there a way to shift two logic volume position?

I had an existing Centos Stream 8 Linux System configured as automatic partition when it was installed. The partition/logic volume layout as: [root@Centos8Gateway ~]# lsblk NAME MAJ:MIN RM ...
cidy.long's user avatar
  • 149
0 votes
1 answer
678 views

Resizing my swap partition on Debian encrypted lvm setup has disabled hibernate, how can I fix it?

I installed Debian 11 on an ancient netbook, encrypted with a separate /home partition, otherwise accepting all the defaults. Once I'd got the system set up I realized that I'd only got a 1GB swap ...
John Lawrence Aspden's user avatar
0 votes
2 answers
1k views

Pagefile on Windows 10 limited to 64 GB?

I have a few tasks where I can't avoid using tons of memory. Since I have limited physical memory, Windows starts using the SWAP/Pagefile. Though it seems that Windows is limiting the pagefile size to ...
Tommy's user avatar
  • 3
0 votes
1 answer
1k views

How to create and configure swap space on an SSD with a running, LUKS-encrypted Linux system?

I have a trusty old ThinkPad R60 with only 3 GB RAM (upgraded from 2 GB) with Linux Mint Debian Edition 4 running on it. I chose LMDE for stability and the desktop environment. The machine is one of ...
david's user avatar
  • 337
0 votes
1 answer
2k views

How to remove linux swap partition from a disk?

I need to tell details about my disk first: I bought SSD drive (223 Gb) a while ago and decide install on it Windows 10 and Ubuntu 16.04, I have split drive 450 Mb + 100 Mb + 173 Gb for Windows 10 and ...
XCanG's user avatar
  • 153
0 votes
1 answer
2k views

How to reduce the size of swap file from 3.8 GB to 1GB?

I'm using Jetson TX2 L4T v28.3 but I can't seem to find the swap file in L4T OS 28.3 (UBUNTU Bionic 18.04). I tried to locate it via grep but the file can't be located. jetpack4-2@jetpack42-desktop:~$...
Anuj Patil's user avatar
0 votes
1 answer
194 views

Is it possible to use a partition for a paging file across multiple Unix distros and a Windows partition?

I have a Unix distro that has its own paging file, but I want to switch over to a partition so that it can be utilized by all three systems.
avisitoritseems's user avatar
0 votes
1 answer
248 views

Is there a performance gain for running a web browser and/or swap from SSD?

What's the bird's eye view of running a specific application from an SSD for improved i/o in comparison to a standard hard drive? Would this help with browser speed? The list of applications which ...
Thufir's user avatar
  • 1,610
0 votes
2 answers
1k views

Linux server swapping before memory is completely full

I expected all the RAM to be used before experience swapping, but I have this strange result in htop: Meaning that on my server with 24GB of RAM, my software swapped 1GB of memory to disk, when they ...
Romain Jouin's user avatar
0 votes
1 answer
49 views

Map Linux and Swap partitions

I have parallel installations of ubuntu and elementary os. I want to be able to hibernate both of them so I created 2 swap partitions. Now how do i map the installations and swap partitions so that ...
Nirmik's user avatar
  • 133
0 votes
1 answer
224 views

Can a filled up swap partition cause file locking issues on linux

I have a machine at home running elementary OS 0.2 with very little RAM, the swap is always allmost full (I'll upgrade the RAM as soon as I can.) It has an OpenSSH server set up with public key ...
fuumind's user avatar
  • 423
0 votes
3 answers
3k views

Linux server is running out of memory and swap

I guess there is some memory leakage and memory is not being freed. Is there some good ways to find out which process and why is leaking memory? The only temporary solution is to restart server. But ...
Andrius's user avatar
  • 607
0 votes
2 answers
928 views

Windows 8.1: Is there a way to find out how much swap space is currently being used?

Not the size of the file on the disk. Older versions of Windows used to have "%pagefile in use" in the Performance Monitor. Thanks. UPDATE: In turns out Windows 8.1 still includes the Performance ...
Emery Lapinski's user avatar
0 votes
1 answer
60 views

swap\pagefile of 2 levels

Lets assume I want to assign 2GB to swap(linux)/pagefile(windows) on SSD, and 16GB more on HDD. Is that possible to use the space on SSD as level 1 of virtual memory, and the space on HDD as level 2 ? ...
Dani-Br's user avatar
  • 103
0 votes
2 answers
1k views

How to realocate space from the Swap partition to the ext4 'normal' partition in Ubuntu?

My Linux is running in a VM for which I allocated half of the physical amount of RAM (32 div 2) and 20 GB of disk space. I can see the structure of my disks. The 'linux swap' partition took 16GB. ...
CLM's user avatar
  • 13
0 votes
2 answers
3k views

Increase Performance by utilizing RAM instead of swap (Windows 8) [duplicate]

My computer is pretty fast, but I feel it may be getting slowed down by putting things in swap which would do better in RAM. I have 16 GB of ram, and even in conditions where only around 3 GB is used, ...
Colin's user avatar
  • 103
0 votes
1 answer
2k views

Move swap partition

How can I move swap (sda5) partition in my Debian 7 from main SSD disk to second HDD? lsblk output NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sdb 8:16 0 931.5G 0 disk ├─sdb1 8:17 0 ...
PSSGCSim's user avatar
  • 243
0 votes
2 answers
706 views

Swap is empty on Linux

How can I create or resize the swap memory on a linux device (Amazon Linux AMI). The problem came when I run a program and it gave me that errors: IOError: [Errno 28] No space left on device INFO (...
Marc Ortiz's user avatar
0 votes
1 answer
3k views

Windows 7 Hard fault / Page fault and memory bottleneck

Windows 7 resmon displays 0 hard faults. But perfmon shows pagefault around 60 and perfmon /report tells me my system swaps actively. AFAIK not every page fault is hard fault: page could be stored ...
user avatar
0 votes
1 answer
3k views

What is "Swap Space" and "Locked Memory" in Solaris?

I am aware of the generic concept of swap space (in Linux). Is the same applicable for Solaris (solaris zones) too? Or is the swap concept different in solaris? Is there any connection between swap ...
thegeek's user avatar
  • 3,928
0 votes
1 answer
193 views

Fedora Core 39 Disable zram0

Background: I have several VMs that do not need sleep or other things. I generally provide them enough RAM to do their job and not need swap. I kickstart them and build them without a swap partition. ...
Chris's user avatar
  • 41
0 votes
0 answers
62 views

vmstat + on RHEL machine high values of swpd

The swpd field indicates how much swap space has been used; this value increases when your systems physical memory is full and the Linux kernel starts to use the swap partition/file. When the systems ...
King David's user avatar
0 votes
1 answer
88 views

What happens if I execute swapoff && swapon when RAM + swap exceeds RAM capacity

What happens if I execute the command sudo swapoff -a && swapon -a having RAM full 25GB/32GB and swap full 20GB/32GB? 25+20 = 45 > 32 so there's no way RAM can fit all operating data. On ...
banan3'14's user avatar
  • 227
0 votes
0 answers
42 views

Can I control how windows page file behaves? [duplicate]

As we all know Linux has swappiness option that we can change according to our needs to control how it behaves, so my question is, is there any command or anything like that what we can change to make ...
jastyles's user avatar
0 votes
0 answers
231 views

Swapping with Paging and Swappiness (Linux)

In Abraham Silberschatz's Book, Greg Gagne, Peter B. Galvin - Operating System Concepts (2018) says: Standard swapping was used in traditional UNIX systems, but it is generally no longer used in ...
robert's user avatar
  • 1
0 votes
1 answer
886 views

BTRFS warning (device xxx): swapfile must not be copy-on-write. Why swap is activated when disabled?

I have SSD. When I check dmesg I see warnings and fails: $ sudo dmesg | grep swap [ 0.085887] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization [ 0.429424] zswap: ...
Eugen Konkov's user avatar
0 votes
1 answer
548 views

CPU Limiting & kswapd0 Advice Saught

Through hours of testing, I have found that the nextcloud desktop sync client for ubuntu 20.04 (appimage or ppa) both seem to have a bug to where... if a common nextcloud file sync error occurs , ...
mjones's user avatar
  • 307

1
4 5
6
7 8