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
1answer
32 views

How to delete swap file in ubuntu?

I am trying to delete the swap file by the following link: https://www.digitalocean.com/community/questions/delete-swap-file However, when I type: sudo rm /swapfile I am getting the following error: ...
0
votes
0answers
14 views

Performance issue on computing server

I am currently training torch neural networks on two different machines : Material : Ubuntu 20.04.2 server, AMDr9 3900X 12cores , 64GiB RAM that we will call server, Ubuntu 20.04.2 Dell Laptop, i7-...
0
votes
0answers
10 views

Command to show historical swap usage by process?

I know I can see swap usage for a whole day using sar, but is there a way on CentOS to show swap usage per process for a specific day & time, highlighting a jump in usage, the PID etc?
0
votes
0answers
20 views

Does linux takes into account the speed of disk (SSD vs HDD) when using the swap?

Does the Linux system make some benchmark to see if it advantageous to use the swap more aggressively or it should be configured manually? If so, how can I configure the best swap options to SSD and ...
0
votes
0answers
32 views

add swapfile without root access

is there any way to create and mount a new swapfile for a non-root user, without sudo access, on a linux machine? For my needs, I don't necessarily need the new swap space to be accessible by any ...
0
votes
0answers
23 views

Windows 10 - Swap for Large Datasets

I'm working on a large dateset problem and need a very large swap. I have a similar configuration on another machine running RHEL 7 and it works quite well; however, I need to test similar code on ...
0
votes
1answer
23 views

Swapping machine OS with VM OS

For several months I've been playing around on VirtualBox with Linux Mint 20.0 installed on it and have tweaked the OS just the way I now want it. This VB resides inside of main bare metal Windows 7 ...
0
votes
0answers
13 views

Does using a SSD as a sawp damage the component faster? [duplicate]

I know that SSDs have a shorter write lifespan, even tho many say it will last more that the average user would use, I think that using it as virtual memory would burn it out way faster than the usual ...
1
vote
0answers
14 views

enable zswap selectively per-device?

Is it possible to enable zswap for some swap devices but not for others? I don't see any tunables, and quick checks show that even zram swaps end up using zswap (leading to double compression). Once /...
1
vote
1answer
59 views

What kind of storage would nowadays be good for swap partitions (Linux, Windows)? If NVMe SSD is used, how will this impact longevity?

Does it still make sense to use a good old magnetic disk for this purpose, maybe a RAID 0 configuration?
0
votes
1answer
22 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 ...
0
votes
0answers
89 views

What's the maximum swap memory in Linux

today I discovered what was swap memory on linux, after a PHP error "cannot allocate memory in...", "The following exception is caused by a lack of memory and not having swap configured&...
0
votes
0answers
32 views

Does Linux swap partition bad for ssd drive when system going into hibernation?

I have an older PC that I would like to setup as a home use Linux server with virtualbox. My PC has 8gb of ram but I have heard that swap partition is bad for ssd especially when under hibernation. ...
0
votes
1answer
154 views

Why is the default zram value is 1/4 of ram? Why not high values?

I noticed the usually value of zram is 1/4 of total ram. https://fedoraproject.org/wiki/Changes/SwapOnZRAM Why is bad use like 3/4 or total of ram?
1
vote
1answer
372 views

Force a process to only use swap memory?

I have a custom program that performs analysis on some data. This is a very memory-hungry operation that can potentially use thousands of gigabytes of RAM. My computer only has 16gb of RAM, so my only ...
-1
votes
2answers
647 views

How do I add a swap (Not a swap file) after installation of Kali Linux? [duplicate]

I am a dual user running Kali Linux and Windows 8.1 . A few days before, I had removed the swap partition that I had installed for Kali Linux during the installation, since my windows was running out ...
1
vote
0answers
33 views

What happened about the swap used?

Q:Why is the used value of swap so large? Is there a error/bug/problem with the kernel? env: CentOS release 6.7 (Final) [root@dc-hadoop203 ~]# free -g total used free ...
1
vote
1answer
118 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 ...
0
votes
0answers
65 views

Give space to a tiny computer (tmpfs with swap over nfs)

I have a tiny computer with not so much RAM (1-2GiB) and very little disk space in which I installed Gentoo. I also have space on a shared NFS. In order to be able to compile any package, even the ...
0
votes
1answer
347 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 ...
0
votes
0answers
49 views

Swap encryption security - separate partition vs. LVM

So I asked a question yesterday about ways to encrypt my swap partition without having to type a passphrase during boot: https://unix.stackexchange.com/questions/592188/encrypting-swap-partition, but ...
0
votes
2answers
60 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)...
0
votes
1answer
44 views

Swap space not updated

I just made my USB an additional swap and after all done I did not know how could I take the USB off my computer properly, so I just pulled it off. When I open htop the swap space that the USB ...
0
votes
2answers
158 views

Unable to write the entries in /etc/fstab

I am using below playbook to write the entries in /etc/fstab & to create swap file: --- - name: Configure SWAP hosts: localhost become: yes become_user: root tasks: - name: ...
1
vote
1answer
95 views

What size swap partition will allow a Mint 19.3 installation with 64G RAM to hibernate?

This same basic question is asked at How can I enable hibernation under Linux Mint 18.3?, but the question as asked only tells how much space is desirable for a 4Gi installation, and conflicting ...
0
votes
1answer
88 views

Does swap size have any relevance to suspend to RAM?

I'm having some trouble suspending my Xubuntu 19.10 machine and I've recently heard a suggestion that I might need more swap. Currently I have about 1GB of swap for 8GB of RAM, which I've heard is a ...
0
votes
1answer
61 views

What unit does swapon use for size?

