DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 1st March 2012
aleunix aleunix is offline
Real Name: Alessandro
Spam Deminer
 
Join Date: May 2008
Location: Italy
Posts: 224
Default Core dump and implications on the size of the partitions /var and swap

4.8 - How should I partition my disk?
Quote:
Swap: In addition to swap, this partition is also used for storing core dumps after system crashes, so it is suggested that the swap space (if set up at all) be bigger than the largest amount of RAM you are likely to ever install on the machine.
Quote:
/var/crash: If the system panics, it will attempt to save a core dump in the swap partition before rebooting. This core dump will then be saved to /var/crash upon reboot, so /var will need at least as much free space as the system has RAM for this to work automatically.
I don't want save an eventual core dump of the system, so i would like known if using partitions more smaller can cause some problems or if the system, simply, don't save nothing given that understand that there isn't sufficient space.
Reply With Quote
  #2   (View Single Post)  
Old 1st March 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

When a core dump is taken:
  1. The kernel saves the core dump and control information to swap space.
  2. On boot, rc(8) executes savecore(8) to copy any core dumps to /var/swap.
If you want diagnostic information captured when the kernel panics, you will need sufficient swap space so that the kernel can capture the dump. The savecore(8) program will not copy the dump from swap to /var/crash if there is insufficient space.

Since you don't want to capture diagnostic information on any failures, you need not retain space in /var for a core dump.
Reply With Quote
  #3   (View Single Post)  
Old 1st March 2012
aleunix aleunix is offline
Real Name: Alessandro
Spam Deminer
 
Join Date: May 2008
Location: Italy
Posts: 224
Default

If even the swap partition is smaller, what happen during a core dump?
Reply With Quote
  #4   (View Single Post)  
Old 1st March 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

The default sysctl settings will cause the kernel to enter ddb(4) on a panic or other form of kernel crash. No core dump is taken from ddb unless explictly requested. See crash(8) for additional information.
Reply With Quote
  #5   (View Single Post)  
Old 1st March 2012
aleunix aleunix is offline
Real Name: Alessandro
Spam Deminer
 
Join Date: May 2008
Location: Italy
Posts: 224
Default

crash - system failure and diagnosis (web man of the command).
Thanks.
Reply With Quote
Reply

Tags
/var, core dump, swap

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Get Kernal Swap File scull7 OpenBSD General 1 20th December 2010 10:58 PM
How to swap partitions Help revzalot OpenBSD Installation and Upgrading 2 1st September 2009 07:44 AM
swap partition lumiwa FreeBSD General 6 11th September 2008 03:57 PM
Do you still use swap? JMJ_coder Off-Topic 22 11th July 2008 01:24 AM
mc core dump in root sheriff26 FreeBSD General 4 21st June 2008 07:56 PM


All times are GMT. The time now is 10:20 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick