Follow up : Increase /tmp and /var/run filesystems

From: Benoît Audet (benoit.audet_at_carra.gouv.qc.ca)
Date: 04/25/05

  • Next message: Catlin, Brian: "Jumpstart still asks for netmask after patching miniroot"
    Date: Mon, 25 Apr 2005 12:14:26 -0400
    To: <sunmanagers@sunmanagers.org>
    
    

    Seems that I have too much of swap being "reserved":

    oracledev# swap -l
    swapfile dev swaplo blocks free
    /dev/md/dsk/d2 85,2 16 8389632 8389632
    oracledev# swap -s
    total: 611120k bytes allocated + 4145568k reserved = 4756688k used, 188928k
    available

    So the tmpfs uses all that is left by the swap... ..am I right? If so, how
    can I "control" the reserved swap to solve my problem?

    Thanks in advance!

    Ben Audet

    >>> Benont Audet 2005-04-25 11:42 >>>

    Fellow managers,

    Related to my Oracle problem this morning, I saw something that could be the
    problem. Despite de fact that my swap filesystem is 4 Gb. in size, the tmpfs
    filesystems are very very smalls:

    df -k:
    swap 195840 16 195824 1% /var/run
    swap 195840 16 195824 1% /tmp

    My quick question is: how can I increase it to be, by default, at least 10
    times bigger? Is it in the kernel (/etc/system) that we specify it? I found
    that the "mount -F tmpfs -o size=<size needed> swap <mount point>" is working,
    but is there another way to "force" it without passing by the /etc/vfstab
    file?

    How does Solaris fix these filesystems size? Why, in this case, I have only
    195 Mb.?

    Thanks in advance and will summarise!

    Ben Audet
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: Catlin, Brian: "Jumpstart still asks for netmask after patching miniroot"

    Relevant Pages

    • Re: What is the limit size of tmpfs /dev/shm ?
      ... Don't forget that tmpfs overflows into swap, ... It can still outperform conventional disk filesystems, however, mostly because ... In theory, yes, and should be true in practice before it hits swap. ...
      (Linux-Kernel)
    • Re: Idea about a disc backed ram filesystem
      ... swapping when not in use by tmpfs. ... to one device (or not swap at all) and a tmpfs mount to swap to ... When you run out of RAM, or the RAM can be put to better use than keeping ...
      (Linux-Kernel)
    • Re: kernel: swap_pager: indefinite wait buffer - on 5.3-RELEASE-p5
      ... The error message indicates that there was an I/O error ... e.g. a dying disk. ... Since it's only the swap partition, ... If the filesystems on that drive don't contain much data, ...
      (freebsd-stable)
    • Re: swap and /tmp
      ... I use tmpfs for /tmp on all of my machines and have so far not found ... although there was still a lot of swap available. ... because the encrypt/decrypt ... partition serving both purposes, and can change the size of the ...
      (Debian-User)
    • Re: Idea about a disc backed ram filesystem
      ... Giving tmpfs a dedicated swap space is dumb, ... If something gets to use that much ram, ...
      (Linux-Kernel)