public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-user] How can I control size of /run (tmpfs)?
  @ 2012-05-27 12:41 99%                             ` William Kenworthy
  0 siblings, 0 replies; 1+ results
From: William Kenworthy @ 2012-05-27 12:41 UTC (permalink / raw
  To: gentoo-user

On Sun, 2012-05-27 at 09:59 +0200, Alan McKinnon wrote:
> On Sun, 27 May 2012 09:05:46 +0200
> Jarry <mr.jarry@gmail.com> wrote:
> 
> > I have read through all replies, but I still did not find
> > answers to my original questions:
> > 
> > Q1: Can I somehow reduce the size of /run? I know it is tmpfs
> > and I know this is upper limit normally never achieved, but
> > I want to reduce this upper limit. Is it possible, or is it
> > hard-coded to half of physical memory?
> 
> I think this works IIRC:
> 
> List it in /etc/fstab. Max size goes in the options field using the
> syntax described in man mount
> 
> 
> > Q2: Can I turn this "/run in tmpfs" feature off? I do not
> > see *any* advantage in vasting memory for /run (although
> > I agree there might be some point in moving "run" from
> > /var/run to /run). But I see one big problem:
> 
> 
> If if limit the tmpfs to say 100M or so then this is not a problem at
> all
> 
> 
> > 
> > If badly written application starts writing some crap in
> > /run, it could deadlock my computer quite easily. And before
> > you ask, no it is not so easy to do with /run on hard-drive
> > because I have plenty of TB there and monitoring software
> > running which alerts me as soon as any partition is half
> > full. Unfortunatelly this does not work for tmpfs because
> > with given read/write speed of ram-disk it would be full
> > in a few seconds before I had any chance to act...
> > 
> > Jarry
> > 
> 
> 
> 

all on one line:

tmpfs                   /tmp            tmpfs
size=2500M,mode=1777,noatime,auto               0 0


4G ram (diskless, atom board) works well
3G on an otherwise similar system goes bang when compiling glibc or gcc
as portage and portage tmp in /tmp and ram needed for compiling meet in
the middle :)

Helped by swap on an NDB and mapping some space over NFS when really
needed.

BillK






^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2012-05-26 19:46     [gentoo-user] How can I control size of /run (tmpfs)? Jarry
2012-05-26 20:01     ` Dale
2012-05-26 20:08       ` Jarry
2012-05-26 20:40         ` Neil Bothwick
2012-05-26 22:17           ` Dale
2012-05-26 22:34             ` Neil Bothwick
2012-05-26 23:17               ` Dale
2012-05-26 23:21                 ` Alan McKinnon
2012-05-27  0:15                   ` Dale
2012-05-27  2:30                     ` Pandu Poluan
2012-05-27  3:06                       ` Dale
2012-05-27  4:29                         ` Joshua Murphy
2012-05-27  6:20                           ` Canek Peláez Valdés
2012-05-27  7:05                             ` Jarry
2012-05-27  7:59                               ` Alan McKinnon
2012-05-27 12:41 99%                             ` William Kenworthy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox