Find the answer to your Linux question:
Results 1 to 7 of 7
Hi there. I got a question. I notice that my swap space never change. If I do 'free' the use it's allways at 0 ! I try this with many ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2004
    Location
    Sintra, Portugal
    Posts
    36

    Swap


    Hi there.
    I got a question.
    I notice that my swap space never change.
    If I do 'free' the use it's allways at 0 ! I try this with many programs and stuff on for see what he do, but it's allways 0.
    There is something about swapon , but how do I check if it on ?

    Peace

  2. #2
    Linux Newbie
    Join Date
    Jul 2004
    Location
    Oklahoma City, OK
    Posts
    232
    Swap only gets used if you run out of ram. Unless you're doing something that demands tons of memory. Something like cga, video processing or the like.
    If swap is listed in /etc/fstab, it will always be mounted and turned on at boot time.
    OH NOOOOO!!!!!! You did it the way I said?

  3. #3
    Linux Engineer
    Join Date
    May 2003
    Location
    Greece / Athens
    Posts
    1,169
    about fstab (to check about swap check this out):
    http://tuxfiles.org/linuxhelp/fstab.html
    and remember that swap is generally 1,5-2 *RAM of your system..
    Linux For Ever!

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie
    Join Date
    Jul 2004
    Location
    Oklahoma City, OK
    Posts
    232
    The 1.5-2xRAM guideline came from a time when 4-16MB was common for RAM. With current systems having anywhere from 128MB to "the sky's the limit", that guideline simply doesn't apply anymore.
    With 256MB of RAM, I almost never see any swap activity on my system. In fact, the only time I've ever seen swap activity was the last time I compiled a kernel. Keep in mind that I was running gDesklets and watching a DVD on Xine at the time. Still, swap usage stayed under 10 percent of the 512MB I have available.
    OH NOOOOO!!!!!! You did it the way I said?

  6. #5
    Linux Engineer
    Join Date
    May 2003
    Location
    Greece / Athens
    Posts
    1,169
    i agree,swap is useful if you do many jobs at the same time ..like watching a dvd and compiling or installing a program..although it's good to be 500 mb at least i think.everyone today has a hard disk of 40gb and above..so 500mb won't be problem..
    Linux For Ever!

  7. #6
    Just Joined!
    Join Date
    May 2004
    Location
    Sintra, Portugal
    Posts
    36
    Ha ok I see it.
    Thanks for the replys : )

    Peace

  8. #7
    Linux Engineer
    Join Date
    May 2003
    Location
    Greece / Athens
    Posts
    1,169
    you're welcome
    Linux For Ever!

Posting Permissions

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