#9636 NORM 1.5-sof: response to filling /tmp and /var/tmp ungraceful

Zarro Boogs per Child bugtracker at laptop.org
Wed Dec 30 16:20:45 EST 2009


#9636: response to filling /tmp and /var/tmp ungraceful
------------------------------------+---------------------------------------
           Reporter:  Quozl         |       Owner:  dsd                              
               Type:  defect        |      Status:  new                              
           Priority:  normal        |   Milestone:  1.5-software-later               
          Component:  distro        |     Version:  Development build as of this date
         Resolution:                |    Keywords:  os34 os64                        
        Next_action:  add to build  |    Verified:  0                                
Deployment_affected:                |   Blockedby:                                   
           Blocking:                |  
------------------------------------+---------------------------------------

Comment(by Quozl):

 No, the writes fail with ENOSPC.

 This can already be seen if you fill one of the three tmpfs listed in
 df(1).

 {{{
 strace -e write cat /dev/zero > /tmp/zero
 }}}

 If you fill two of the three tmpfs then the result is unpredictable
 (either OOM kill, ENOSPC, or no completion).

 I've also just found that of the tmpfs in /proc/mounts, only four of them
 appear in df(1), and one of them that doesn't appear is user accessible,
 so my previous solution is incomplete.

 /var/lib/stateless/writable is 50% of available RAM.  It doesn't show up
 in df(1) without intervention:

 {{{
 % df /var/lib/stateless/writable
 }}}

 The solution from Michael in comment:1 works fine on os64 after a reboot:

 {{{
 sed -i -e 's/RW_OPTIONS=/RW_OPTIONS="-o size=1M -o nr_inodes=1024"/'
 /etc/sysconfig/readonly-root
 }}}

-- 
Ticket URL: <http://dev.laptop.org/ticket/9636#comment:9>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list