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
# 29  
Old 08-10-2008
Quote:
Originally Posted by Neo
This was a thread about sizing for swap space, not about a side bar about numerous technical points that are interesting, but logically, a fallacy, because the basic premise that reborg said is correct.
I never wrote what reborg wrote was incorrect. I wrote one blog statement quoted there was misleading and you definitely demonstrated it to be misleading.

I strongly disagree about your "fallacy" point. Many Solaris administrators undersize their swap misunderstanding the crash dump requirements.
Quote:
You simply do not need swap for panic dumps
Please don't insist misleading people. Most Solaris installations, I bet more than 99.9%, use the swap partition as their crash dump storage area.
Quote:
and certainly not for savecores (see I got the distinction right this time).
I'm glad you finally get it. I try hard to explain but failed to convinced you ...
# 30  
Old 08-10-2008
Rereading the thread...thanks to Perderabo for clarifiying the dump/savecore distinction. I ran the two together which isn't really correct, I was implying the overall process for going from panic to having a saved core, and mostly to the coredump part of the process.

Quote:
Originally Posted by jlliagre
I strongly disagree about your "fallacy" point. Many Solaris administrators undersize their swap misunderstanding the crash dump requirements.
Ignroance of alternatives is not the same a necessity.

Quote:
Originally Posted by jlliagre
Please don't insist misleading people.
In the context of this thread I think that it is clear that the comment is accurate.

Quote:
Originally Posted by jlliagre
Most Solaris installations, I bet more than 99.9%, use the swap partition as their crash dump storage area.
While the vast majority of systems will use swap as a dump area I *know* that it is not 99.9% of systems, also it still does not make it necessary which was the original point.
# 31  
Old 08-10-2008
One other thing I also delberately avoided mentioning earlier so as not to muddy the water even further. Neo was sort of correct, despite misunderstanding the behaviour. The dump device can be in a filesystem if a file is used.

Code:
-bash-3.00# mkdir -p /dumps/crashes
-bash-3.00# mkfile 2g /dumps/crashes/dumpfile
-bash-3.00# dumpadm -d /dumps/crashes/dumpfile
      Dump content: kernel pages
       Dump device: /dumps/crashes/dumpfile (dedicated)
Savecore directory: /var/crash/statler
  Savecore enabled: yes

In this situation the file is a valid input for the -f savecore option.
# 32  
Old 08-10-2008
Hmm, I stand corrected Smilie

I first checked on my system but the command failed:

Code:
dumpadm : dumps not supported on /dump/crashes/dumpfile

I checked further and found I was hitting a bug still unfixed as I was using ZFS to store the dumpfile. So indeed, it is possible to have a crash dump written to a file located on UFS, and safely written given the fact the filesystem regular functions are bypassed.

It is unfortunate the manual page doesn't clearly tell about this possibility.

Next time I'll read the kernel source code before posting Smilie
# 33  
Old 08-10-2008
Quote:
Originally Posted by reborg
While the vast majority of systems will use swap as a dump area I *know* that it is not 99.9% of systems.
How can you *know* it ?

Do you have a private backdoor to access all Solaris installations and make statistics ? Smilie
# 34  
Old 08-10-2008
I have to be careful here so please forgive the vagueness becasue I'm running into NDA territory. The company I work for consumes more than 5% of Suns total system output internally, additionally we are the a top OEM of Sun servers globally and have been in both of these situations for quite a number of years. None of the systems we deploy internally or externally use swap as a dump device. This install base accounts for much more than .2% of all Solaris installations according to Sun figures.
# 35  
Old 08-10-2008
Quote:
Originally Posted by jlliagre
It is unfortunate the manual page doesn't clearly tell about this possibility.

Next time I'll read the kernel source code before posting Smilie
Sorry to put you straight with such an obscure dump device Smilie I think this may actually be a deliberate omission from the manpage. I haven't tried it on ZFS for a long time. The original Solaris Express bug for this was written in early 2004. Was it even fixed to allow a zvol to be used?

Also for reasons of being pedantic for others reading this thread, I will add a note. It appears you are using either OpenSolaris or a Nevada built. Technically neither of these is Solaris despite using SunOS 5.11 at their core. Features and functions from these are not necessarily ever going to be seen in Solaris proper, though usually they will; equally not all of the Solaris features will always be in these product.
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