Path: utzoo!mnetor!uunet!husc6!rutgers!ames!sdcsvax!ucsdhub!hp-sdd!ncr-sd!crash!jeh From: jeh@crash.cts.com (Jamie Hanrahan) Newsgroups: comp.os.vms Subject: Re: THE DUMP File -- Uses and abuses Message-ID: <2206@crash.cts.com> Date: 26 Dec 87 08:21:23 GMT References: <8712250121.AA26559@jade.berkeley.edu> Reply-To: jeh@crash.CTS.COM (Jamie Hanrahan) Organization: CMKRNL Press, San Diego, CA Lines: 71 Keywords: sysdump crash dump SDA Summary: Yes, you can dump to the paging file In article <8712250121.AA26559@jade.berkeley.edu> WARNER..NAGY@FNALB.BITNET (Frank.J.Nagy@jade.Berkeley.EDU, VAX Wizard & Guru) writes: >Richard Steinberger writes: >> There is a dump file on my system disk that is 32767 blocks large (the >> same size as physical memory). My understanding is that this area will >> be used by VMS in case the system crashes. The contents of memory will >> be stored here. This is fine; but I was wondering if there are any ways >> to have this file/disk area serve two functions since it seems to be >> unused during "normal" VMS operations. For example, is there a way that >> it can also be a page or swap file until/unless the system crashes? >> Are there other uses or should I just keep my hands off? Thanks >> in advance to all who respond. > >To make a full system save after a crash, the dump file should be your >physical memory size (in pages) + 4 blocks (1 for header and 3 for error >log buffers, I believe). If the dump file is shorter, VMS will just not >write all of physical memory out which just means that SDA will probably >not be able to analyze the system crash. So, if disk space is *much* >more important than analyzing a system crash (which is true of some >systems), then you could either create a 0 length dump file (REBOOT before >doing a PURGE or you'll be sorry). > >Alternatively, I believe# if there is no SYSDUMP.DMP file, the crash dump >will be saved in the pagefile. The system parameter SAVEDUMP will then >preserve the portion of the pagefile with the crash dump until SDA is >used to copy the crash dump to another file for analysis. Because this >*reserves* pagefile space, your pagefile must be larger than physical >memory and the crash dump should be emptied out of the pagefile before >startup is completed to release the pagefile space. > Frank Nagy is correct. To modify your system so that crash dumps get written to SYS$SYSTEM:PAGEFILE.SYS, do the following: 1. Rename SYSDUMP.DMP to something else, like SYSDUMP.OLD . 2. Ensure the PAGEFILE.SYS has as many blocks as you have pages of physical memory, + 4, + enough to get through STARTUP.COM and to run SDA when you come up after a crash (on our MicroVAXes, where we routinely use the PAGEFILE.SYS as the dump file, I've found that an extra 2000 blocks are sufficient; I haven't experimented to see how close this can be cut). 3. Set the SAVEDUMP (or is it DUMPSAVE?) SYSGEN parameter to 1. WRITE CURRENT. 4. In SYSTARTUP.COM, very near the beginning, do the following: $ ANALYZE/CRASH SYS$SYSTEM:PAGEFILE.SYS COPY SYS$ERRORLOG:SAVEDUMP.DMP ! or wherever SET OUTPUT SYS$ERRORLOG:CRASH.LIS SHOW SUMMARY SHOW PROCESS SHOW STACK ... whatever other SHOWs you want (see the SDA manual) EXIT 5. Shut down and reboot. Since the system can't find SYSDUMP.DMP, subsequent crashdumps will be written to PAGEFILE.SYS . 6. Delete SYSDUMP.OLD (or whatever you called it). SDA, when invoked with ANALYZE/CRASH from the startup process, will exit immediately if the system is booting normally (i.e. not after a crash). The COPY command copies the crash dump from the paging file to somewhere else, and also frees the blocks in the paging file for use by the pager. The other commands give you a file, CRASH.LIS, which gives you a "first look" at the crash; these can be omitted if you like. You probably also want to $ PURGE/KEEP=some_low_number SYS$ERRORLOG:SAVEDUMP.DMP after the EXIT command. As for Frank's problem with dump files on clusters of large-memoried VAXes, there's always the solution shouted at the Advanced Q&A session at the end of the Nashville DECUS Symposium... "Buy less memory".