Questions tagged [swapfile]

85 questions
4
votes
1 answer

Can a Nodejs process uses more memory than the available physical memory (by using swap memory)?

I am using Nodejs. I am planning to increase the memory limit of a Nodejs application. While googling, I found this article: Increasing Node.js memory limits. The author says his server only has 8GB of physical memory, but his Nodejs process is…
userpal
  • 1,483
  • 2
  • 22
  • 38
4
votes
2 answers

How to selectively put memory into swap? (Linux)

In the case that memory is allocated and its known that it (almost certainly / probably) won't be used for a long time, it could be useful to tag this memory to be more aggressively moved into swap-space. Is there some command to tell the kernel of…
ideasman42
  • 42,413
  • 44
  • 197
  • 320
4
votes
2 answers

Check if swap space exist in bash

I want to check whether Swap space exist on a centos box in my bash script.Thus in cash there are no swap space on the server , then i can create swap. I tried this approach if [[ -n $(swapon -s) ]]; then : else mkswap /dev/vda2 &> /dev/null …
user2650277
  • 6,289
  • 17
  • 63
  • 132
3
votes
2 answers

.NET 4.0 Process execution pauses for several seconds, concides with Full GC, caused by swap file activity?

I have a number of Windows 2008 R2 24 core servers that run the same process, but each instance of the process has a different data set. Usually 2-4 instances of the process run on each server. The processes are compiled for x64, have a GUI, and…
sevzas
  • 701
  • 2
  • 5
  • 13
3
votes
1 answer

How to keep Java Swing application out of swap/page file?

So I have this Java Swing app that has a curious usage pattern: it's not used all the time, but when it's used, it's essential that it's available immediately. And when I say immediately, I mean that it has to be ready for user input as soon as user…
Domchi
  • 10,705
  • 6
  • 54
  • 64
2
votes
1 answer

Dotnet Core Will Not Use Swap

I've written a simple dotnet app that allocates memory. It uses up all the physical memory on the machine and then crashes with an OutOfMemoryException. However my system has a swap file and it is never used by dotnet. Other applications use swap…
shortspider
  • 1,045
  • 15
  • 34
2
votes
1 answer

Google Cloud Compute Engine not activating swap memory and cannot ssh to fix

Recently, I've been unable to access the VM. I've looked through the console logs on the instance page, and I'm confident that the reason I am unable to ssh into the instance is that there isn't enough memory. In the logs during startup, there is…
2
votes
0 answers

How disable Docker swap for Windows 10?

A lot of answers lead to the docker run command and the --memory-swap parameter. But how to do this once for all containers? There are Windows settings, but the swap parameter cannot be set to less than 512 Mb.
Cherry
  • 31,309
  • 66
  • 224
  • 364
2
votes
1 answer

Swapping out a specific page in LINUX KERNEL

I am using add_to_swap to swap out a specific page. However, even after I have called this function, which returns success (1), the system that shows that the page table entry pte_t is still present. Is add_to_swap the right function to swap out a…
S. Salman
  • 590
  • 1
  • 6
  • 22
2
votes
0 answers

File-Mapped Memory (extended swap space)?

I have an image-processing set of tools that may end up consuming incredibly large amounts of memory because it is used to process images that are massive (~50k x 50k x 1000 -> 2.5 terapixel). While I do keep things on disk as much as possible and…
coderforlife
  • 1,378
  • 18
  • 31
2
votes
1 answer

Is there any in-app linemode equivalent of "vim -r"?

I would like to view the available swap files in the usual directories (home, tmp, etc.) as well as the current working folder. What can I do? I've seen :h :recover, but that seems to only be suitable for cases when you have a particular swapfile in…
user3025492
  • 2,853
  • 4
  • 18
  • 19
2
votes
4 answers

Will new automatically use swap if memory is limited?

If I try to allocate memory: int ramSize = magicLibrary.getRamSize(); assert(ramSize*2 <= pow(2,64-8));//Don't overflow the 64 bit limit (32 on some systems). int * mainData new int[ramSize*2/sizeof(int)]; //2 times too big. Will I get disk swap…
Kevin Kostlan
  • 3,311
  • 7
  • 29
  • 33
1
vote
2 answers

Can /SWAPRUN option (or equivalent) be used in VB6?

My understanding of the /SWAPRUN option (MSDN link) is that it causes an executable to be loaded to the swap file and executed from there. Is this mechanism possible in VB6?
CJ7
  • 22,579
  • 65
  • 193
  • 321
1
vote
0 answers

Where accessing swap space is handled in Linux kernel?

I am working as research assistant and this question is really vital for our group: We are looking for a way to inject delays when a process (i.e. a python program) is using swap space. For example, if in a normal way, it is swapping-in pages from…
1
vote
1 answer

How to make use of swap space on disk when run out of modern gpu memory?

Post-Pascal UM can allocate more memory than the GPU memory, which swap-in swap-out between GPU memory and host memory automatically. So what if run out of GPU memory and host memory? How can I use the swap space on disk? Virtual memory swap space…
66RING
  • 13
  • 2