Installation guide

potentially fill your disk because the files are not overwritten when new
core files are created. If you enable this feature, make sure you remove old
core files when you have finished examining them.
You can enable this feature at the system level by setting the
enhanced-core-name system configuration variable to 1 in the proc
subsystem, as in the following example:
proc:
enhanced-core-name = 1
The system manager can limit the number of unique core file versions that
a program can create on a specific host system by setting the system
configuration variable enhanced-core-max-versions to the desired
value, as in the following example:
proc:
enhanced-core-name = 1
enhanced-core-max-versions = 8
The minimum value is 1, the maximum value is 99,999, and the default is
16. Refer to Chapter 5 and in particular Section 5.2.1.2 for information on
setting the attributes.
You can enable enhanced core file naming at the program level by calling
the uswitch system call with the USW_CORE flag set, as in the following
example:
#include #include
/*
* Request enhanced core file naming for
* this process then create a core file.
*/
main()
{
long uval = uswitch(USC_GET, 0);
uval = uswitch(USC_SET, uval | USW_CORE);
if (uval < 0) {
perror("uswitch");
exit(1);
}
raise(SIGQUIT);
}
13.6 Administering Crash Dumps
When a Tru64 UNIX system crashes, it writes all or part of physical
memory to swap space on disk. This information is called a crash dump.
During the reboot process, the system moves the crash dump into a file and
copies the kernel executable image to another file. Together, these files are
the crash dump files. You can use the information in the crash dump files
to help you to determine the cause of the system crash.
Administering Events and Errors 13–15