- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Size of system dump device!
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2002 11:16 PM
07-07-2002 11:16 PM
Any idea on the size of system dump device?
Since we never know how many memory space has been used when the system crash unexpectedly, so the safest way to preserve the system dump is to set the size of the system dump device same as the memory size !!
Please comments,
Many thanks,
Chris,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2002 11:20 PM
07-07-2002 11:20 PM
Re: Size of system dump device!
Normally you set the lvol dump device to be the same lvol as for swap - and your swap size should be the same size as physical memory (for performance reasons) so yes, RAM = swap size = dump size so that way if you have a crash you will always get a complete dump!
eg.
Boot: lvol1 on: /dev/dsk/c0t6d0
Root: lvol3 on: /dev/dsk/c0t6d0
Swap: lvol2 on: /dev/dsk/c0t6d0
Dump: lvol2 on: /dev/dsk/c0t6d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2002 11:27 PM
07-07-2002 11:27 PM
SolutionThe size you've mentioned is not necessarily correct. If and when there is a crash dump, the dump is actually compressed. The dump itself is usually less than half of the memory and the default location is /var anyway.
In my opinion, if /var is at least 2Gb you
will most likely get all of it anyway. For systems that have *really* large memory you can increase this actual dump space to about 30-40% of memory. This should be enough.
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2002 12:16 AM
07-08-2002 12:16 AM
Re: Size of system dump device!
Thanks for your advices. I have one more question:
During what situation, the system will generate system dump to the dump device(s) and in what situation will generate a core dump file directly into the filesystem ?
Is that the first one kernel level related ? While the second one is user level related ? I need to identify the difference so that I can decide how to organize my dump devices as well as size the filesystem effectively to hold the core dump file(s).
Many thanks,
Chris,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2002 12:40 AM
07-08-2002 12:40 AM
Re: Size of system dump device!
The file system core dump is generated by a separate PROCESS which have met a undesired
situation while running.
But the Dump in the dump devices is due to the
KERNEL which have met some undesired circumstances such as memory overflow, Hardware
problems ( HPMC ), kernel spins etc. Hence it
dumps everthing in the system's memory at the
time of crash to the dump devices for failure
analysis .
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2002 12:56 AM
07-08-2002 12:56 AM
Re: Size of system dump device!
A system dump is generated after a system panic situation, where the information that was stored in memory is released to disk during the subsequent system boot providing there is sufficient space to do so. Your last 'dmesg' output will normally tell you. There are a few files generated, and stored
including a copy of the kernel. By default into /var/adm/crash. If your /var filesystem is big enough this is a good place. You can create an additional filesystem for storage depending on your save crash conf. Have a look at how you have the /etc/rc.config.d/savecrash file configured. (depending on your OS level, I have no access to a system right now) As long as your dump file space has enough space, the memory dump will be placed. As I've mentioned /var should be large enough, but should you wish to create another space, and keep it reserved, adding an additional filesystem will do the trick and have it configured accordingly in your /etc/rc.config.d/savecrash file will save it as lomg as it is mounted as run level two.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 07:26 AM
07-09-2002 07:26 AM
Re: Size of system dump device!
Thanks for your valuable information. Now I have a better understanding on the system dump.
Right now I am thinking about how to handling the core dump file generated irregularly. Since all users defined in the Unix machine are able to execute programs, they are able to create huge core dump files.... I am thinking to limit the size of the core dump file generate for Unix users. Since those core dump file will be removed as soon as they generated and I don't see anyone inside our organization will spent time to read through the core dump. Is it a good approach to deal with it? Any comments? Appreciate it if you can provide any resource link for this topic.
Cheers,
Chris,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 07:33 AM
07-09-2002 07:33 AM
Re: Size of system dump device!
Also you amy like to look at this :
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90672/B2355-90672_top.html&con=/hpux/onlinedocs/B2355-90672/00/00/66-con.html&toc=/hpux/onlinedocs/B2355-90672/00/00/66-toc.html&searchterms=DUMP%7cPARTITIONS&queryid=20020709-084056
The amount of disk space made available for core dumps should accommodate your system's physical (core) memory. (If you need to determine the amount of physical memory on your system, see "Estimating Your Swap Space Needs" earlier in this chapter.)
Because the physical memory on your system may exceed the space available in the primary swap area, you may wish to configure additional disk space for the full core memory image. Otherwise, only a partial core image will be saved which may not be sufficient for analyzing problems.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 07:41 AM
07-09-2002 07:41 AM
Re: Size of system dump device!
With regard to your last question of limiting the size of a user's program core file, you can place, in each user's profile, the following:
# ulimit -c 0
This sets the resource limit for core files to zero 512-byte blocks. See the man pages for 'sh-posix'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 07:41 AM
07-09-2002 07:41 AM
Re: Size of system dump device!
You already received excellent responses for the system core dump.
in POSIX shell you have the option of specifiying core limit with ulimit -c command.
Other shells do not recognise this option.
ulimit -c 2048 will limit the core files to 1 MB.
Only core files that are in this limit are dumped by the processes.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 08:23 AM
07-09-2002 08:23 AM
Re: Size of system dump device!
I fundamentally disagree with your approach to handling program core dumps. This is not a Windows box; program crashes (other than user-induced) are not considered routine events. I can tell you that the number of core files I see on my production boxes is vanishingly small and that is as it should be. Most software vendors will work with you to correct their mistakes; some may require a little gentle persuasion.
Food for thought, Clay