Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding additional swap space question/suggestion?

Status
Not open for further replies.

ponetguy2

MIS
Aug 28, 2002
442
US
I have a server dedicated to our developers. They are requesting for additional swap space on
their server. Currently, the server has 2GB of physical memory and 700mb of swap space. I will
add an additionl 700mb of swap space today. In the near future, I will add an additional 2GB of
physical memory :)

Here are the steps I took to add more swap space:

1. mkfile 700m /export/home/file/swapfile

2. edit /etc/vfstab. I added the line below:

/export/home/files/swapfile - - swap - no -

3. swap -a /export/home/files/swapfile


Any suggestions or pitfalls I should look out for with this setup?
 
Looks correct. You can add swap at anytime without editing vfstab but rebooting will clear . All I can add is run swap -l before and afterwards.
 
remember: swap on a filesystem is the slowes swap you could ever have! I recommend swap on a FS only in an extreme case, prefere (raw) disk space, prefere the inner circles of the disk (smallest cylinder numbers). But the best thing you could have is enough RAM.
Once I saw a sticker on a car (translated from German to English): my cylinder capacity is large as a bucket! You can't replace cylinder capacity, except by more cylinder capacity!
It's the same with RAM. There is no other break like having not enough RAM.

Best Regards, Franz
--
UNIX System Manager from Munich, Germany
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top