Sponsored Content
Operating Systems Solaris How much portion of RAM is allocated to Swap space? Post 302372941 by ramnagaraj on Thursday 19th of November 2009 05:31:03 AM
Old 11-19-2009
How much portion of RAM is allocated to Swap space?

How swap is getting 12GB as its size as per the below output:
Code:
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d0 7.9G 2.1G 5.7G 27% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 12G 1.2M 12G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
7.9G 2.1G 5.7G 27% /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
7.9G 2.1G 5.7G 27% /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd 0K 0K 0K 0% /dev/fd
/dev/md/dsk/d3 7.9G 386M 7.4G 5% /var
swap 512M 216K 512M 1% /tmp
swap 12G 40K 12G 1% /var/run
/dev/md/dsk/d6 30G 766M 29G 3% /u02
/dev/md/dsk/d2 9.9G 92M 9.7G 1% /u01
/dev/md/dsk/d7 12G 3.8G 7.9G 33% /u03
/dev/md/dsk/d8 30G 1.1G 28G 4% /u04
/dev/md/dsk/d40 290G 2.0G 285G 1% /appdata
/dev/md/dsk/d4 12G 1.4G 10G 13% /opt/ems
/dev/dsk/c1t0d0s7 7.9G 1.5G 6.3G 20% /export/home
/dev/lofi/1 1.8G 1.8G 0K 100% /cdrom
ems15:~# swap -l
swapfile dev swaplo blocks free
/dev/dsk/c1t0d0s1 32,1 16 16790384 16790384
ems15:~# swap -s
total: 1861848k bytes allocated 421304k reserved = 2283152k used, 12779832k available
ems15:~# prtconf -v | grep -i mem
Memory size: 8192 Megabytes

Queries:
• How swap size is populating it as “12GB”.
• If we see the swap –s output, total swap space is (2283152k used 12779832k available = 14.37 GB). Theoretically we know that swap space is sum of hard disk allocated for swap space during partition and few portion of real memory i.e. RAM. If that is the scenario, in the above system we are having 8GB real memory. My question is how much percentage of real memory is allocated for swap space. Is there any command to find that? Why swap is not showing this 14.37
GB as its size in df –h output rather its showing 12GB.

Rgrds,
Ram.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Swap space used greater than allocated using top

Hi there, When I run top on my machine it says I have 497M swap space in use, and 380M swap space free, but I have only allocated 512M swap space to the machine!!!! Does anyone know how swap used is calculated in the top command? Thanks... (1 Reply)
Discussion started by: chorgan
1 Replies

2. Solaris

RAM and SWAP confusion

Hi Folks, This is my first post here - so nice to meet u all :-) Recently i was trying to dig a little bit into the memory structure of my machine and due to the lack of concept, cannot figure out a calculation. This is how it goes: 1) My swap slice is at the usual /dev/dsk/c0t1d0s1... (0 Replies)
Discussion started by: s4g3
0 Replies

3. UNIX for Dummies Questions & Answers

df+du=Total space allocated(for a file system)

Hi All, Will df+du=Total space allocted for a file system?? Is the above correct. Please correct me If iam wrong. In one my programs the above is not happening. Please help me out. Many thanks. Regards, Manas (2 Replies)
Discussion started by: manas6
2 Replies

4. Solaris

Can be changeed the allocated space

i am working with solaris 9 and my disk usages are # df -k Filesystem kbytes used avail capacity Mounted on /dev/dsk/c0t0d0s0 2148263 1902721 202577 91% / /proc 0 0 0 0% /proc mnttab 0 0 0 ... (3 Replies)
Discussion started by: smartgupta
3 Replies

5. Solaris

Solaris Disk based portion of swap.

Using 'swap -l' I can get the disk based portion of swap. What if the swap (/usr/bin/swap) command isn't available. What are my options then? Could I get this number with kstat? From /etc/vfstab, I can see the partitions that are reserved for swap. /dev/dsk/c0d0s1 using df however not... (3 Replies)
Discussion started by: Devyn
3 Replies

6. Solaris

Increasing allocated space to a mount - possible?

Hey guys, I am somewhat new to Solaris - and very new when it comes to mounts. My problem is that when I installed Solaris, I allocated way too little diskspace to my / mount (it first became obvious now, however, because of new needs). bash-3.00# df -h Filesystem size ... (25 Replies)
Discussion started by: brightstorm
25 Replies

7. UNIX for Dummies Questions & Answers

How to find the disk space allocated.

Hello, I need to find the total allocated disk space for the home directory. How can i find that in unix?(in GB). Thanks. (4 Replies)
Discussion started by: kailash19
4 Replies

8. Solaris

Out of swap but RAM available

Hi all, The environment we're using is a T5440 running Solaris 10 LDOMs and zones configured within the LDOM. The LDOM has 32Gb of RAM and 32Gb of swap. Last week, we had an issue where the MQ server on zone 3 crashed as it ran out of swap, apparently caused by zone 2 usage. I understand that... (7 Replies)
Discussion started by: JerryHone
7 Replies

9. Red Hat

more swap and ram used in application

Hi All, I have a RAM of around 11 gig and swap of around 18 G in my Linux Server. But at some times , I find that All the RAM and 5 gig of swap is used in server...and i also got some advice from our discussion forums to increase the RAM . But nowadays what happens is the all the RAM... (1 Reply)
Discussion started by: jegaraman
1 Replies

10. Shell Programming and Scripting

Shell script to sum up the space allocated to filesystems

Hi , I Would like to know the space allocated by adding up all the allocated space to group of filesystems .. example , df -h|grep /db | awk '{ print $4 }' ---> giving me all the used space on the filesystem but need to know the total used space by adding up all the values (3 Replies)
Discussion started by: nsankineni
3 Replies
ppmtosixel(1)						      General Commands Manual						     ppmtosixel(1)

NAME
ppmtosixel - convert a portable pixmap into DEC sixel format SYNOPSIS
ppmtosixel [-raw] [-margin] [ppmfile] DESCRIPTION
Reads a portable pixmap as input. Produces sixel commands (SIX) as output. The output is formatted for color printing, e.g. for a DEC LJ250 color inkjet printer. If RGB values from the PPM file do not have maxval=100, the RGB values are rescaled. A printer control header and a color assignment table begin the SIX file. Image data is written in a compressed format by default. A printer control footer ends the image file. OPTIONS
-raw If specified, each pixel will be explicitly described in the image file. If -raw is not specified, output will default to com- pressed format in which identical adjacent pixels are replaced by "repeat pixel" commands. A raw file is often an order of magni- tude larger than a compressed file and prints much slower. -margin If -margin is not specified, the image will be start at the left margin (of the window, paper, or whatever). If -margin is speci- fied, a 1.5 inch left margin will offset the image. PRINTING
Generally, sixel files must reach the printer unfiltered. Use the lpr -x option or cat filename > /dev/tty0?. BUGS
Upon rescaling, truncation of the least significant bits of RGB values may result in poor color conversion. If the original PPM maxval was greater than 100, rescaling also reduces the image depth. While the actual RGB values from the ppm file are more or less retained, the color palette of the LJ250 may not match the colors on your screen. This seems to be a printer limitation. SEE ALSO
ppm(5) AUTHOR
Copyright (C) 1991 by Rick Vinci. 26 April 1991 ppmtosixel(1)
All times are GMT -4. The time now is 09:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy