Re: new memory = more swap?

From: Jeff Lasman (blists_at_nobaloney.net)
Date: 03/29/04

  • Next message: jludwig: "Re: zip disk format"
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    Date: Mon, 29 Mar 2004 13:46:00 -0800
    
    

    On Thursday 25 March 2004 11:09 am, Matt Morgan wrote:

    > Is it still also true, though, that swap should at a minimum = RAM
    > (this is knowledge that dates back to early versions of SCO, which
    > was weird anyway, I know)? If so, then having more swap than RAM may
    > be worthwhile anyway, because you probably have plenty of disk space,
    > and you might add RAM later (and you won't have to repartition at
    > that point if you have extra swap).

    Matt,

    I passed your question on to a fairly technical linux list, the linux
    list at the University of Florida, and got a response from a gent who's
    probably fairly knowledgeable (http://www.tech9.net/rml/); he wrote:

    <snip>
    It used to be the case (early 2.4 series) that swap had to be twice
    physical RAM. That limitation has since been removed and swap can be
    any size.
    </snip>

    I also asked him if the linux kernel dumps memory to swap in the event
    of a panic. I wrote:

    > Having used SCO xenix and unix back in the days when SCO was a real
    > company, I recall the reason was because in case of a panic the kernel
    > would attempt to dump memory to swap space for later examination.
    >
    > Does anyone know if the linux kernel does that or ever did?

    His response:

    <snip>
    Nope, never did.
    </snip>

    I also got back another response (from a second gent) to your question
    as to whether swap should at least equal memory, and got back:

    <snip>
    This is a throwback to operating systems that required that every page
    of ram have a page of swap tied to it. That guideline has been obsolete
    for at least 10 years.
    </snip>

    You also asked:

    > Can you have too much swap? (Disk space issues aside). If I have 512
    > Mb of RAM, and set up a 1Gb swap partition, did I make a mistake?

    And in response the same (second) gent also wrote:

    <snip>
    You should set your swap so that RAM+swap = max memory you expect to
    use. Of course, that's hard to predict. On the other hand, you have to
    make sure to set your swap low enough that when you're just running too
    many programs the operating system will kill them, rather than enter
    thrashing hell. It's a judgement call.
    </snip>

    I think we've gotten some good advice here <smile>. I'm going to go
    with it.

    Jeff

    -- 
    Jeff Lasman, nobaloney.net, P. O. Box 52672, Riverside, CA  92517 US
    Professional Internet Services & Support / Consulting / Colocation
    Our blists address used on lists is for list email only
    Phone +1 909 324-9706, or see: "http://www.nobaloney.net/contactus.html"
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: jludwig: "Re: zip disk format"

    Relevant Pages

    • Re: [PATCH 00/28] Swap over NFS -v16
      ... Anonymous pages are dirty by definition (except the zero page, ... there is the swap cache. ... NR_FREE_PAGES are the pages in the page allocators free lists. ... allocation and freeing, and that wouldn't work well with slub. ...
      (Linux-Kernel)
    • Re: [RFC][PATCH -mm] swsusp: Use rbtree for tracking allocated swap
      ... but in the usual situation it is _much_ better. ... Well, you use open-coded lists. ... multiple swap devices. ... Insertion cost for rb_node includes keeping the tree balanced. ...
      (Linux-Kernel)
    • Re: Bad Swap list
      ... Bad Swapper experience/issue/problem, ... my remarks question a general Bad Swapper List. ... Ragmop/Sandy--generally questioning B.S. lists ... swap that I participated in. ...
      (rec.crafts.textiles.quilting)
    • Re: [patch 05/19] split LRU lists into anon & file sets
      ... CONFIG_NORECLAIM is OFF (because almost embedded cpu is 32bit) and ... that anon move to inactive list is meaningless because it doesn't have swap. ... own LRU lists, we should not scan those lists at all any more if we are ...
      (Linux-Kernel)
    • Re: Swap size
      ... Lists writes: ... You don't *need* ANY swap. ... Until you fill up your RAM, ... given this job as well as serving as swap space. ...
      (freebsd-questions)