pagefile

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 non-issue)? ...

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 night, when our service is not used, and others are scheduled to run (DB backups, AV scans etc...

Page File Usage

I run a script which does text manipulation on the files system. The script runs on text files ( .h, .cpp ). As the script runs i see that the PF usage increases up until it reaches the amount of VM allocated for the page file. Is there a way to flush the VM during the run or after it? I have opend another question regarding it ( tho...

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 flag there is in CreateFileMapping() and CreateFileView() and it still happens. I'm begin...

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 around the element. There's a trade off between how much information I request and show, an...

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 Sysinternals I'm really struggling with #1. I delete the following key: SYSTEM\CurrentCo...