Jumpstart and swap

Hi,

Why is my swap space not = to 8gb ?

Here is my partitioning from the profle :

partitioningexplicit

metadbc1t0d0s7 size 8192 count 4

metadbc1t1d0s7 size 8192 count 4

filesysmirror:d40 c1t0d0s0 c1t1d0s0 8192 / logging

filesysmirror:d41 c1t0d0s1 c1t1d0s1 30720 /var logging

filesysmirror:d43 c1t0d0s3 c1t1d0s3 8192 swap

filesysmirror:d46 c1t0d0s6 c1t1d0s6 15360 /opt logging

My df and swap -l don't report 8Gb... Why ?

bash-2.05# swap -l

swapfile dev swaplo blocksfree

/dev/md/dsk/d4385,4316 16780208 16780208

bash-2.05# df -h

Filesystem sizeused avail capacity Mounted on

/dev/md/dsk/d407.9G1.5G6.3G19%/

/proc0K0K0K0%/proc

mnttab0K0K0K0%/etc/mnttab

fd0K0K0K0%/dev/fd

/dev/md/dsk/d41 30G1.2G28G5%/var

swap15G32K15G1%/var/run

swap512M0K512M0%/tmp

/dev/md/dsk/d46 15G57M15G1%/opt

Thanks for your help !

[955 byte] By [@alex@] at [2007-11-26 10:35:22]
# 1
Do you have any relevant information in /var/sadm/system/logs/install_log ? .7/M.
mAbrante at 2007-7-7 2:45:46 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2

1'000 Posts !!! Congratulations !!

Install_log seems to be ok.

[...]

- Configuring SVM Mirror Volume d43 on swap (c1t0d0s3)

- Configuring SVM Mirror Volume d43 on SWAP_MIRROR (c1t1d0s3)

- Creating SVM Mirror Volume d43 (swap)

Customizing system files

/dev/md/dsk/d43--swap-no-

[...]

And format to :

Current partition table (original):

Total disk cylinders available: 14087 + 2 (reserved cylinders)

PartTagFlagCylinders SizeBlocks

0rootwm1649 - 32978.00GB(1649/0/0)16780224

1varwm3298 - 948030.00GB(6183/0/0)62918208

2backupwm0 - 1408668.35GB(14087/0/0) 143349312

3swapwu0 - 16488.00GB(1649/0/0)16780224

4 unassignedwm00 (0/0/0) 0

5 unassignedwm00 (0/0/0) 0

6 unassignedwm9481 - 1257215.00GB(3092/0/0)31464192

7 unassignedwm12573 - 1257619.88MB(4/0/0) 40704

@alex@ at 2007-7-7 2:45:46 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3
Dude swap -l output is in blocks.The /tmp is different concept in Solaris.I do not see issue here at all
dombal at 2007-7-7 2:45:46 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 4

Yup, the above looks correct.

If you are doing this on a 32 bit version of Solaris, you will only be able to use 2 GB of the device as swap. Also, if you only see 512 MB as available in /tmp, this means that an application have used 7.5 gb of SWAP (on a 64 bit system) or 1.5 gb (on a 32 bit system).

Try and run "prstat -s size" to get a process listing sorted on the memory usage.

.7/M.

mAbrante at 2007-7-7 2:45:46 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 5

> Also, if you only see 512 MB as available in

> /tmp, this means that an application have used 7.5 gb

> of SWAP (on a 64 bit system) or 1.5 gb (on a 32 bit

> system).

Except that /var/run which is mounted on the same thing (SWAP), shows 15G. So most likely /tmp is limited to an explicit 512M in /etc/vfstab.

--

Darren

Darren_Dunham at 2007-7-7 2:45:46 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 6
Good point! I have to test that :) I should have been more attentive. .7/M.
mAbrante at 2007-7-7 2:45:46 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 7
I'm lost... :-)The configuration is ok. But why I cann't see something like :swap8G32K15G1%/var/runThanks
@alex@ at 2007-7-7 2:45:46 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 8

> I'm lost... :-)

>

> The configuration is ok.

>

> But why I cann't see something like :

>

> swap8G32K15G1%

>/var/run

You do see something like that. Are you asking why those numbers aren't exactly the same?

"swap" in most contexts on solaris is the same thing as "virtual memory" which is different from "swapfiles on disk".

Swap is a unified set of pages from both RAM and disk. So the 8G on disk are added to the 8G of ram, minus pages that are in use for about 15G of free swap.

so the rule is don't use filesystem tools (df) to tell you much about your virtual memory.

Instead use 'swap -l' to understand swapfile use and 'swap -s' to understand total swap space usage. Throw in 'vmstat' for a good first shot at RAM usage.

--

Darren

Darren_Dunham at 2007-7-7 2:45:46 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 9
Darren, Thank you very much for your explanations.All is ok now!Greetings!
@alex@ at 2007-7-7 2:45:46 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 10

would like to add my little mite:

with respect to the allocation of the swap space to be used for /tmp:

could it be that by default the system is configured only to use 512 MByte for /tmp

space, to avoid users to create very large tmp files and fill the memory that way.

At least on some of my systems that is what I have done.

Lydia

lydiaheck at 2007-7-7 2:45:46 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...