Coredumps and swap - was part of Solaris Mem Consumption


 
Thread Tools Search this Thread
Operating Systems Solaris Coredumps and swap - was part of Solaris Mem Consumption
# 15  
Old 08-10-2008
You cannot limit the kernel dump size so I'm afraid you are confusing processes core dumps and kernel crash dumps.

Anyway, my point was more about this misconception about kernel dumps that wouldn't require a dump device while they still do.

Whether you run Linux, Solaris or whatever OS, kernel crashes do happen. When you run business critical applications on multi-million dollar machines with dozens or hundred of gigabytes of RAM, you don't want to save a few gigabytes of disk space knowing this prevents analyzing what caused the crash.

It's the same reasoning why you do not remove the black-box from a commercial plane to save weight ...
# 16  
Old 08-10-2008
Quote:
Originally Posted by jlliagre
You cannot limit the kernel dump size so I'm afraid you are confusing processes core dumps and kernel crash dumps.
I am not sure sure you are correct.

Solaris has a kernel tuning parameter called:

Code:
dump_cnt  - limits the size of the dump

So, even you are correct and dump_cnt only limits the size of the process core dumps (btw, it does not say this in the docs), kernels are generally much smaller.

Your argument about "airplanes and black boxes" is a form of a logical fallacy that distracts from the technical discussion, IMHO. Let's keep this on point.

The discussion was about swap, and you do not need to dump in swap space, you can dump in the filesystem, if you choose. The dump is configured with the Solaris utility dumpadm.

Quote:
The /usr/sbin/dumpadm command manages a system's crash dump configuration parameters. The following table describes dumpadm's configuration parameters.

Dump Parameter
Description

dump device
The device that stores dump data temporarily as the system crashes. When the dump device is not the swap area, savecore runs in the background, which speeds up the boot process.

savecore directory
The directory that stores system crash dump files.

dump content
Type of data, kernel memory or all of memory, to dump.

minimum free space
Minimum amount of free space required in the savecore directory after saving crash dump files. If no minimum free space has been configured, the default is one megabyte.

See dumpadm(1M) for more information.

The dump configuration parameters managed by the dumpadm command are stored in the /etc/dumpadm.conf file.
Obviously you do not have to dump in swap, so these arguments about core dumps and swap is a red-herring logical fallacy.

reborg said that you do need to allocate any swap to save cores. This is 100% correct.
# 17  
Old 08-10-2008
Quote:
Originally Posted by Neo
The discussion was about swap, and you do not need to dump in swap space, you can dump in the filesystem, if you choose.
This is indeed the point and I'm sorry to insist telling you are incorrect in thinking you can dump in the filesystem.

As I already wrote and as the documentation states you either dump in the swap area or in a dedicated partition. The latter doesn't help saving disk space, just the opposite. It helps speeding up the boot process which might make sense.
# 18  
Old 08-10-2008
Quote:
Originally Posted by jlliagre
This is indeed the point and I'm sorry to insist telling you are incorrect in thinking you can dump in the filesystem.

As I already wrote and as the documentation states you either dump in the swap area or in a dedicated partition. The latter doesn't help saving disk space, just the opposite. It helps speeding up the boot process which might make sense.
No, I am sorry to disagree on this point. The documentation for dumpadm(1M) and savecore(1M) both say that you specify the partition, but you can also specify the directory:

Quote:
-s savecore-dir
Modify the dump configuration to use the specified directory to save files written by savecore. The directory should be an absolute path and exist on the system. If upon reboot the directory does not exist, it will be created prior to the execution of savecore. See the NOTES section below for a discussion of security issues relating to access to the savecore directory. The default savecore directory is /var/crash/hostname where hostname is the output of the -n option to the uname(1) command
.

Excuse me for saying so, but /var/crash/hostname, for example, is a directory in a filesystem because directories are created in filesystems. (In other words, you have to make a filesystem before you can create a directory!)

And, as I mentioned before, this line of discussion has little to do with the issues reborg's point on swap space that you questioned, he posted:

Quote:
You don't need to allocate any swap space to deal with savecores, and have not since Solaris 8.
and he was absolutely right.

You replied with your personal preference to dump in swap. That is your preference, not a requirement. While I respect your opinion, it is an opinion, not a requirement. You simply do not need to dump in swap.
# 19  
Old 08-10-2008
Furthermore ....

If you take a look at this page:

dumpadm(1M) – configure operating system crash dump (man pages section 1M: System Administration Commands) - Sun Microsystems

You will see:

Example 1 Reconfiguring The Dump Device To A Dedicated Dump Device:


The following command reconfigures the dump device to a dedicated dump device:

Quote:
example# dumpadm -d /dev/dsk/c0t2d0s2

Dump content: kernel pages
Dump device: /dev/dsk/c0t2d0s2 (dedicated)
Savecore directory: /var/crash/saturn
Savecore enabled: yes
That directory in the output of dumpadm is in the filesystem Smilie
# 20  
Old 08-10-2008
Also ....

In the same man page as the post below:

Quote:
Security Issues
If, upon reboot, the specified savecore directory is not present, it will be created prior to the execution of savecore with permissions 0700 (read, write, execute by owner only) and owner root. It is recommended that alternate savecore directories also be created with similar permissions, as the operating system crash dump files themselves may contain secure information.
I note that setting permissions on a directory (like 0700) can be done because it is a filesystem.
# 21  
Old 08-10-2008
And from savecore ....

From savecore:

savecore(1M) – save a crash dump of the operating system (man pages section 1M: System Administration Commands) - Sun Microsystems

Quote:
Before writing out a crash dump, savecore reads a number from the file directory/minfree. This is the minimum number of kilobytes that must remain free on the file system containing directory. If after saving the crash dump the file system containing directory would have less free space the number of kilobytes specified in minfree, the crash dump is not saved. if the minfree file does not exist, savecore assumes a minfree value of 1 megabyte.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris 10 swap device and filesystem

Hi all, Q1) Due to application requirement, i am required to have more swap space. Currently my swap is on a partition with 32GB. I have another partition with 100GB, but it already has a UFS filesystem on it. Can i just swap -d /dev/dsk/current32gb and swap -a /dev/dsk/ufs100gb ? Will... (17 Replies)
Discussion started by: javanoob
17 Replies

2. Solaris

Swap Solaris 5.10

I have a customers that is getting grid alerts that swap is over 95% utilized. When I do swap -l on the machine I get the following results. $ swap -l swapfile dev swaplo blocks free /swap/swapfile - 16 6291440 6291440 /swap/swapfile2 - 16 8191984... (18 Replies)
Discussion started by: Michael.McGraw
18 Replies

3. Solaris

Problem with Swap consumption

Hi Experts, I have M4000 server with 132 GB Physical memory. 4 sparse zones are running under this server, which are running multiple applications. I am not getting any pointer, where swap space is getting consumed. Almost 97% of swap space is being used. I checked all /tmp (of zones as well),... (7 Replies)
Discussion started by: solaris_1977
7 Replies

4. Solaris

How to check power consumption of Solaris servers ?

hi friends, we are relocating our DC and need to plan out electrical power for the new DC. are there ways i could find the actual power consumption from my current servers ? instead of the product specs. (2 Replies)
Discussion started by: Exposure
2 Replies

5. Shell Programming and Scripting

Determining User Consumption in solaris

Inorder to find the user memory consumption I used the command: prstat -s cpu -a -n 10 But now I want to automate it and want to write the output to a file. How can I write the out put of user name and percentage of consumption alone to an output file.? (2 Replies)
Discussion started by: engineer
2 Replies

6. Solaris

Solaris 10 SWAP SPACE

We have a SPARC system which is running on Solaris-9 and Physical memory size is 16GB.We have allocated 32GB SWAP space(2 times of physical memory).But when we use df -h command it shows following output and SWAP space size shows more than our allocated space # df -h Filesystem size used... (2 Replies)
Discussion started by: cyberdemon
2 Replies

7. Solaris

Solaris 10 - Memory / Swap

Hi all Got myself in a pickle here, chasing my own tail and am confused. Im trying to work out memory / swap on my solaris 10 server, that Im using zones on. Server A has 32Gb of raw memory, ZFS across the root /mirror drives. # prtdiag -v | grep mem = Memory size: 32768 Megabytes #... (1 Reply)
Discussion started by: sbk1972
1 Replies

8. AIX

Zerofault terminates and coredumps - Segmentation fault

Hi, I am using zerofault in AIX to find memory leaks for my server. zf -c <forked-server> zf -l 30 <server> <arguments> Then after some (5 mins ) it terminates core dumping and saying server exited abnormally. I could not understand the core file generated: its something like show in below... (0 Replies)
Discussion started by: vivek.gkp
0 Replies

9. Solaris

Solaris Mem Consumption

We have Sun OS running on spark : SunOS ciniwnpr67 5.10 Generic_118833-24 sun4u sparc SUNW,Sun-Fire-V440 Having Physical RAM : Sol10box # prtconf | grep Mem Memory size: 8192 Megabytes My Top Output is : 130 processes: 129 sleeping, 1 on cpu CPU states: 98.8% idle, 0.2% user, 1.0%... (27 Replies)
Discussion started by: rajwinder
27 Replies

10. Programming

Reg: char ptr - Coredumps

#include <stdio.h> void main() { int Index=1; char *Type=NULL; Type = (char *)Index; printf("%s",Type); } Getting coredump (5 Replies)
Discussion started by: vijaysabari
5 Replies
Login or Register to Ask a Question