- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- How much of a swap file do you need??
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2005 04:15 PM
тАО04-12-2005 04:15 PM
I am getting ready to setup a Itanium RX4640 4x1.5Ghz and 16GB of RAM running RH Linux AS 3.0 - I know rule of the thumb is that you must create a swap file that's double the size of your RAM. So, if I have 16GB of RAM then I should create a 32GB of swap file, correct? By the way, I will also have Oracle 10g running on this server as well. I believe Oracle usually like to set the SGA higher than most, therefore, it uses more memory then the swap disk.
Can someone direct me to the right direction?
Thank you in advance.
Ian
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2005 07:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2005 07:37 PM
тАО04-12-2005 07:37 PM
Re: How much of a swap file do you need??
guess even with oracle 2 times of mem will do
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2005 08:54 PM
тАО04-12-2005 08:54 PM
Re: How much of a swap file do you need??
http://www.puschitz.com/TuningLinuxForOracle.shtml#SizingSwapSpace
J-P Huc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-12-2005 10:44 PM
тАО04-12-2005 10:44 PM
Re: How much of a swap file do you need??
On systems with a few hundred MB of memory yes, because most applications simply don't have enough with that.
If you are trying to use the complete physical memory, you can should use a swap space of let's say 4 GB. Just as an overflow area when things go wrong (programs allocating more memory than normal). When you have thousands of sessions on your system, it may be a good thing to have a lot of swap space (for parking non-active user).
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2005 01:53 AM
тАО04-13-2005 01:53 AM
Re: How much of a swap file do you need??
Espeically with the Enterprise based distributions which include the ability to send memory dumps upon crash to swap for diagnosis.
If you've got the disk space of course ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2005 02:54 AM
тАО04-13-2005 02:54 AM
Re: How much of a swap file do you need??
This however depends on use. If push the system hard and have lots of swap reservervation or actual swap use,you will need more swap.
Once there is not enough swap left for a process to reserve swap, even if there is no actual paging, the process will fail to start and indicate in the error message that the system has unsufficient memory.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2005 06:42 PM
тАО04-13-2005 06:42 PM
Re: How much of a swap file do you need??
according to the redhat oracle 9i deployment guide it says swap should be 2x ram with a minimum of 1024MB.
i would go with red hats recommendations.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2005 08:52 PM
тАО04-13-2005 08:52 PM
Re: How much of a swap file do you need??
There did used to be a physical limit on the swap size of 2Gb, and as far as I know this was originally due to a filesystem limitation (on size of an idividual file). RHAS-2.1 quotes a max of 6 X 2GB, but I cannot find anything for RHAS 3.x so I would expect it to be the same.
I would suggest creating several equal sized files e.g. 4 x 1Gb and then monitor how much Oracle is actually using, then you can always add more later. This is always dependant on the number of disks you havve.
On IBM/AIX they say that you should have one realtively small paging area that is large enough to boot-up etc, and then several other equally large paging spaces on other disks, and in other volume groups. I've never tried this, but think that it should work just as well for LInux.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2005 09:36 PM
тАО04-13-2005 09:36 PM
Re: How much of a swap file do you need??
1) is linux able to move a process from one file to another when swap space is full or will the process simply abort ?
2) will processes be distributed over the different swap files or is e.g. the 2nd only used when the first one is full ?
3) what performance will an oracle server get when his virtual memory is outswapped ? E.g. if you do a join of 1 M row it might have to do 1 M swap-in-out to get the correct data. Will Linux find another victem with less activity ?
Wim