- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: SWAP memory size
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-07-2004 06:46 PM
тАО04-07-2004 06:46 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2004 06:58 PM
тАО04-07-2004 06:58 PM
SolutionThe easiest way to find out how much swap you've currently configured however is to just:
cat /proc/meminfo
To configure more swap, you can use one of three methods:
- If you've got available un-partitioned disk space, create a new swap partition in the available space.
- If you've got available disk-space, and want to resize an existing partition, reduce one, then do as above.
- Failing those two, create a paging 'file' on a filesystem (using dd) of the required size, then add that to the swap pool.
The first two methods should be pretty self explanatory.
The third however is a little more complex.
Basically you create a null-filled file of the required size by doing:
dd if=/dev/zero of=/myswapfile bs=1024b count=
You then 'mkswap /myswapfile' the file, and then swapon it.
If you need more details, drop a line, or read http://www.ibiblio.org/pub/Linux/docs/HOWTO/Swap-Space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2004 07:07 PM
тАО04-07-2004 07:07 PM
Re: SWAP memory size
For Checking Swap Size and Usage,
Cat /proc/swaps
Adding a permanent swap file to the system is not recommended because it will lead to performance problems, instead u can add more physical memory.
Adding a Swap Space
Check this URL for more information.
http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/custom-guide/s1-swap-adding.html
Instead of using a raw device, u can a temporary file:
Try this
su - root
dd if=/dev/zero of=tmpswap bs=1k count=900000
chmod 600 tmpswap
mkswap tmpswap
swapon tmpswap
With Regards
Hari Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2004 07:09 PM
тАО04-07-2004 07:09 PM
Re: SWAP memory size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2004 07:10 PM
тАО04-07-2004 07:10 PM
Re: SWAP memory size
man swapon
Regds,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2004 07:19 PM
тАО04-07-2004 07:19 PM
Re: SWAP memory size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2004 07:20 PM
тАО04-07-2004 07:20 PM
Re: SWAP memory size
If none of the swap is currently in use, it also shouldn't have an effect if you remove the current swap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-08-2004 01:09 AM
тАО04-08-2004 01:09 AM
Re: SWAP memory size
Dont Mind, assign some points if u got an acceptable answer through the forum. As these will be encouraging for the participants and keep the HP Forums go higher and higher
With Regards
Hari
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2004 07:56 AM
тАО04-09-2004 07:56 AM
Re: SWAP memory size
Can also see by SAM, glance and I would suggest to create new SWAP and give same priority as you have on existing swap. SWAP filesystem is contigous and its always better to create new one in addition to current ones.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2004 12:32 PM
тАО04-09-2004 12:32 PM