- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- How to Increase the swap
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
Forums
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
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
тАО06-21-2005 12:34 AM
тАО06-21-2005 12:34 AM
How to Increase the swap
I have Redhat linux ES 3,and i want to increase the paging space,how can i increase it?
what's the command to know the current swap?
Thank's a lot.
Best regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2005 12:49 AM
тАО06-21-2005 12:49 AM
Re: How to Increase the swap
swapon -s
grep SwapTotal /proc/meminfo
free
To make additional swap, you have a few choices. If you are using LVM, and you have some physical extents free, you can create a new logical volume, and 'mkswap' it.
If you have any physical disk space available, you can create a new partition (using 'fdisk', setting it's filesystem-type to 'swap' (82)), and then use 'mkswap' on it.
Or if you have neither of those, and just some free disk space, you can create a paging file using 'dd', and create a virtual-swap-file using that (see 'man mkswap' for more details).
Either way, make sure you add the '/etc/fstab' entry to automatically add it upon boot-up.
Good luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2005 12:51 AM
тАО06-21-2005 12:51 AM
Re: How to Increase the swap
swapon -s
to increase your available swap space with a swap file:
check out the following link:
http://enterprise.linux.com/enterprise/05/03/02/2250257.shtml?tid=129&tid=42
Regards,
Sergejs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2005 01:37 AM
тАО06-21-2005 01:37 AM
Re: How to Increase the swap
use free command to find out current swap size on your system.
To add swap, there are two ways:
* If you are having free partition, then set it to type swap using fdisk and format it using mkswap. To add this in to swap space, you can use swapon
To make it permanent add this entry in /etc/fstab, like:
/dev/device swap swap defaults 0 0
if you dont have any free partition, then create a block file using dd command (check man mkswap for more details on this) and use this file as swap. you can add this into /etc/fstab to make it permanent.
Hope this helps,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2005 01:50 AM
тАО06-21-2005 01:50 AM
Re: How to Increase the swap
Increasing swap beyond 2 time memory will negatively affect overall performance. If you are already at this level, the real answer to memory shortage issues is to increase memory, not swap.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com