LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   increasing swap space in SUSE Enterprise Server 10 (https://www.linuxquestions.org/questions/linux-newbie-8/increasing-swap-space-in-suse-enterprise-server-10-a-558430/)

Sergei Z 06-01-2007 04:35 PM

increasing swap space in SUSE Enterprise Server 10
 
Hi,
I’m a newbie to Linux and this forum. I’m trying to install Oracle 10g Enterprise Database on SUSE Linux Enterprise Server 10. Oracle requires swap space on the linux machine to be twice the size of RAM. I’ve got 586000 kB RAM and only 516 000 kB of swap space. How can I increase the size of swap space?

Thank you in advance for any suggestions.

Sergei Z

Tinkster 06-01-2007 05:44 PM

Hi, welcome to LQ and the wonderful world of Linux :}


If re-partitioning is not an option you can create a swap
file (which has a little performance penalty compared to
a partition). If you haven't done too much work on the
machine yet I'd highly recommend to re-install and repartition.

Code:

dd if=/dev/zero of=swap.img bs=1024 count=600000
mkswap swap.img
swapon -v swap.img



Cheers,
Tink

Emerson 06-01-2007 06:32 PM

Also, you can have multiple swap partitions and use all of them. You can mix swap partitions and files. (I think, never tried it, but why not?)

Sergei Z 06-01-2007 07:10 PM

thank you very muach for quick replay. Can you also explain to what exact values I neeed to use for dd's parameters

count=
bs=

to increase swap space to 1Gb. Now I have ~ 580 Mb. I understand that *bs* is a size of I/O block in bytes, and *count* is the # of the input blocks to copy [whatever it means]. Should I simply use the ones u provided in your code snippet?: 1024 and 600000 [~ 600 Mb?]. Does the swap space is simply being added to what I already have?

Thanks again for your help.

Tinkster 06-01-2007 08:18 PM

That's indeed how it works. You can add more if more is needed.
Of course performance would deteriorate at some stage.


Cheers,
Tink

Sergei Z 06-01-2007 09:13 PM

Quote:

Originally Posted by Tinkster
That's indeed how it works. You can add more if more is needed.
Of course performance would deteriorate at some stage.


Cheers,
Tink

got it. thanx. I actually work with pre-made Virtual Machine (vmware.com) that has SLES 10 as guest OS. I run it on XR Pro [host system]. I'll look to see if swap space can be increased by means of Virtual Tools from VMWare side [as RAM can be], thou I doubt it.

Cheers


All times are GMT -5. The time now is 10:32 AM.