Sponsored Content
Operating Systems Solaris Coredumps and swap - was part of Solaris Mem Consumption Post 302223745 by jlliagre on Monday 11th of August 2008 09:45:10 AM
Old 08-11-2008
Quote:
Originally Posted by Neo
You take one of a couple of alternatives, because you seem to love swap, for some reason, which is a legacy leftover from the days of expensive memory; and then you try to justify your position by insisting to dump in swap.
I don't think I ever wrote or suggested I loved swap. Swap isn't something to be loved or hated but something that need not be undersized.

To properly size the swap area, there are two factors to take into account.

1: at the peak virtual memory consumption, all memory reservations need to be backed by either RAM or swap area pages. This doesn't means any activity will necessarily occur on the swap, just the pages have to be there. Solaris isn't doing lazy memory allocation like the Linux kernel does. The free virtual memory can be easily monitored and it is easy to increase its size by adding new swap devices or swap files, so this first point isn't that much of a problem.

2: The default Solaris configuration is to have crash dumps to be written on the swap. Many (but not 99.9% of) Solaris installations are using this standard configuration. In the old Solaris 2.x days, the swap area was very often larger than the RAM size because the (already obsolete) rule of thumb x2 was still followed. There was no risk for the crash dump not to fit. Nowadays, it is not uncommon to have the RAM much larger than the swap. That means there is a risk to miss the invaluable data stored there should a panic happen. I'm not telling this risk cannot be overcome, I'm telling many people are unaware of this risk because it is not common to monitor the kernel size and even less common to check if it would fit in the dump device should a panic occur.

Quote:
Believe me. You do not need swap in most modern systems. Swap slows you down - why do it with memory is cheap.
Swap doesn't slows you down, lack of RAM slows you down when swap is available and crashes your application when no swap is there. I strongly prefer my applications to slow down and the OS to paginate than seeing random applications crashing because of malloc failures.
There are also usage profiles were using disk instead of RAM to store virtual memory make sense. If a process, say a whole SunRAY user session, isn't going to be used for days, what is the point keeping its data bits on RAM ? Better to use that RAM as file cache for live applications.
RAM is cheap, true, but disks are definitely cheaper.

Quote:
You don't need to dump in swap either.
Indeed but the issue is most people do it because it's the default.

Quote:
reborg's orginal statement on this was not misleading.
Perhaps did I pick the wrong word. I don't say the statement is incorrect, I just say that statement would deserve some explanations. I have met several unexperienced Solaris administrators who wrongly thought the crash dump was directly written to the savecore directory. On the other hand, I'm glad Reborg enlighten us about the undocumented way to save the dumps on an UFS file.

Last edited by jlliagre; 08-11-2008 at 01:40 PM.. Reason: word mismatch corrected.
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
All times are GMT -4. The time now is 10:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy