* Daniel Kahn Gillmor <[EMAIL PROTECTED]> [2008-11-07 10:45-0500]: > >> Perhaps this directory should be added into the default deboostrap > >> operation? > > > > Probably the shm directory should be added to distrib/defaults/devs > > so it is created correctly. > > That sounds like a good proposal.
I've added it and tested it, and it creates the directory when new vservers are built. > > As this is typically just a regular tmpfs filesystem, and doesn't > > provide anything special WRT to shared memory, you can either make the > > directory manually, or add it to /etc/vservers/monkey/fstab as a tmpfs > > so it will be mounted when the guest is started. > > Should it be added to /usr/lib/util-vserver/defaults/fstab as well? I dont think so, we either want to create the directory, or we want to mount it as a tmpfs (after creating the directory for a mount point of course). I think its probably best to leave it as a regular directory, rather than a tmpfs. The reason is because we already are providing a very minimal /tmp as a tmpfs, and this eats into the available memory on the entire box (this of course can be increased as needed, but it occupies memory space), adding a second tmpfs that must get mounted at /dev/shm will further complicate this resource problem. I think that the best way to handle it is to leave it as a directory, and let the admin decide if they want to remount it as a tmpfs for optimization purposes and based on their particular host's memory availability. Micah
signature.asc
Description: Digital signature