Questions tagged [swapfile]

85 questions
0
votes
1 answer

How to view paging system (demand paging) as another layer of cache?

I tried solving the following question Consider a machine with 128MiB (i.e. 2^27 bytes) of main memory and an MMU which has a page size of 8KiB (i.e.2^13 bytes). The operating system provides demand paging to a large spinning disk. Viewing this …
0
votes
1 answer

How to find the unique swap page by virtual address when page fault

For example, if there are 3 processes, each using the virtual address 0x400000 for text section. And there is only one 4KB physical page for user process. Suppose process 0 is using the physical page (virtual address 0x400000). Assume that the…
zminya
  • 15
  • 2
0
votes
1 answer

Moving memory in memory mapped swap file

I'm trying to set up a swap file for bitmaps of different sizes by using the MappedByteBuffer to memory map the file. I want to be able to move memory within this file, so maybe two sub-questions: Is there a way to tell the ByteBuffer to move…
Bondax
  • 3,143
  • 28
  • 35
0
votes
0 answers

Is using swap space a good idea in a python program?

I am currently writing a python program that uses up a lot of RAM. I am aware that I could use the garbage collector to "free up" the ram and avoid this problem. However, I am using Numba to speed up my code, which makes the part where I would need…
Sam Moldenha
  • 463
  • 2
  • 11
0
votes
1 answer

How to get around Memory Error when using Pandas?

I know that Memors Error is a common error when using different functions of the Pandas library. I want to get help in several areas. My questions are formulated below, after describing the problem. My OS is Ubuntu 18, workspace is jupyter notebook…
0
votes
4 answers

Windows Stalls When My Program Uses Swapfile

I am running a user mode program on normal priority. My program is searching an NP problem, and as a result, uses up a lot of memory which eventually ends up in the swap file. Then my mouse freezes up, and it takes forever for task manager to open…
Unknown
  • 45,913
  • 27
  • 138
  • 182
0
votes
1 answer

Swapping IN a page in Linux

I have identified that the function do_swap_page in mm/memory.c is used to swap IN pages in the Linux kernel. However, the input parameters of this function contains one pte_t* and one pte_t. What is the difference between the use of these two…
S. Salman
  • 590
  • 1
  • 6
  • 22
0
votes
0 answers

Why is it problematic to configure the database files and the system swap space on same disk?

Why is it problematic to configure the database files and the system swap space on the same disk? What can happen?
0
votes
0 answers

virtual memory on windows

I am developing a program which use huge ram size. Unfortunately there is no way to decrease it. In linux when ram is low I can generate a swap file and mount it to system that solve my problem but in windows how can I do that or is there any…
DeformE
  • 11
  • 3
0
votes
1 answer

Unable to compile graph-tool even after creating swap file

I am trying to install graph-tool on my laptop with 4GB RAM. I realized that the RAM is not sufficient and so I created a swap file of size 4GB using the instructions given here. However, I still keep getting the following error after sudo…
Peaceful
  • 4,920
  • 15
  • 54
  • 79
0
votes
2 answers

How to find out swap space usage on windows

I want to monitore swap space usage on windows 2003 server. If the usage is over 80% for 10 minutes, an alarm will be generated. There are lot of tools for RAM, but how about swap usage? How do I simulate that condition and do the test?
eric young
  • 53
  • 1
  • 2
  • 7
0
votes
2 answers

Special path of vim swap files for files in certain location

Due to my configuration, vim stores swap files in the same directory as the edited file. In general, that is ok, but not in the folder ~/ftp_mount (and all directories below). In this directory I mount an ftp server. With :set dir=/some/path one…
user3041714
  • 333
  • 1
  • 2
  • 11
0
votes
0 answers

How to preserve the file encoding when recovering a Vim swap file?

I use a custom Perl script to clean up left-over Vim swap files after a crash or power outage. The script automatically removes swap files for unchanged files and prints a list of files with unsaved modifications left in the swap file. This works…
Zilk
  • 8,917
  • 7
  • 36
  • 44
0
votes
1 answer

Many detached boost threads segfault

I'm creating boost threads inside a function with while(trueNonceQueue.empty() && block.nNonce < std::numeric_limits::max()){ if ( block.nNonce % 100000 == 0 ) { cout << block.nNonce << endl; } boost::thread…
user1382306
0
votes
2 answers

What are the advantages of Linux storing its page file in a separate partition?

Linux stores its page file on a separate partition on the hard drive versus how Windows stores it on the same partitions... what is the advantage and disadvantage to this? My professor mentioned that it's to delete the page file in this case if it…
user1091968
  • 87
  • 1
  • 3