[Pkg-sysvinit-devel] Bug#674517: Don't hide the variable

Thomas Goirand zigo at debian.org
Mon May 28 19:27:39 UTC 2012


Hi,

I'm a DD, I read the init script, and didn't find the variable, which I
really didn't expect to see there. Do you think it would be possible to
have the RAMTMP switch where it's more obvious? I mean, in
/etc/default/tmpfs? (Do I understand well that this is your plan?)

Oh, and while I'm at it, having just "RAMTMP" as a variable name isn't
really self-explanatory, especially with only cryptic comments above it.
How about:

# Set this to yes if you want to mount, at boot time, a tmpfs ramdisk
# in your /tmp.
# Note that by default in Debian, it will use a maximum of 20%
# of your available memory, and potentially make your computer use
# the swap space if large files are written to it and memory usage
# is high. Make sure you have enough swap space and physical RAM
# if you enable this option.
USE_TMPFS_RAMDISK_FOR_TMP=no

That's be much much better, IMO.

And also, the following in /etc/default/tmpfs isn't documented enough IMO:
# TMP_SIZE: maximum size of /tmp
#
# No default size.
TMP_SIZE=

What does "No default size" mean, and what does it do? Gives no limit so
that /tmp can grow as much as needed? Or use TMPFS_SIZE=20%? I believe
the later, given the recent discussions in -devel, but this deserves a
bit more comments.

Cheers,

Thomas

P.S: Sorry if I didn't have a look to the scripts in experimental and if
the fixes are there already! :)





More information about the Pkg-sysvinit-devel mailing list