Jump to content
 English      
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
     Forums advanced search
HP.com Home
IT Resource Center Forums > Linux > system administration

swap space on linux

» 

IT Resource Center

» Login
» Register
» My profile
» Search knowledge base
» Forums
» Patch database
» Download drivers, software and firmware
» Warranty check
» Support Case Manager
» Software Update Manager
» Training and Education
» More maintenance and support options
» Online help
» Site map

Member icons
 
 HP moderator  HP moderator
 Expert in this area  Expert in this area
Member status
ITRC Pro ITRC Pro
250 points
ITRC Graduate ITRC Graduate
500 points
ITRC Wizard ITRC Wizard
1000 points
ITRC Royalty ITRC Royalty
2500 points
ITRC Pharaoh ITRC Pharaoh
7500 points
Olympian Olympian
20000 points
1-Star Olympian 1-Star Olympian
40000 points
2-Star Olympian 2-Star Olympian
80000 points
»  How to earn points
»  Support forums FAQs
Question status
Magical answer Magical answer
Message with a response that solved the author's question
Favorites status
Add to my favorites Add to my favorites
Delete from my favorites Delete from my favorites
This thread has been closed Thread closed
 

Content starts here
   Create a new message    Receive e-mail notification if a new reply is posted  Reply to this message
Author Subject: swap space on linux      Add to my favorites
Sanjit Chand Expert in this area
Nov 5, 2009 17:16:44 GMT   

I have this device with this much space available and would like to create a 100g swap space.

Please tell me how I would do that?

/dev/sdb1 135G 92M 128G 1% /scratch

Thanks and points will be assigned.
Note: If you are the author of this question and wish to assign points to any of the answers, please login first.For more information on assigning points ,click here


Sort Answers By: Date or Points
Matti Kurkela Expert in this area This member has accumulated 7500 or more points
Nov 5, 2009 17:42:46 GMT    Unassigned

Type "man mkswap". Read.

Type "man swapon". Read.

Then you'll know.

MK
Sanjit Chand Expert in this area
Nov 5, 2009 18:11:20 GMT    N/A: Question Author

In short,

its dd
mkswap
swapon.
Steven E. Protter Expert in this area This member has accumulated 80000 or more points
Nov 5, 2009 20:41:30 GMT    Unassigned

Shalom,

Before you go out and create this massive a swap area.

free

Post the output.

If you make a 100 GB swap area, and don't have enough memory, having this much swap space is not going to hep anything.

What is system memory? You should if you have 50 GB of ram not need 100 GB of swap space.

The old rules on this sizing do not apply to new systems with lots and lots and LOTS of RAM.

SEP
Nuwan Alwis Expert in this area This member has accumulated 250 or more points
Nov 6, 2009 03:21:30 GMT    Unassigned

Hi Sanjit,
yes, you can extend your swap space online.
And i also agree with what SEP has said.
think before if you really need this much of swap space. Its not always prove that lager the swap you have it will add performance to your system(some times it will degrade your systems performance)

What i would do is ondemand add swap to the system by using dd.

Good Luck...!
NJ
Viktor Balogh This member has accumulated 500 or more points
Nov 6, 2009 13:38:10 GMT    Unassigned

>yes, you can extend your swap space online.

no, it's not about extending, it's about adding a new swap device
 
Create a new message    Receive e-mail notification if a new reply is posted   Reply to this message
 
 
Printable version
Privacy statement Using this site means you accept its terms
© 2009 Hewlett-Packard Development Company, L.P.