Activity Stream
48,167 MEMBERS
6869 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 6 of 6
  1.     
    #1
    Member
    Website's:
    satiq.net

    Default Swap File

    Hi,
    I'd like to know if it's possible to make one file in VPS and make it works like a swap partition..

    It works on my pc, but I don't know if it works on vps..

    Thanks
    skinner Reviewed by skinner on . Swap File Hi, I'd like to know if it's possible to make one file in VPS and make it works like a swap partition.. It works on my pc, but I don't know if it works on vps.. Thanks Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Banned
    Website's:
    xsl.tel xsltel.com
    it will work on XEN/KVM based VPS.

    but OpenVZ VPS unfortunately most providers don't allow that because it will use Hardware Node space.

    Highest Regards
    Mohammed H

  4.     
    #3
    Banned
    Website's:
    KWWHunction.com
    How ever if a script needs to read swap you can add it in OpenVZ
    Most hosts don't like to offer swap because of the load it generates on the SANs, I/O from alot of random reads and writes.

    If swap is something you really need you can create a swap file, adjust to following to suit your needs:

    1) Create a file to use as swap:
    -this command will create 1GB file
    dd if=/dev/zero of=/swapper bs=1M count=1024

    2) Create a swap are in the file:
    mkswap /swapper

    3) Turn the swap on:
    swapon /swapper

    4) To make the swap area persistent on reboot add the following line to /etc/fstab:

    /swapper swap swap defaults 0 0

    5) Run:

    free -m

    You should now see your available swap space.

  5.     
    #4
    Member
    Website's:
    satiq.net
    I've read that in some case VPS doesn't boot with swap file.. is it true?

  6.     
    #5
    Member
    You can't do swap on OpenVZ. The newest OVZ .32 kernel supports vSwap(where "v" stands for virtual) though but that kernel isn't stable at this time, despite what their official site says. vSwap simply isn't ready yet. Order a VPS on .32 with vSwap enabled and experience the crashes
    KnownSRV.com - Quality comes at a price, and we provide it at affordable prices.
    PayPal, Skrill(MoneyBookers), Payza(AlertPay), 2CheckOut and LibertyReserve accepted!

  7.     
    #6
    Member
    Website's:
    satiq.net
    Ok, I understand
    I'm just curious...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Google+ Post +1 swap
    By joshmoore in forum Traffic Market (Buy, Sell and Trade)
    Replies: 0
    Last Post: 14th Feb 2012, 01:01 AM
  2. [PHP] Images Swap
    By viruz99 in forum Web Application/Script Support
    Replies: 6
    Last Post: 19th Jan 2012, 09:59 AM
  3. Hardlink Swap Meet
    By The_Dirty_Merlin in forum Traffic Market (Buy, Sell and Trade)
    Replies: 0
    Last Post: 18th Jan 2012, 04:30 PM
  4. Swap between Alertpay and Paypal
    By puharta in forum Community Cooperative
    Replies: 4
    Last Post: 5th Mar 2011, 11:12 AM
  5. How to enable swap inside your VPS
    By DLow in forum Technical and Security Tutorials
    Replies: 0
    Last Post: 14th Dec 2010, 01:25 AM

Tags for this Thread

BE SOCIAL