?
Solved

removing pagefile

Posted on 2003-03-10
25
Medium Priority
?
1,512 Views
Last Modified: 2007-12-19
My server setting has 2 pagefiles defined, in C and D (logical drives). Since the C drive runs out of space, I set the memory dump path to d:\memory.dmp instead of default %systemroot%\memory.dmp.

The problem is whenever the system generates memory dump (BSOD), the memory.dmp file will not be created eventhough the disk space is sufficient.

I suspect this is because I still have C:\pagefile.sys. Can I delete the c:\pagefile.sys and what is the best and correct method to do it. Is this a recommended way to dlete the file, or there's some other ways to overcome the memory.dmp file creation. Pls help.
0
Comment
Question by:yatie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
25 Comments
 
LVL 6

Expert Comment

by:night_monkey
ID: 8108982
Maybe if you clear the pagefile at shutdown:

Start the registry editor (regedit.exe)
Move to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
If the value ClearPageFileAtShutdown does not exist, from the Edit menu select New - DWORD value and enter a name of ClearPageFileAtShutdown
Double click on ClearPageFileAtShutdown and set to 1
Reboot the machine and next time you shutdown the pagefile will be cleared
0
 
LVL 3

Expert Comment

by:smallbee
ID: 8109092
delete the TEMP folder, internet cache, etc. to make more space... do a clean disk and defragment.


fix the problem permanently: better upgrade ur HD for the future
0
 
LVL 4

Expert Comment

by:Jivko
ID: 8109165
May be you should move page file location to another drive. But do not delete it.
In W2k -> System properties-->Advanced-->Performance options-->Virtual Memory-->Change
Regards
0
Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

 
LVL 7

Expert Comment

by:billious
ID: 8109213
Move the pagefile to another volume as described above, then it's perfectly safe to kill off the original.

I can't remember whether you'll need to reboot, but I wouldn't be surprised!

Once the system start up again, it's perfectly safe to kill off the original pagefile - I believe it won't allow you to kill a pagefile that's in use - but don't try, eh? :) You should be able to determine the last used time from a dir with appropriate /t option (see dir/?|more)

...Bill
0
 
LVL 1

Expert Comment

by:GooseMan
ID: 8109528
As has been mentioned, you could move the page file to another drive using the Virtual memory configurator. Alternatively you could set a smaller one on c: and a small one on d: it makes little difference. If you look at the task manager you should be able to tell how much paging you are using. Perhaps a memory upgrade might ultimately help the situation?

On the point about the memory dump, why not just switch it off? Set the Write Debugging Information to 'none' and that problem goes away. I have never found a good use for it anyway.

You do have to reboot after changing the details of the pagefile.
0
 
LVL 3

Expert Comment

by:Flash828
ID: 8109628
Windows will NOT generate a dump file unless a swap file exists on the partition where %systemroot% lies.  I read that in some tech manual... Ill see if I can find a link.
0
 
LVL 3

Expert Comment

by:Flash828
ID: 8109633
Umm elaboration: the swap file must also be at least the size of ram....  Im going to find a source for that right now.
0
 

Author Comment

by:yatie
ID: 8109649
first of all, i need the memory.dmp to send to Microsoft for troubleshooting.

The pagefile setting has sth to do with the memory.dmp generation. I've both in C and D, but just cannot generate memory.dmp. WHY??? OR doesn't they have connections??

Flash828,
as mentioned, the swap file exist in %systemroot% partition, but still the memory.dmp not generated.

0
 
LVL 3

Expert Comment

by:Flash828
ID: 8109656
Here we go, KB Document Q130536 (Windows 2000):

http://support.microsoft.com/default.aspx?scid=kb;EN-US;130536

Looking for XP documentation
0
 
LVL 3

Expert Comment

by:Flash828
ID: 8109673
Oh... In that case, the way I believe it works is that the swap file is created on the C: drive, and then MOVED to the D: drive.  So you still need space on the C drive...  Ill check that out.
0
 
LVL 3

Expert Comment

by:Flash828
ID: 8109680
Im a little confused as to the exact scenario.  However hopefully these comments will at least direct you.

My understanding is as follows:

   You have two pagefiles.
   One lies on drive C:, The other drive D:
   No Dump is being created.

According to that information, my previous comment about the dump file being created on drive C: then MOVED to drive D: applies.

If drive C: does not have enough space, the memory dump will not be created.

Please review the following KB articles which demonstrate this, as it goes into more details:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;130536
0
 
LVL 1

Expert Comment

by:GooseMan
ID: 8109840
yatie, I have never known anyone send a dump to Microsoft and get anything useful out of it. But if you want to hold on to it then that is no problem.

Move the dump file to d: and the pagefile to d: and you should be set!

There is no relationship between memory dump files and swap space (pagefile). Remember when moving the pagefile to actually click the SET button to apply the new sizes. Setting the initial and maximum to 0 is how you remove the pagefile from a drive.
0
 
LVL 1

Expert Comment

by:rtaylor3
ID: 8112673
yatie,
there is a relationship between the pagefile and the memory dump files.  The pagefile on the C: drive MUST be at least the size of the RAM + 10 MB.  When the system generates a memory dump everything in the RAM is dumped into the pagefile on the system drive.  Then after it is dumped to that pagefile it is moved to the memory.dmp file where ever you specified it.  It will ONLY go to the system partition's (C:) pagefile initially though.

hope this helps,
ray
0
 

Expert Comment

by:rambler24
ID: 8115002
Gooseman is right. I've just set my C pagefile to zero, and allocated a pagefile on D. Seems quite happy with DumpFile set as %systemroot%\memory.dmp which is of course on C.
0
 
LVL 1

Expert Comment

by:rtaylor3
ID: 8115232
rambler,
did you just set up the pagefile like you stated, or have you actually had a memory dump that was successful with those settings.  I was trying to set up the memory.dmp file to be saved at work, and every piece of Microsoft documentation I went through said that the pagefile MUST be on the system drive for this process to work.

ray
0
 
LVL 3

Expert Comment

by:Flash828
ID: 8115580
As far as I understand the pagefile MUST be on the system drive for a dump file to be created, and there must be anywhere from (Ram + 11 Mb), to (Ram * 1.5 + 11 MB) of additional space for the dump to be created.
0
 

Expert Comment

by:kevinbest
ID: 8129380
Windows needs a pagefile pagefile on the boot drive. Trying to run without it will cause problems, try reinstalling some applications on the D: drive to free up space on the C: drive.
0
 
LVL 9

Expert Comment

by:MSGeek
ID: 8132774
Flash is correct on the location and why it must be there.  KevinBest provides a good alternative to freeing space
0
 

Author Comment

by:yatie
ID: 8133109
Thanks.

I thot my explanation is suffiecient for everybody to u'stand. Let me re-phrase. My pagefile is in C and D, following MS recommendations (RAM + 11MB). Since C is running out of HDD space, I set the memory.dmp to d:\ instead of %systemroot%. In this case, it's C:\winnt.

Why no d:\memory.dmp created when the memory dump generated e/though D has enuf disk space.

I still dont get the answer as desired.
0
 
LVL 3

Expert Comment

by:Flash828
ID: 8133930
I think MS means that you have to have an ADDITIONAL RAM + 11 MB above your swap file on the %systemroot% partition, however I have not been in an environment to verify this claim.
0
 
LVL 1

Expert Comment

by:GooseMan
ID: 8135665
http://support.microsoft.com/default.aspx?scid=kb;en-us;141468

This document provides all the answers it appears....

As I never have memory dumps enabled on my servers it doesn't effect me so I had never noticed. My pagefiles are always on the datadisk (D:) and I never have any problems.

Bottom line.
Memory dumps are done to the %SYSTEMROOT%.
The pagefile on %SYSTEMROOT% has to be bigger than the memory of the machine by XMb (put 1 or 11 in X)

We all learn something new! :o)
0
 
LVL 9

Expert Comment

by:MSGeek
ID: 8136527
That's waht Falsh has been sating, for the memory dump to occur the swap file must be on C: and the dump must b eset for C: (Systemroot drive)
0
 
LVL 3

Expert Comment

by:Flash828
ID: 8144098
Thanks MSGeek
0
 
LVL 12

Expert Comment

by:paullamhkg
ID: 9230315
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is to:

Be PAQ'd/Points No Refunded

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Paul
EE Cleanup Volunteer
0
 

Accepted Solution

by:
YensidMod earned 0 total points
ID: 9292488
PAQed per request/recommendation - No Refund

YensidMod
Community Support Moderator
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction How to create multiboot configuration with XP\Vista and Windows 7 on it? And most important question - how to do this correctly so not to have any kind of nightmares we get when system gets screwed? First of all one should realize t…
Introduction Often we come across situations wherein our batch files would be needing to reboot Windows for a variety of reasons. A few of them would be like: (1) Setup files have been updated whose changes can take effect only after a reboot …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question