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 |
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 Cheers, Tink |
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?)
|
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. |
That's indeed how it works. You can add more if more is needed.
Of course performance would deteriorate at some stage. Cheers, Tink |
Quote:
Cheers |
All times are GMT -5. The time now is 10:32 AM. |