Sponsored Content
Full Discussion: Swap space calculation
Operating Systems SCO Swap space calculation Post 302249799 by linuxjunkie on Wednesday 22nd of October 2008 06:14:36 AM
Old 10-22-2008
Swap space calculation

Hi every one.

I have a client with a Unixware 7.1.3 system.
4GB Ram
2 x Xeon CPU's
4 x 147GB scsi Raid 5 Config
1 x 147GB Scsi spare drive

Running a database application on top of Unixware

What is the formula you use to determine what the size of the swap file is suppose to be ?.

The "Administration and Installation" guide does not list this information it only says "Size of System = 256MB Size of swap space = 200MB"

On Debian Linux i use the following:
2 x ( Physical Ram ) = ( Swap file size )

For the client's Unixware system the following information was retrieved

# swap -l
path dev swaplo blocks free
/dev/swap 7679,2 0 4192256 4192256
#

swap blocks = 4192256 x 512 = 2,146,435,072 ( 2.1 GB )
free blocks = 4192256 x 512 = 2,146,435,072 ( 2.1 GB )

# swap -s
total: 0 allocated + 1977784 reserved = 1977784 blocks used, 10311584 blocks available
#

used 1977784 x 512 = 101,265,408 ( 101MB )
available 10311584 x 512 = 5,279,531,008 ( 5.2GB )

So my total swap space is 5.3GB.

What i'm trying to establish here is this.

1) Did the guy who installed the system do the correct calculation for the swap file ?.

2) What is the correct formula to follow for calculation swap space for a new system ?.

Thanks in advance
Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

SWAP SPACE

All, I am using SOLARIS 7. I have formated my hard drive to consist of only 150MB of swap space. This isn't enough considering I am running Oracle. How do I create additional swap space? Please list sources or commands. PS mkswap doesn't work on my machine. ( I have swap and... (5 Replies)
Discussion started by: SmartJuniorUnix
5 Replies

2. UNIX for Dummies Questions & Answers

pageing space vs swap space

Hello, I would like to know if there is any difference between the pageing space and the swap space. Thank you in advance. (1 Reply)
Discussion started by: VeroL
1 Replies

3. AIX

swap space / paging space

how do you get the paging space reduced without rebooting the machine ? the os is aix (2 Replies)
Discussion started by: aaronh
2 Replies

4. UNIX for Dummies Questions & Answers

Swap space used???

Plz I need to know how much swap mem free and used i have. I'm using Compaq Tru64 UNIX V5.1A (rev 1885) Thanx (1 Reply)
Discussion started by: Lestat
1 Replies

5. Linux

swap space

Hi, I want to know how can i free the swap space if it is completely full, 0 mb remaining, (1 Reply)
Discussion started by: manoj.solaris
1 Replies

6. Solaris

Swap Space

Could someone please explain how you know how much swap space you have on your system. See below: # swap -s total: 8225048k bytes allocated + 4863488k reserved = 13088536k used, 4008032k available # swap -l swapfile dev swaplo blocks free /dev/dsk/c3t0d0s1 32,25 16... (2 Replies)
Discussion started by: jamba1
2 Replies

7. Linux

How to reclaim the space which i used to increse the swap space on Xen,

Hi, i have done a blunder here, i increased the swap space on Xen5.6 server machine using below steps :- 1056 dd if=/dev/zero of=/root/myswapfile bs=1M count=1024 1057 ls -l /root/myswapfile 1058 chmod 600 /root/myswapfile 1059 mkswap /root/myswapfile 1060 swapon /root/myswapfile ... (1 Reply)
Discussion started by: apm
1 Replies

8. Solaris

Swap space

Dear All, I have a swap space of 16G available in Sol 10. I have allocated it as a seperate file system. But when the RAM Is full used , the system gets rebooted and the swap is not being used,. Any reasons for this. Rgds Rj (5 Replies)
Discussion started by: jegaraman
5 Replies

9. Red Hat

Swap space not getting used

CENT OS 5.8 server running with a huge java application which uses up all my ram (4GB) and requires excess of atleast 2GB.But the swap is not getting used up((8GB) of swap space left unused) leading a wierd error and stopping application to stop working. Any one here dealt with the same kind of... (2 Replies)
Discussion started by: shiek.kaleem
2 Replies

10. UNIX for Advanced & Expert Users

Need to remove leading space from awk statement space from calculation

I created a awk state to calculate the number of success however when the query runs it has a leading zero. Any ideas on how to remove the leading zero from the calculation? Here is my query: cat myfile.log | grep | awk '{print $2,$3,$7,$11,$15,$19,$23,$27,$31,$35($19/$15*100)}' 02:00:00... (1 Reply)
Discussion started by: bizomb
1 Replies
All times are GMT -4. The time now is 12:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy