<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
    <title></title>
  </head>

  <body>
    <p style="margin: 0px;"><span> </span></p>

    <div style="margin: 5px 0px 5px 0px;">
      "Ira W. Snyder" <iws@ovro.caltech.edu> hat am 20. April 2011 um 22:44 geschrieben:<br/>
      <br/>
      > On Wed, Apr 20, 2011 at 09:21:00PM +0200, Schwarz,Andre wrote:<br/>
      > > Hi,<br/>
      > ><br/>
      > > I'm facing an issue with tmpfs mounts on PowerPC (mpc83xx specifically).<br/>
      > ><br/>
      > > After "mount -t tmpfs tmpfs /tmp -o size=16m" I can fill the machine's mem<br/>
      > > (512MiB) until oom becomes active.<br/>
      > ><br/>
      > > I can't see this on any other machine (x86/ARM) I have access to.<br/>
      > > There's always a "no space left on device" message as soon as size specified is<br/>
      > > reached ...<br/>
      > ><br/>
      > > kernel versions available are v2.6.26.27 and v2.6.34.7 showing the same<br/>
      > > behaviour.<br/>
      > ><br/>
      > > I'd expect the kernel to limit available tmpfs size to 50% of physical memory<br/>
      > > anyway.<br/>
      > ><br/>
      > > Any ideas what might be wrong ?<br/>
      > ><br/>
      ><br/>
      > For what it is worth, I tried this on an 8349EA board, using 2.6.38rc8.<br/>
      > It behaved exactly as I would expect. A short log is below. Maybe your<br/>
      > mount command parses options differently on the powerpc machine?
    </div>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">even with incorrect/missing mount options the kernel should limit the size</p>

    <p style="margin: 0px;">to 50% phys mem ... at least according to doc/tmpfs.txt </p>

    <p style="margin: 0px;"> </p>

    <div style="margin: 5px 0px 5px 0px;">
      > Try it with the mount options before the mount points?
    </div>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">no effect.</p>

    <p style="margin: 0px;"> </p>

    <div style="margin: 5px 0px 5px 0px;">
      ><br/>
      > iws@carmaboard7 ~ $ mkdir mnt<br/>
      > mkdir: cannot create directory `mnt': File exists<br/>
      > iws@carmaboard7 ~ $ ls mnt/<br/>
      > iws@carmaboard7 ~ $ sudo mount -t tmpfs -o size=16m,users none mnt<br/>
      > iws@carmaboard7 ~ $ ls mnt/<br/>
      > iws@carmaboard7 ~ $ mount | grep mnt<br/>
      > none on /home/iws/mnt type tmpfs (rw,nosuid,nodev,noexec,relatime,size=16384k)<br/>
      > iws@carmaboard7 ~ $ cd ^C<br/>
      > iws@carmaboard7 ~ $ dd if=/dev/zero of=mnt/file.bin bs=1M count=18<br/>
      > dd: writing `mnt/file.bin': No space left on device<br/>
      > 16+0 records in<br/>
      > 15+0 records out<br/>
      > 16760832 bytes (17 MB) copied, 0.313836 s, 53.4 MB/s<br/>
      > iws@carmaboard7 ~ $ du -b mnt/file.bin<br/>
      > 16760832        mnt/file.bin<br/>
      > iws@carmaboard7 ~ $ df -h mnt<br/>
      > Filesystem            Size  Used Avail Use% Mounted on<br/>
      > none                   16M     -     -   -  /home/iws/mnt<br/>
      > iws@carmaboard7 ~ $ uname -a<br/>
      > Linux carmaboard7.correlator.pvt 2.6.38-rc8-00028-g24d6894 #1 Tue Mar 8 09:48:15 PST 2011 ppc e300c1 GNU/Linux<br/>
      > iws@carmaboard7 ~ $ cat /proc/cpuinfo<br/>
      > processor       : 0<br/>
      > cpu             : e300c1<br/>
      > clock           : 533.333328MHz<br/>
      > revision        : 3.1 (pvr 8083 0031)<br/>
      > bogomips        : 133.29<br/>
      > timebase        : 66646782<br/>
      > platform        : MPC834x MDS<br/>
      > model           : CARMA<br/>
      > Memory          : 256 MB
    </div>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">yes - this is the expected behaviour I can see on all systems ... except mine :-( </p>

    <p style="margin: 0px;"> </p>

    <div style="margin: 5px 0px 5px 0px;">
      > > Hope it helps,
    </div>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">no - but thank you for trying. </p>

    <p style="margin: 0px;"> </p>

    <div style="margin: 5px 0px 5px 0px;">
      Cheers,
    </div>

    <p style="margin: 0px;">André </p>
  
<br>

MATRIX VISION GmbH, Talstrasse 16, DE-71570 Oppenweiler
Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschaeftsfuehrer: Gerhard Thullner, Werner Armingeon, Uwe Furtner
<br>
</body>
</html>