LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 12-21-2007, 01:53 PM   #16
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162

Yes - I'd ask them whether you actually have swap available. If not, they may be able to make swap space available or to allocate more RAM to your VPS. If none of that is possible, you may be able to create a swap file to use instead of a swap partition.
 
Old 12-28-2007, 02:30 AM   #17
brokenpromises
Member
 
Registered: Jan 2005
Location: NZ
Distribution: Fedora / Debian
Posts: 98

Original Poster
Rep: Reputation: 21
How do I create a swap file?
 
Old 12-28-2007, 02:44 PM   #18
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
There's more info at http://www.redhat.com/docs/manuals/l...ap-adding.html and http://linux.about.com/od/linux101/l/blnewbie4_2_13.htm, but basically:
Code:
 To add a swap file:

   1. Determine the size of the new swap file and multiple by 1024 to determine the block size. For example, the block size of a 64 MB swap file is 65536.
   2. At a shell prompt as root, type the following command with count being equal to the desired block size:

      dd if=/dev/zero of=/swapfile bs=1024 count=65536

   3. Setup the swap file with the command:

      mkswap /swapfile

   4. To enable the swap file immediately but not automatically at boot time:

      swapon /swapfile

   5. To enable it at boot time, edit /etc/fstab to include:

      /swapfile               swap                    swap    defaults        0 0

      The next time the system boots, it will enable the new swap file.
   6. After adding the new swap file and enabling it, make sure it is enabled by viewing the output of the command cat /proc/swaps or free.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Analyzing .WAV files indienick Programming 4 08-16-2006 03:30 PM
Deleted /var/log/messages, can't log any files-iptables chingyenccy Linux - Newbie 7 02-27-2005 05:03 PM
can't mount windows shares; need help interpreting log soren625 Linux - Networking 6 10-01-2004 08:05 PM
Interpreting Snort log files and alerts epeus Linux - Security 6 10-21-2002 10:47 AM
Can log files be time stamped? (such as FTP login and transfer log files) bripage Linux - Networking 6 08-08-2002 11:55 PM


All times are GMT -5. The time now is 02:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration