Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 469226 - sys-apps/busybox - /etc/init.d/mdev sets /dev/shm to 10 megabytes; should be 50% of tmpfs size
Summary: sys-apps/busybox - /etc/init.d/mdev sets /dev/shm to 10 megabytes; should be ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-09 20:47 UTC by Walter Dnes
Modified: 2013-05-11 20:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Walter Dnes 2013-05-09 20:47:29 UTC
When using mdev instead of udev, /dev/shm has a maximum size of 10 megabytes.

Reproducible: Always

Steps to Reproduce:
1. Attempt to copy an 11 megabyte file to /dev/shm

Actual Results:  
Get error message about insufficient space

Expected Results:  
The file should copy to /dev/shm with no errors.

I am running mdev instead of udev. I believe the root of the problem is in /etc/init.d/mdev, specifically the "mount_it()" function...

mount_it()
{
        if fstabinfo --quiet /dev ; then
                mount -n /dev
        else
                # Some devices require exec, Bug #92921
                mount -n -t tmpfs -o "exec,nosuid,mode=0755,size=10M" mdev /dev
        fi
}

Since /dev/shm sits on top of /dev, it cannot exceed the size of the underlying /dev. I changed the "size=10M" to "size=50%", and rebooted. The system is now working normally.
Comment 1 SpanKY gentoo-dev 2013-05-11 20:04:10 UTC
as i explained to you on the busybox lists, your understanding is incorrect