Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Increase swap size

  1. #11
    Join Date
    Mar 2008
    Beans
    76

    Re: Increase swap size

    Hi I followed the tutorial and at the first comand dd if=/dev/zero of=/extra-swap bs=1M count=1024 I got permision denied So I couldnt do anything else Thanks for the tip anyway

  2. #12
    Join Date
    May 2008
    Location
    Montreal, Qc, Canada
    Beans
    412
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Increase swap size

    I should have mentioned it:

    insert

    sudo

    before each command. The system will ask for your password the first time, but will not for the subsequent commands. So you'll need to enter it as follows from dd:

    sudo dd if=/dev/zero of=/extra-swap bs=1M count=1024

    We’ll use the mkswap command to make our file swap-consumable for the Linux kernel.

    sudo mkswap /extra-swap


    To turn on the swap file run

    sudo swapon /extra-swap


    Now swapon -s will show the new file also.


    And to make this swap on even after booting your machine you have to enter



    sudo cp /etc/fstab /etc/fstab.mybackup


    That should work.
    Self-appointed Newbie Advocate & Honorary Authorized Troll
    Ubuntu is Freedom. Learn the basics, then enjoy shaping your own.
    Need a place to start? Look here. Get help.
    PLZ mark your [SOLVED] posts. L.U. #471967

  3. #13
    Join Date
    Mar 2008
    Beans
    76

    Re: Increase swap size

    OK THANKS for that I did everything you said it went well actually to well i created 1.4gig I backed it up rebooted but my widget is now saying I only have 385 mb Is it there when I need it or did I not wait long enough for it to back up before rebooting. I think 1.4 gig is a little to much swap I thought about 800 - 1000 mb

  4. #14
    Join Date
    Dec 2007
    Location
    Israel
    Beans
    990
    Distro
    Lubuntu 12.04 Precise Pangolin

    Re: Increase swap size

    Monitor your swap space usage before making changes, you can know how much swap you really need. Use the system monitor->resource tab in Ubuntu.
    If you can, help others; if you cannot do that, at least do not harm them.
    Dalai Lama

  5. #15
    Join Date
    May 2008
    Location
    Montreal, Qc, Canada
    Beans
    412
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Increase swap size

    The swap you created is a supplementary swap. It is only used when needed and as much as needed.
    Self-appointed Newbie Advocate & Honorary Authorized Troll
    Ubuntu is Freedom. Learn the basics, then enjoy shaping your own.
    Need a place to start? Look here. Get help.
    PLZ mark your [SOLVED] posts. L.U. #471967

  6. #16
    Join Date
    Mar 2008
    Beans
    76

    Re: Increase swap size

    Thanks I changed the sudo dd if=/dev/zero of=/extra-swap bs=1M count=1024 from 1024 to 500 and I hope I have saved it OK THANKYOU FOR ALL YOURE HELP

  7. #17
    Join Date
    Mar 2008
    Beans
    76

    Re: Increase swap size

    Hi I eventually created 800mb of swap But I have just booted up again and my swap according to my widget is only 384mb as before. Is my extra swap there or do I have to create it every time???

  8. #18
    Join Date
    Jul 2006
    Location
    Here
    Beans
    11,187

    Re: Increase swap size

    philipluna66, if you installed swapd and made the change in swapd.conf you don't need to worry about swap, it will make a swap file 128mb at a time only when needed and remove it when no longer needed.

    if your under the impression that swap can increase your performance your wrong, swap is slow, you want to use as less of it as possible, it's just emergency memory and not used all the time.

  9. #19
    Inxsible's Avatar
    Inxsible is offline Badabing Badabang Badaboom...Sucker!
    Join Date
    Feb 2006
    Beans
    4,996

    Re: Increase swap size

    Wouldn't it have been easier to just increase swap using Gparted and resizing the appropriate partitions?

    And I agree with kerry. The less the swap is used, the better it is
    Shed that weight!! -- Apps | Window Managers

    Arch + i3 (tty1) Arch + wmfs (tty2)

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •