Re: [opensuse] swap file placement



On Fri, 30 May 2008 15:21:03 -0700
"John Andersen" <jsamyth@xxxxxxxxx> wrote:

On Fri, May 30, 2008 at 2:22 PM, Larry Stotler <larrystotler@xxxxxxxxx> wrote:
On Fri, May 30, 2008 at 5:14 PM, Duaine & Laura Hechler
<dahechler@xxxxxxxxxxx> wrote:
Thanks to all. I was beginning to think along the same lines - it
depends on your going to use the system.

I generally put swap at the front of the drive because it's easier to
calculate the space for the rest of the drive. While there may be a
performance hit depending on location, I doubt that it's too
excessive. Heck, on my desktop with 2GB RAM, it never even touches
the swap anyway. I've been half tempted to just eliminate it.
--

Your choice makes the most sense, do it based on simplicity and
spend the time saved figuring out how to scam enough ram to make
the whole point moot.

Swap doesn't get used all that heavily on a system with enough
ram.

Agreed here.
Another option is to use a file instead of a physical partition. While
this option is available, I think it is a bad idea.

--
--
Jerry Feldman <gaf@xxxxxxx>
Boston Linux and Unix
PGP key id: 537C5846
PGP Key fingerprint: 3D1B 8377 A3C0 A5F2 ECBB CA3B 4607 4319 537C 5846

Attachment: signature.asc
Description: PGP signature



Relevant Pages

  • Re: excessive swap-in time
    ... Trying to do it all with RAM is just inefficient. ... I find that does not work well when the swapping is caused by excessive I/O ... Or you could have 5 TB of swap space. ...
    (comp.os.linux.development.system)
  • SLUB 0:1 SLAB (OOM during massive parallel kernel builds)
    ... 2G of RAM, 1G of swap partition. ... DMA per-cpu: ... kill process 25286 score 188662 or a child ...
    (Linux-Kernel)
  • fork failed cannot allocate memory
    ... I have a Dell 2650, dual Xeon box, 2GB RAM, 6GB swap with PERC Hardware ... feeding the perl processes). ... Every week or two the box will stop allowing new netcool client ...
    (RedHat)
  • 2.6.26-rc5-mm2: OOM with 1G free swap
    ... OOM condition happened with 1G free swap. ... 4G RAM, 1G swap partition, normally LTP survives during much, much higher ... Call Trace: ... 675611 total pagecache pages ...
    (Linux-Kernel)
  • Re: 2.6.0-test9 - poor swap performance on low end machines
    ... >> Well I was considering adding the swap pressure to this algorithm but I ... It wont be as aggressive as setting the swappiness ... > The test compile started in a similar way to the compile when using your ... detriment of other tasks that are on the runqueue and still need ram. ...
    (Linux-Kernel)