Archived from groups: microsoft.public.win98.gen_discussion (
More info?)
The huge bulk of unmovable clusters during a Defrag is your Swap File,
Win386.swp. After that, any CVS (Compressed Volume File) may also be
big. No one should have one of those, but should get a larger hard drive
instead. Finally, in Win98, any file that is attributed BOTH "System" &
"Hidden" will be an unmoveable. If you use Thumbnail View, a "Thumbs.db"
file will be created in each folder to which you apply it. Some of those
can be large & are Attributed both System & Hidden.
I used to turn VM off, and I swear it makes for a better Defrag. The
purpose of it was to prevent other files from pussyfooting around the
bits/pieces of the Swap File during the Defrag.
HOWEVER...
(1) It is possible one may not be able to reboot with VM off. That would
be the case, if one has only 32 MB RAM. There was one poster who said he
had 64 MB & could not reboot when he turned off VM. However, "Scanreg
/Restore", choosing the most recent backup, should reset VM to being on.
(2) DO NOT "START, Programs, MS-DOS Prompt", with VM off. I had an
orderly crash doing that. Repeating the experience online to better
report it, my second crash doing it was HORRENDOUS-- it had a heartbeat!
Also, some apps will open a Windows DOS box on their own; so, beware!
Here is what I have now done...
(a) Set swap file minimum size to 300 MB, & reboot back to windows.
Do so at "Control Panel, System, Performance tab, Virtual Memory
button". This will create a 300 MB space for a swap file. It will not be
entirely contiguous. Set the minimum only.
(b) Boot to DOS
(c) SMARTDRV
(to speed up the following considerably)
(d) COPY Win386.swp Win386.jnk
(This fills in gaps between files, so that later Win386.swp will
be contiguous.)
(e) REN Win386.swp Win386.old
(Win386.swp will recreate at boot.)
(f) Boot to Windows
(Now, you have Win386.jnk, Win386.old, plus a new Win386.swp.)
(g) In Explorer, delete Win386.jnk & Win386.old. Hold Shift as clicking
to Delete to prevent it goes into the Recycle Bin!
(h) Do whatever you normally do, to keep the following from constantly
restarting.
(i) Scandisk (Thorough, usually w/o write checking)
(j) Defrag
Now I had my buffer between the swap file & the rest of my files. This
is meant to keep the swap file out of the way of the rest of the system
during a Defrag. There may have been some little bit of the swap file
still among the other files, but the vast bulk of it was one contiguous
block 300 MB away! I saw it, by pausing Defrag before it ended &
scrolling past a sea of white to the sea of red! (By the way, "REN
Win386.swp Win386.old" created a zero byte file, or I am a madman!)
Notes:
1. This need be done but once this way, except should you subsequently
delete Win386.swp. Anyhow, mine has stayed put!
2. The 300 MB swap file has moved to the root folder C:\, because a
minimum size was specified.
3. You still have a "C:\Windows\Win386.swp", but it is zero bytes in
size.
4. It has been promised "C:\Win386.swp" will never move physically on
the hard drive. Those 300 MBs will stay put. However, should the swap
file get larger than that, the excess will intermix with other files.
When the swap file shrinks, it will then return to the 300 MB area.
5. The purpose of Win386.jnk was to give the system room for growth,
before it must use disk space on the other side of the swap file. (It
does appear to work that way.)
Is it all worth it? I really think it did make a difference.
--
Thanks or Good Luck,
There may be humor in this post, and,
Naturally, you will not sue,
should things get worse after this,
PCR
pcrrcp@netzero.net
"Chuck" <skilover_nospam@softhome.net> wrote in message
news:38165cF5g29urU2@individual.net...
| What ever became of the old win 3.x concept of a "permanent" swap
file.
| Seems to me that if the win98 swap file is dynamic, wouldn't it get
| fragmented all over the place just like any other file? Is there a way
| to prevent that from happening? I suspect that's what's responsible
for
| how much my home machine has slowed down over the years.
| --
| To reply by email remove "_nospam"