Both swapon -show and cat /proc/swaps report that I have a swap of size 1003516 and no unit is given. At first I assumed that this was bytes, giving me about 1 megabyte. However, free -mh reports that ...
1
vote
1answer
408 views

why does it start to swap when there are still plenty of memory?

$ free -h total used free shared buff/cache available Mem: 125G 16G 105G 26M 3.3G 107G Swap: 8.0G 1....
0
votes
0answers
63 views

Why is my keyboard not functioning when I load my PC causing it to swap upto 2GB of memory?

I have a below avarage laptop with 6GB RAM (I know it should be either 4GB or 8GB for optimisation reasons and such but I gotta work with what I got) and about 1GB of it is used up by my desktop ...
0
votes
1answer
525 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:~$...
0
votes
1answer
36 views

Memory of disk assigned as swap doest fit

I have problem with understanding of disk partitions for swap. Problem is about size. I create new particion via fstab with size 2GB: Command (m for help): n Partition type: p primary (0 primary, 0 ...
2
votes
2answers
603 views

full disk encryption and encrypting swap with temporary keys

When I installed Debian Buster (with a stock 4.19 kernel) on my device, I opted for guided partitioning with full disk encryption. So the current setup is LVM on LUKS, and /boot is unencrypted: user@...
1
vote
1answer
341 views

Ubuntu 18.04.03 cannot hibernate

I am using a swap partition of 10.5GB (almost) while RAM of my system is 8GB. My /etc/fstab file looks like this # /etc/fstab: static file system information. # # Use 'blkid' to print the ...
0
votes
1answer
54 views

Less Threads or More Swap Space?

I am running multiple terminal cmds using threads in Python (don't make fun of me, there is a reason). These cmds sometimes overpower the available memory and I have been forced to increase my swap ...
2
votes
1answer
42 views

Why is the modification date of my swapfile not changing?

If I check with stat the modification date is not up to date File: /home/shares/swap.file Size: 1962934272 Blocks: 3833864 IO Block: 4096 regular file Device: 801h/2049d Inode: 15 ...
0
votes
0answers
78 views

Low RAM for application in Linux

I install software in Linux called Spades, but I can't run it because of a RAM problem. When I tap the "spades.py --test" command, I get this error: When I tap the "free" command to check the swap ...
0
votes
0answers
322 views

Why does my Linux laptop not use swap space aggressively even with high swappiness value?

I have around 8GiB of RAM on my laptop: $ free -h total used free shared buff/cache available Mem: 7.7Gi 6.9Gi 214Mi 381Mi 580Mi ...
2
votes
1answer
1k views

Can I make Virtual machine use swap-space(swapfile) as a memory when overcommitting?

I am doing some experiment with VM and KVM. I am trying to realize the fact of overcommitment and swap-space. At first, let me show the system setup and associate configuration that I made for this ...
0
votes
0answers
64 views

how to make zswap on hdd

I run Lubuntu and have a partition from an old Ubuntu install, which i want to use for a zswap, or if that is difficult for a plain swap. Disk /dev/sda: 298.1 GiB, 320072933376 bytes, 625142448 ...
1
vote
2answers
845 views

How to make swap on a removable SD card?

I have a 16GB SD card which shows as /dev/sdb unallocated space in Disks app. I can do mkswap /dev/sdb swapon /dev/sdb but when I restart the whole thing disappears. How can I make it stay?
3
votes
0answers
131 views

Linux Mint 19 Cinnamon - Hibernate doesn't save data

I recently dual-booted my Windows 10 machine with Linux Mint 19. When I realized that I couldn't hibernate my PC to switch into Windows without losing all my open windows, I did a quick Google search ...
1
vote
1answer
142 views

Want get rid of “fedora/swap”

I had changed my swap partition, and all is works. But when reboot, Fedora 29 jammed for a long time, and enter emergency mode. It seems wait for "/dev/fedora/swap", but here only "/dev/fedora00/swap" ...
0
votes
1answer
61 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.
0
votes
0answers
89 views

Low free swap but nothing uses it

We've PostgreSQL 10.3 running on 7.4.1708. Yesterday, suddenly something claimed swap space about 2.2GB. I could find only few process and restarted them only got about 200MB. I've dropped ...
2
votes
1answer
582 views

Is it possible to swap 2 hard drives and keep OS running without formatting?

Recently I bought an SSD drive (Samsung Evo 860 250GB) and installed it in place of the DVD drive (SATA II 3.0Gb/s). I removed the DVD drive. Then I used Samsung Magician and copied the HDD drive to ...
1
vote
2answers
272 views

Extend linux root drive in Dual Boot OS

Any idea how to add the 31GB unallocated space to /dev/sda7? I disabled linux swap(swapoff) but still can't add the space or move it in the extended partition. I am running gparted from live usb. The ...
0
votes
1answer
114 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 ...
0
votes
0answers
43 views

Asus S300C is blocked by abnormal disk business

I have been using my laptop ASUS S300C through various ages. Recently I am experiencing a continuous lagging functioning and not responding windows. It does not matter what OS I have installed (...
0
votes
0answers
480 views

Chrome doesn't use swap

I have written a single page application that gradually loads objects, and memory usage increases. At a certain point, Google Chrome shows an error page, and from the log I see [1:1:1210/224428....
0
votes
1answer
3k views

If I swap out a Bitlocker encrypted SSD to another one, then reintroduce the original SSD in the PC, will it require Bitlocker-unlocking to use?

I am wondering if it would be possible to take out a Bitlocker encrypted SSD from a PC, put in another one and use the PC, then swap the original drive back without it having to be Bitlocker unlocked. ...

1
2 3 4 5
7