<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>14376</bug_id>
          
          <creation_ts>2021-05-03 19:13:57 +0000</creation_ts>
          <short_desc>fstab should set tmpfs to 25%</short_desc>
          <delta_ts>2021-05-13 15:34:34 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Turgeon">david.turgeon</reporter>
          <assigned_to name="David Turgeon">david.turgeon</assigned_to>
          <cc>JPEWhacker</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>90233</commentid>
    <comment_count>0</comment_count>
    <who name="David Turgeon">david.turgeon</who>
    <bug_when>2021-05-03 19:13:57 +0000</bug_when>
    <thetext>In 
https://git.openembedded.org/openembedded-core/commit/?id=0e326280a15b0f2c4ef2ef4ec441f63f55b75873

/run was added as a tmpfs but the size= field was left empty in the fstab file

Reading man page it appears it could be set to size=25%
which seems like a better option when using two tmpfs by default</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90282</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-05-06 14:54:00 +0000</bug_when>
    <thetext>Can you provide a link to the man page and or quote it?

The concern is that the default shared pool of RAM for tmpfs is up to 50%, is that a problem and if so why?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90313</commentid>
    <comment_count>2</comment_count>
    <who name="David Turgeon">david.turgeon</who>
    <bug_when>2021-05-07 01:53:22 +0000</bug_when>
    <thetext>https://linux.die.net/man/8/mount

Override default maximum size of the filesystem. The size is given in bytes, and rounded up to entire pages. The default is half of the memory. The size parameter also accepts a suffix % to limit this tmpfs instance to that percentage of your physical RAM: the default, when neither size nor nr_blocks is specified, is size=50%</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90322</commentid>
    <comment_count>3</comment_count>
    <who name="David Turgeon">david.turgeon</who>
    <bug_when>2021-05-08 14:45:48 +0000</bug_when>
    <thetext>I couldn&apos;t find anywhere in documentation saying this was shared.  So I tried filling up both tmpfs and it showed that processes started to get killed by OOM.  I never actually was able to fill both partitions before the system became inaccessible...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90345</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2021-05-11 18:55:47 +0000</bug_when>
    <thetext>Fair enough. However, I suspect it might cause problems with existing users to suddenly put a hard limit that is half what it used to be, so I think we need to leave this</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90378</commentid>
    <comment_count>5</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2021-05-13 15:34:34 +0000</bug_when>
    <thetext>There are use cases where users write large files to the tmpfs with the understanding that they have &quot;enough ram&quot; to handle it (I know of several places that I&apos;m doing the personally). For better or worse, lowering the default priority will break these use cases, so we shouldn&apos;t change it.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>