Results 1 to 4 of 4

Thread: What if no swap is used?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    What if no swap is used?

    I'm thinking of replacing external HDD with usb key and disable swapping.
    We all know that SWAP is not good for flash memory.

    What problems may I expect? I'm using latest oleg's firmware, 'torrent' client and samba. Lighthttpd only when needed.

    What happens if RAM gets full? Is it only the apllication affected, that needs more ram at that moment, or also other processes that reside in RAM?

    Thanks.

  2. #2
    Not really an answer to your question but maybe a helpful suggestion...

    I don't know your exact reason for switching to a usb stick but I was on to the same plan (because the hd was too noisy and bulky) until I learned it would force me to disable swapping.
    As I like my routers feature-rich, that was not an option so I went looking for a different solution...
    I found exactly that in the form of an ultra-portable external hd which is very compact, very silent and powered by the router as well.
    Not that I have anything to do with Western Digital, but mine is a WD Passport 160Gb and I bought it for under €90.

    Hope this helps!
    Thornz

  3. #3
    Join Date
    Nov 2004
    Location
    Sweden
    Posts
    259
    Well, I have been using a 1GB USB flash memory for almost 2 years with swap and log on it; no problems so far. I know what theory says but I prefer paying the price of getting problems with the USB flash memory than listening to the hard disk spinning the whole time 24/7/365. I have tried with an auto spin-off hard disk and it is Ok as long as no log is used on it.
    BTW, I'm about to upgrade to a 8GB USB flash memory.

    On the other hand, swap memory is not native/enabled out of the box on asus firmware which in someway it means that if not used, nothing bad will happen. It is a feature to enhance its performance. Having sufficient swap space enables the system to keep some physical memory free at all times. On other words, you'll get less performance without swap memory.

  4. #4
    Join Date
    Mar 2007
    Location
    Budapest / Hungary
    Posts
    79
    Hi and sorry my english.

    You can use swap without swap partition.
    You can create a swapfile on hdd ( on ext3fs partition good, fat32 is bad idea).
    Create a swapfile, the size is 512MB (use dd command). And you can format this
    file with "mkswap swapfile" and add to system the "swapon swapfile" command.
    And no problem for low memory.

    bye,
    George

Similar Threads

  1. mount swap using fstab
    By sarlacc in forum WL-500gP Q&A
    Replies: 3
    Last Post: 22-03-2008, 22:56
  2. Swap change priority
    By Rejan in forum WL-700g Firmware Discussion
    Replies: 0
    Last Post: 31-12-2007, 14:48
  3. WL-HDD keine Swap aktiv :(
    By Albert2002 in forum German Discussion - Deutsch (DE)
    Replies: 10
    Last Post: 14-09-2007, 12:24
  4. USB Stick als SWAP - Probleme beim mounten
    By blooddragon in forum German Discussion - Deutsch (DE)
    Replies: 6
    Last Post: 13-06-2007, 13:50
  5. Swap partition causing USB instability?
    By Buld in forum WL-500g Q&A
    Replies: 4
    Last Post: 16-11-2006, 17:52

Posting Permissions

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