vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| >>>>> "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: danlee@informatik.uni-freiburg.de Home page: http://www.informatik.uni-freiburg.de/~danlee |
| ||||
| <<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. |