PDA

View Full Version : Reversing the swap file


mike
03-21-2001, 03:48 PM
I'd like to add some functionality to windows to enable swap file cleaning while Windows is active. Windows allocates a lot more swap file than it actually needs, "just in case." It would be nice to be able to clean out those portions of the swap file that are not actually in use. I'm sure I'll have to write a VxD to do it; any pointers to sites dealing with vxd's and memory management?

Carpathia
03-21-2001, 09:12 PM
Best get a copy of the DDK for your platform from MSDN. Also, do a websearch for Driver Development FAQ, which provides a little useful info. You might want a to get checked build of your target platform too.

Also note that Id expect truncating the swap file to hinder performance. Windows reserves the expected amount of swap space so that it can grow efficiently (even tho potentially wasting a big chunk of disk space :- )

Regards

Carpathia

mike
03-22-2001, 02:27 PM
Didn't intend to truncate it, just overwrite the data.

Thanks

mike
03-23-2001, 12:34 PM
What's XP?

mike
03-23-2001, 12:36 PM
What's XP?

Squidge
03-23-2001, 05:07 PM
WindowsXP - Basically WindowsWhistler... I've tried lots of beta's and still not happy with it in general though - much prefer Windows2000.