udev init script should use partition size from /etc/default/tmpfs
Bug #317161 reported by
Iuri Diniz
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
udev (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
I'm tunning ubuntu to a low memory device without swap (eee pc 701), I'm currently managing the max size of tmps partitions by setting size on /etc/default/tmpfs, but udev doens't use that settings, so I've made a patch to correct it.
the default behavior to udev init script (kernel behavior) is to set tmpfs partition to half size of system ram that I think is too much, 8 MB would be sufficient
using this patch, udev size will use UDEV_SIZE option if setted on /etc/default/tmpfs, if not setted it will use TMPFS_SIZE option if setted, and if not setted too, the default behavior is assumed
this is my first patch, I don' t if I made it correctly following the guidelines
To post a comment you must log in.
On Wed, 2009-01-14 at 16:51 +0000, Iuri Diniz wrote:
> I'm tunning ubuntu to a low memory device without swap (eee pc 701), I'm
> currently managing the max size of tmps partitions by setting size on
> /etc/default/tmpfs, but udev doens't use that settings, so I've made a
> patch to correct it.
>
> the default behavior to udev init script (kernel behavior) is to set
> tmpfs partition to half size of system ram that I think is too much, 8
> MB would be sufficient
>
Actually, I believe you're mistaking tmpfs with ramfs here. Space is
not reserved for a tmpfs, it simply sets the maximum size to which the
tmpfs may grow.
If a tmpfs is only using 5MB, then it will only consume 5MB of memory;
it's backed by the page cache, so there is little overhead for such
things as filesystem (in fact, there isn't one!)
/dev is not writable by ordinary users, there is no danger of users
filling this filesystem with other data.
However there it is preferred that this filesystem "not become full", if
the udev daemon is unable to make device nodes, or maintain its
database, then system features such as hotplug fail to work and newly
connected devices are not available.
It is for this reason that we choose not to limit the size of the
filesystem.
status wontfix
Scott
--
Scott James Remnant
<email address hidden>