1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 60s)

Discussion in 'Asuswrt-Merlin' started by FlyByWire, Nov 16, 2015.

  1. Marko Polo

    Marko Polo Senior Member

    Joined:
    May 23, 2017
    Messages:
    261
    No, only /var/lib/misc/dnsmasq.leases.

    find /tmp -exec ls -de {} \; | grep -v " /tmp/mnt/" outputs hundreds of such messages:

    Code:
    mmap of a spare page failed!
    mmap of a spare page failed!
    mmap of a spare page failed!
    mmap of a spare page failed!
    mmap of a spare page failed!
     
  2. ColinTaylor

    ColinTaylor Part of the Furniture

    Joined:
    Mar 31, 2014
    Messages:
    9,461
    Location:
    UK
    Ouch! Looks like you've run out of RAM.

    What does this give you?

    free
     
  3. Marko Polo

    Marko Polo Senior Member

    Joined:
    May 23, 2017
    Messages:
    261
    Code:
    [email protected]:/tmp# free
                 total       used       free     shared    buffers     cached
    Mem:        255700     211080      44620          0       1608      86312
    -/+ buffers/cache:     123160     132540
    Swap:            0          0          0
     
  4. Marko Polo

    Marko Polo Senior Member

    Joined:
    May 23, 2017
    Messages:
    261
    How was I able to achieve that? :) It's the first time I've faced it. How to detect the cause?
     
  5. ColinTaylor

    ColinTaylor Part of the Furniture

    Joined:
    Mar 31, 2014
    Messages:
    9,461
    Location:
    UK
    It was caused because the command you issued had to buffer the file list in memory before piping it through to the next command.

    What's really strange is that according to free you still have plenty of memory available. That's the same conundrum as in post #2.
     
  6. Marko Polo

    Marko Polo Senior Member

    Joined:
    May 23, 2017
    Messages:
    261
    Seems to be a memory overflow bug.

    Yep, Merlin?