swap memory


 
Thread Tools Search this Thread
Operating Systems Solaris swap memory
# 1  
Old 11-26-2003
swap memory

Hi

Can any help me on setting the swap memory ? I would like to set swap memory for installing oracle 9i software.

RAM - 512 Mb
HDD - 40 Gb
OS - Sun Solaris 5.9
# 2  
Old 11-26-2003
Hi,

Usually ( dependes on the DB function and load ), oracle processes need large virtual address spaces, so I would recommend at least the double of the physical memory... but for a good tunning, you need to pay attention to other parameters, like shared memory, semaphores, etc... and these things are very different if you're using 32 or 64 bits.
# 3  
Old 11-26-2003
Thank you for your input.

yes I am planning to install oracle 9i 32 bit -
# 4  
Old 12-24-2003
Jsilva is right,
depends how "busy" your Oracle DB will be.
Anyways, 2 and 1/2 times the phisical memory it's a good formula, I have never had issues.
# 5  
Old 12-26-2003
Quote:
Originally posted by KDE Man
Jsilva is right,
depends how "busy" your Oracle DB will be.
Anyways, 2 and 1/2 times the phisical memory it's a good formula, I have never had issues.
virtual mem=2x real memory should be your default upto 1 or 2 gb.

this is the way i have always read in various system books for various OS and is pretty consistant with what i have heard around the net.
# 6  
Old 12-29-2003
"virtual mem=2x real memory"
i often heard this opinion, and also used it for some years. but this rule is very old i think and based on mashines with less memory. i'm working as an sunse and my "work" is often based on 16 to 32 GB RAM (or sometimes more) mashines, so you have to explain your costumers why should he have a swap base with 2x real memory..... you cannot spend 2 disks only for memory; there is 32 GB memory waiting for some work....
my way:
i use the same size of memory for swap, otherwise you won't survive a memory dump, and 1 GB for swap paging. i haven't got any problems since this new calculation.

greetings Preßy
# 7  
Old 12-29-2003
Preßy, there is some truth to what you're saying. But 2x memory is still a good calculation. Let's take one step at a time.

Before risc, 32 K was a common memory size and 512 K was a lot of memory. In those days, unix would not allocate a page of memory unless it could also allocate swap for it. If you had 32 K memory, you needed 32 K of swap just to use it all. If wanted to be able to use more than 32K of memory on your 32K machine, you needed 2 or 3 times the swap space. This was not seen as a problem. Disks were very big compared to memory.

Risc changed things. Suddenly we had 32 MB of memory and 300 MB disks. Two to three times memory was a big deal. Someone noticed that a kernel would never swap everything out leaving memory empty. So various schemes were implemented to change that way things work. You can now have 1 GB of memory and .5 GB of swap and things will work. There is a price for this which varies from OS to OS. And you may need to tune the kernel to get it to work.

But disks have caught back up with memory. The old ratios have been matched and even surpassed. 1 GB of memory is a lot. But 2GB of swap is small change. Even my laptop has an 80 GB disk.

Running out of swap is still a disaster. So yes, with modern equipment 2 or 3 times memory is good again. If you have a early 90's system, this won't be true for you. But it's time to upgrade those 500 MB washing-machine-sized drives anyway.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

SWAP memory

Admins, How can I configure the server so that it will utilize the swap file as little as possible? Please correct me if I'm wrong, I would say change the value of sysctl - vm.swappiness? And if, how can I keep it permenatly even after rebooting the system? since no related parameters in... (7 Replies)
Discussion started by: leo_ultra_leo
7 Replies

2. Linux

Swap memory issue

Hi, In our production box i can see the Swap space using the below command free total used free shared buffers cached Mem: 65963232 41041084 24922148 0 877160 35936292 -/+ buffers/cache: 4227632 61735600 Swap: 4192880 ... (6 Replies)
Discussion started by: ratheeshjulk
6 Replies

3. Red Hat

Swap memory

Hi team, Is there any ability to force the system to use the swap memory for a specific service? And prevent another service of using the swap memory? Thanks (2 Replies)
Discussion started by: leo_ultra_leo
2 Replies

4. HP-UX

How much Swap memory do i have ?

here is the output of swapinfo command ==> swapinfo Kb Kb Kb PCT START/ Kb TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME dev 8192000 0 8184000 0% 0 - 1 /dev/vg00/swap reserve - 8184000 -8184000 memory ... (5 Replies)
Discussion started by: mohtashims
5 Replies

5. UNIX for Dummies Questions & Answers

Is swap and Shared memory the same ?

In Linux, Unix environments Is swap and Shared memory the same ? In Linux, swap is mounted on /dev/shm ? I am wondering if the naming of 'shm' has anything to do with Shared memory ? (3 Replies)
Discussion started by: kraljic
3 Replies

6. UNIX for Dummies Questions & Answers

Threshold for swap memory

hi guys the monitoring team is using a tool for monitoring linux boxes and they set an alarm for swap memory to 10%(critical) I really has no idea when swap memory usage is high.... Can someone recommend me a threshold for this? when is warning or critical and this parameters can affect... (3 Replies)
Discussion started by: karlochacon
3 Replies

7. UNIX for Advanced & Expert Users

Query regarding swap memory

Hi, Please help explain and answer the below: 1. I need to predetermine how much swap will my JVM use if it is started with -Xms 512M and -Xmx 1024M ? 2. Can a JVM process just use the Heap and not the Swap memory ? 3. If the Total physical RAM on my server is 8 GB and current Heap... (6 Replies)
Discussion started by: mohtashims
6 Replies

8. UNIX for Dummies Questions & Answers

swap memory

Hi, I want to see used swap memory I know that for this there is command free -m but this shows Swap: 16383 4529 11854 by top command while load is 1.05 max CPU % 24 mysqld why used swap shows 4529 either it is not flushed there is other command... (2 Replies)
Discussion started by: kaushik02018
2 Replies

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

10. Filesystems, Disks and Memory

Total Memory/Swap Memory

I need to put a program together to determine the total, available memory and total and available swap on unix machines. I have been searching for weeks and I seem to run into dead ends. Every unix platform I look at has a different way to determine memory info. Any sugggestions or new... (4 Replies)
Discussion started by: ghe1
4 Replies
Login or Register to Ask a Question