[26819] in Source-Commits

home help back first fref pref prev next nref lref last post

Re: /svn/athena r25772 - trunk/debathena/config/reactivate/debian

daemon@ATHENA.MIT.EDU (Jonathan Reed)
Thu Sep 27 16:40:52 2012

Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset=us-ascii
From: Jonathan Reed <jdreed@MIT.EDU>
In-Reply-To: <alpine.GSO.1.10.1209271637300.22950@multics.mit.edu>
Date: Thu, 27 Sep 2012 16:40:43 -0400
Cc: source-commits@MIT.EDU
Message-Id: <06209BCF-599F-43D1-AD7F-2A645383C4FE@MIT.EDU>
To: Benjamin Kaduk <kaduk@MIT.EDU>
Content-Transfer-Encoding: 8bit

The tmpfs documentation suggests that you're basically SOL if you run out of memory, so I briefly considered setting a cap of 2.1G or so for the ramdisk, but I guess we can see what happens.

-Jon

On Sep 27, 2012, at 4:37 PM, Benjamin Kaduk wrote:

> Sure, ACK.
> -Ben
> 
> On Wed, 26 Sep 2012, Jonathan D Reed wrote:
> 
>> Author: jdreed
>> Date: 2012-09-26 15:49:26 -0400 (Wed, 26 Sep 2012)
>> New Revision: 25772
>> 
>> Modified:
>>  trunk/debathena/config/reactivate/debian/changelog
>>  trunk/debathena/config/reactivate/debian/debathena-reactivate.init
>> Log:
>> In reactivate:
>> * Bump the chroot's ramdisk to 50% of RAM or 1G, whichever is higher
>>   (Trac: #1207)
>> 
>> 
>> Modified: trunk/debathena/config/reactivate/debian/changelog
>> ===================================================================
>> --- trunk/debathena/config/reactivate/debian/changelog	2012-09-26 17:41:40 UTC (rev 25771)
>> +++ trunk/debathena/config/reactivate/debian/changelog	2012-09-26 19:49:26 UTC (rev 25772)
>> @@ -1,3 +1,10 @@
>> +debathena-reactivate (2.0.41) unstable; urgency=low
>> +
>> +  * Bump the chroot's ramdisk to 50% of RAM or 1G, whichever is higher
>> +    (Trac: #1207)
>> +
>> + -- Jonathan Reed <jdreed@mit.edu>  Wed, 26 Sep 2012 15:49:05 -0400
>> +
>> debathena-reactivate (2.0.40) unstable; urgency=low
>> 
>>  * Cleanup from r24057, where we had to special-case quickstations via
>> 
>> Modified: trunk/debathena/config/reactivate/debian/debathena-reactivate.init
>> ===================================================================
>> --- trunk/debathena/config/reactivate/debian/debathena-reactivate.init	2012-09-26 17:41:40 UTC (rev 25771)
>> +++ trunk/debathena/config/reactivate/debian/debathena-reactivate.init	2012-09-26 19:49:26 UTC (rev 25772)
>> @@ -25,8 +25,12 @@
>> 	# Create a tmpfs where schroot puts overlays. This is needed
>> 	# because aufs won't let you put an overlay and underlay on the
>> 	# same file system.
>> +	tmpfssize="50%"
>> +	if [ "$(machtype -M)" -le 2007518 ]; then
>> +	    tmpfssize="1073741824"
>> +	fi
>> 	if ! mountpoint -q /var/lib/schroot/union/overlay; then
>> -	    mount -t tmpfs -o size=1073741824 tmpfs /var/lib/schroot/union/overlay
>> +	    mount -t tmpfs -o size="$tmpfssize" tmpfs /var/lib/schroot/union/overlay
>> 	fi
>> 
>> 	# Enable subtree operations on /media by making it a mount point,
>> 
>> 



home help back first fref pref prev next nref lref last post