Questions tagged [swapfile]

85 questions
112
votes
7 answers

Found a swap file by the name

When I try to merge my branch with a remote branch: git merge feature/remote_branch I got this message: E325: ATTENTION Found a swap file by the name ".git/.MERGE_MSG.swp" owned by: xxxxxx dated: Mon Nov 12 23:17:40 2012 file…
Malloc
  • 15,434
  • 34
  • 105
  • 192
80
votes
2 answers

How to change the folder path for swp files in Vim

I'm working at a project on a remote server. I don't want to have the swap files on the server. I would like all swap files for Vim (and, of course, gVim) to be saved on the specified directory. How could I do that?
sica07
  • 4,896
  • 8
  • 35
  • 54
54
votes
3 answers

Change Vim swap/backup/undo file name

Is it possible to change the way Vim names its swap/backup/undo files? To avoid clutter, I've set options in my ~/.vimrc to dump these files in ~/.vim/tmp/{swap,backup,undo}; however, as I routinely edit files in different directories with the same…
Robbie
  • 1,359
  • 3
  • 14
  • 16
25
votes
3 answers

Why don't most Android devices have swap area as typical OS does?

Does any Android today support swap area which is suppose to boost the performance? What are the considerations that make most Android devices drop that feature?
JackWM
  • 10,085
  • 22
  • 65
  • 92
17
votes
3 answers

How to prevent paging for one program / process?

I have a program that requires much memory, like 2/3 of all the physical ram. After some runtime my operating system begins to swap the program to hdd. But I need the program to respond very fast all the time, so I need to prevent paging for that…
dan
  • 5,377
  • 13
  • 39
  • 44
15
votes
3 answers

Do virtual machines need swap partitions?

I am running Ubuntu on my physical machine; and VirtualBox to run various virtual ones on top. Most of the time, I was doing "straight forward" installations; but today I wanted to be "smart" and checked out the partitions that the fedora or ubuntu…
GhostCat
  • 137,827
  • 25
  • 176
  • 248
12
votes
0 answers

How to clear swap files in Mac

I'm making a small project using Xcode 4.2 which uses the current versions of the following libraries - Ogre3d, ArUco, Bullet (using OgreBullet wrapper) and OpenCv. I'm facing a big problem with the swap files presumably due to memory leak in…
Ani
  • 1,655
  • 3
  • 23
  • 37
11
votes
2 answers

execute commands in a CoreOS cloud-config (e.g. to add swap)

I see that unlike the standard cloud-config file, there is no runcmd option in a CoreOS cloud-config file. Currently, I enable swap on a CoreOS machine by adding the following to my cloud-config: units: - name: swap.service command:…
cboettig
  • 12,377
  • 13
  • 70
  • 113
9
votes
1 answer

Can I configure Linux swap space on AWS Elastic Beanstalk?

Can I configure Linux swap space for an AWS Elastic Beanstalk environment? I don't see an option for it in the console. From looking at /proc/meminfo on my running instances in my environment MemAvailable is looking quite low despite there being…
pauldoo
  • 18,087
  • 20
  • 94
  • 116
6
votes
1 answer

Can I Extend the Swap in macOS?

I have a 2017 model of Macbook Pro 13-inch with 8 Gigs of RAM. I want to have some "extra" memory by using swap, because I want to create some virtual machines that need lots of memory. I have read that swap file in macOS is only 1 GB. Can I extend…
Williams Perdana
  • 169
  • 1
  • 3
  • 16
6
votes
1 answer

MongoDB Out of Memory

MongoDB is crashing. When I open the mongodb.log file, I get: $ tail /var/log/mongodb/mongodb.log Sat Jan 25 03:06:56.153 [initandlisten] connection accepted from 127.0.0.1:58492 #63331 (263 connections now open) Sat Jan 25 03:07:02.694 out of…
Erik Buchanan
  • 1,193
  • 1
  • 7
  • 9
5
votes
2 answers

Creating a Swap Partition in AWS/EC2

I have a t2.micro Ubuntu Server 1GB RAM and 30GB Hard Drive (HD). I am in need to take 2GB out of the 30GB HD in order to create a Swap partition. Could someone give me a help on how to that? I have a doubt if whether I should create the swap…
5
votes
2 answers

What are the exact conditions based on which Linux swaps process(s) memory from RAM to a swap file?

My server has 8Gigs of RAM and 8Gigs configured for swap file. I have memory intensive apps running. These apps have peak loads during which we find swap usage increase. Approximately 1 GIG of swap is used. I have another server with 4Gigs of RAM…
Zenil
  • 1,491
  • 3
  • 12
  • 21
4
votes
2 answers

How to enable swap/swapfile on Google container optimized OS on GCE?

Using the cos-stable container optimized OS on GCE. Micro instance so ram is pretty sparse. Tried to enable swap to prevent locking due to OOM during docker pulls, but can't get it to work. I realize most folders are stateless, so I put the swapfile…
odogggg
  • 43
  • 3
4
votes
2 answers

Swap file returns to original size after reboot

I am trying to increase swapfile size on my raspberry pi 3. I'm following this guide here on DigitalOcean. After successfully increasing the file and setting it up using mkswap and swpon commands everything works fine. I even tried filling my ram…
yabk
  • 120
  • 1
  • 10
1
2 3 4 5 6