Ask a Question related to Linux Setup, Configuration & Administration, Design and Development.

  1. #1

    Default Re: Swap partition

    >>>>> "Sanglo" == Sanglo Lee <leesl@cbnu.edu> writes:

    Sanglo> Today, I installed a redhat 7.3 version on the machine
    Sanglo> which has 4giga ram. Do I still need to make a swap
    Sanglo> partition?

    No. Only machines with insufficient RAM to handle all processes NEED
    the swap space. With 4GB of RAM, it's hard to make the system run out
    of RAM even if you use KDE/Gnome and editing large photos with GIMP.

    However, I'd still 1GB of swap space and use 'tmpfs' for /tmp.


    Sanglo> If I disabled a swap partition is it hurt the
    Sanglo> performance or gain more speedup?

    No, basically. Swap is not there for speed gains. It's there to
    handle the situation where the system doesn't have enough RAM to
    fulfill the needs of all processes.

    Of course, with some swap space, the OS may swap out some inactive
    processes to spare out the precious RAM for disk-caching. That can
    gain some performance.


    --
    Lee Sau Dan +Z05biGVm-(Big5) ~{@nJX6X~}(HZ)

    E-mail: [email]danlee@informatik.uni-freiburg.de[/email]
    Home page: [url]http://www.informatik.uni-freiburg.de/~danlee[/url]
    LEE Sau Dan Guest

  2. Similar Questions and Discussions

    1. swap 3 or more images
      I have an html file (x.html) that has text and a table with an image. In this table there's going to be BACK and NEXT buttons so I can change the...
    2. I need help with my swap images!
      Someone please help. The swap images I created work fine on roll over and the link is working, but once I return to the page with the swap image the...
    3. Swap image also swap link
      Hi, I have a system set up where I have 5 thumbnails and when you roll-over one of the five it makes the large image above change to the...
    4. Swap Shockwave?
      ok what i want to do is swap a shockwave with another using lingo when u click on a thumbnail to the side.. ive tryed using url, and also swaping...
    5. can 1 linux swap partition be used by 2 distros?
      Hi, I was wondering if I install gentoo and debian linux on a computer, can both of them use the same swap partition or do I have to setup 2...
  3. #2

    Default Re: Swap partition

    <<No. Only machines with insufficient RAM to handle all processes NEED
    the swap space. With 4GB of RAM, it's hard to make the system run out
    of RAM even if you use KDE/Gnome and editing large photos with GIMP.

    However, I'd still 1GB of swap space and use 'tmpfs' for /tmp.>>

    This, running without swap if there is enough RAM is true for OSs like
    SunOS. The memory managment for Linux IMHO is as follows, When every a
    process is paged out, it is paged out to Swap. Only processes currently
    executing is kept in swap. If I dont allocate swap to a machine, then the
    processes cannot be swaped out. They will be retained in main memory to the
    point that new processes will not be able to start.



    Rajiv Gangadharan Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139