Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Clearing swap file with zeroes possible?

- - - - -

  • Please log in to reply
5 replies to this topic

#1
caps_buster

caps_buster

    Member

  • Member
  • PipPip
  • 117 posts
  • Joined 20-February 09

I noticed, that the size of the swap file is very dramatically reflected on the size of R-DriveImage backup of the system (Win2k SP4). That clearly indicate, that the data in swap file are not that well compresable and that lead me to idea, that if I can run some utility prior starting R-DriveImage for the backup, and that utility clear the swap file (all zeroes seems to be the best for compression), then I can have a much smaller backup files and much faster the time of restore.

 

When experimenting with Duron class CPUs (even underclocked, sometimes), this could be welcome speed up.

 

So I do wonder, if some utility like that does exist or if it can be done using some Win system functions, like the registers setting that clear the swap on reboot/shutdown.

 

Anyone know, if that could be done "on the fly" and not only on reboot/shutdown?


Disclaimer: Any errors in spelling, tact, or fact are transmission errors.


How to remove advertisement from MSFN

#2
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,593 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag
Why would you want to backup the pagefile?

Traditionally, the pagefile should go, among others for the reason you mention, on another volume (better if on another disk).


In any case, if you are doing an image of the disk, it would be more logical to disable pagefile (it is normally possible with enough RAM, in 2K 1 Gb would be enough) and then zero just the pagefile.sys or zero the whole unused/unindexed space. (but then it would make more sense to do a backup and not an image :unsure:).

See also:
http://www.msfn.org/...le-at-shutdown/

jaclaz

#3
pointertovoid

pointertovoid

    Advanced Member

  • Member
  • PipPipPip
  • 466 posts
  • Joined 16-January 09

I never succeeded suppressing the pagefile with W2k, despite 4GB Ram presently. It goes easily with Win XP, but apparently W2k demands a minimum amount to write the registry there.

 

Is there a trick?



#4
submix8c

submix8c

    Inconceivable!

  • Patrons
  • 4,338 posts
  • Joined 14-September 05
  • OS:none specified
  • Country: Country Flag

Hmmm... So you read the linked thread (jaclaz post above) and nothing worked?


Someday the tyrants will be unthroned... Jason "Jay" Chasteen; RIP, bro!

Posted Image


#5
pointertovoid

pointertovoid

    Advanced Member

  • Member
  • PipPipPip
  • 466 posts
  • Joined 16-January 09

It's not the same objective. I believe that disabling (not my equivocal "suppressing") the pagefile in W2k is impossible, until seeing the opposite.



#6
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,593 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag

I seem to remember that - unlike on XP - on 2K a pagefile is created anyway at next boot (even if it is "disabled"), and I seem to remember it was 2 Mb in size.

On the other hand, besides "proving a point" (whatever the point is) which is (nice) theory,  in practice it just amounts to "bearing with" a 2 Mb file.

 

An interesting experiment would be IMHO however (given that there is enough memory on the system and that as such the pagefile is not actually *needed*) to create a 2 Mb (or whatever is the minimum size that 2K wants) file, but make it a "sparse" file, and then check if it is actually "hit" and thus if it "grows" :unsure:.

 

jaclaz






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users