LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-01-2007, 05:35 PM   #1
Sergei Z
LQ Newbie
 
Registered: Jun 2007
Posts: 9

Rep: Reputation: 0
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
 
Old 06-01-2007, 06:44 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 06-01-2007, 07:32 PM   #3
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
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?)
 
Old 06-01-2007, 08:10 PM   #4
Sergei Z
LQ Newbie
 
Registered: Jun 2007
Posts: 9

Original Poster
Rep: Reputation: 0
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.
 
Old 06-01-2007, 09:18 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

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


Cheers,
Tink
 
Old 06-01-2007, 10:13 PM   #6
Sergei Z
LQ Newbie
 
Registered: Jun 2007
Posts: 9

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help Increasing Swap by creating a swap file froggo Red Hat 3 06-13-2006 09:04 AM
Swap Partition in SuSe 9.1 Pro is increasing radicaly and causing system to crash tontito_tx Linux - Newbie 3 02-28-2005 01:47 PM
deleting/resizing swap partition / increasing hd space saranga2000 Linux - Hardware 1 12-09-2004 11:03 AM
Increasing swap space rupesh_pulikool Linux - Networking 1 09-12-2004 11:40 PM
increasing the swap space after installing linux LinToWinWin Linux - Newbie 4 08-03-2004 10:51 PM


All times are GMT -5. The time now is 07:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration