Questions tagged [pagefile]
45 questions
12
votes
3 answers
On Windows XP, programmatically set Pagefile to "No Paging File" on single c: drive
I'm trying to write a C#/.NET application that optimizes the hard drives for our XP workstations
Set pagefile to "No paging file"
Reboot
Run a defrag utility to optimize the data and apps
Create a contiguous page file
Reboot, run pagedefrag from…

NBPC77
- 277
- 4
- 13
11
votes
2 answers
Extremely high rates of paging active memory to disk but low constant memory usage
As the title states, I have a problem with high page file activity.
I am developing a program that process a lot of images, which it loads from the hard drive.
From every image it generates some data, that I save on a list. For every 3600 images, I…

Anders
- 580
- 5
- 19
9
votes
5 answers
PowerShell Script to set the size of pagefile.sys
How to set the size of Page File on Windows(pagefile.sys) via PowerShell?

Jayu
- 189
- 1
- 1
- 8
6
votes
5 answers
Preventing a heavy process from sinking in the swap file
Our service tends to fall asleep during the nights on our client's server, and then have a hard time waking up. What seems to happen is that the process heap, which is sometimes several hundreds of MB, is moved to the swap file. This happens at…

Eran
- 21,632
- 6
- 56
- 89
6
votes
2 answers
Disabling pagefile just for an application?
I have a real-time application running on a server with terrible disk IO access times (the actual transfer speed is great, but requesting disk-access can take seconds before being granted).
Windows moves memory into the page-file even when there's…

Mr. Smith
- 4,288
- 7
- 40
- 82
4
votes
2 answers
Powershell remoting and page file
I wrote a powershell script that connects to a remote machine with the intent of executing a software rollout on said machine. Basically it connects, maps a drive, copies the rollout from the mapped drive to the target machine, then executes a perl…

JDH
- 2,618
- 5
- 38
- 48
3
votes
1 answer
How to allocate a single array that does not fit in RAM
I thought I'd never say this. I would like to make my machine run super-slow.
Here's the manner in which I'd like to do this:
I'd like to allocate a single large array in F# (Array.init). It should be so large that random accesses into the array…

GregC
- 7,737
- 2
- 53
- 67
3
votes
1 answer
GlobalMemoryStatusEx/GetPerformanceInfo - Getting Actual Page File size, used page file and available page file
Based on the following link: MSDN Docu
I am trying to get the size of the page file that is currently being used.
Here's how I am getting the values:
ActualPageFileSize = ullAvailPageFile - ullTotalPageFile
AvailablePageFileSize = ullAvailPageFile…

vlxdxmxr
- 33
- 4
3
votes
1 answer
Increase PageFile using commandline without reboot
I need to increase the pagefile size on a system using a command line on the fly. There are 2 options using which I can set it:
wmic pagefileset where name="C:\pagefile.sys" set InitialSize=1450,MaximumSize=1450
OR
REG ADD…

Deepinder Singh
- 39
- 1
- 4
3
votes
2 answers
Does Windows XP use the NTFS filesystem function calls to read-from/write-to a pagefile (pagefile.sys)?
If it does, then how do you justify the overheads incurred (journaling etc.)?
If it does not, then how come the pagefile gets fragmented?
Additionally, would increasing the cluster size improve pagefile performance (cluster slack space is a…
Satyajit
3
votes
0 answers
Memory mapped files and "soft" page faults. Unavoidable?
I have two applications (processes) running under Windows XP that share data via a memory mapped file. Despite all my efforts to eliminate per iteration memory allocations, I still get about 10 soft page faults per data transfer. I've tried every…

Robert Oschler
- 14,153
- 18
- 94
- 227
2
votes
0 answers
Is this Delphi 6 code for using a page file backed shared memory mapped file correct?
I have a Delphi 6 application and also a DLL that share a memory mapped file to transfer data between them. I know soft page faults are a normal side effect of memory mapped files, but I am getting a lot more than I think should (high PF Delta…

Robert Oschler
- 14,153
- 18
- 94
- 227
2
votes
2 answers
How to tell Linux that a mmap()'d page does not need to be written to swap if the backing physical page is needed?
Hopefully the title is clear. I have a chunk of memory obtained via mmap(). After some time, I have concluded that I no longer need the data within this range. I still wish to keep this range, however. That is, I do not want to call mummap(). I'm…

tgoodhart
- 3,111
- 26
- 37
2
votes
1 answer
JVM Page Faults should be Zero, right? How High is OK?
OK folks, this is another "I think is a stupid question", but for clarity's sake warrants appearing foolish.
In the windows task manager for a properly-configured JVM, the page fault should be Zero right? (or "top" for linux folks)
e.g., if your Xmx…

user331465
- 2,984
- 13
- 47
- 77
2
votes
4 answers
How can I get read-ahead bytes?
Operating systems read from disk more than what a program actually requests, because a program is likely to need nearby information in the future. In my application, when I fetch an item from disk, I would like to show an interval of information…

Bruno Martinez
- 2,850
- 2
- 39
- 47