Check-in [054bd0244f]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Switch MDMFS support to using swap-backed disk. Also enable TRIM. MDMFS is measurably slower than TMPFS, the only reason to use it as far as I can see is to be able to define a max limit and to support swapping. Suggested by: ak
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 054bd0244ffa50fbc9a1c5ee3146daa8df11f696
User & Date: bdrewery 2013-06-03 10:43:11
Context
2013-06-03
11:05
HTML: Move all assets into assets/ This moves logo.jpg so that shell tab completion is easier when completing logs/ in the directory. It also cleans up the directory structure in case we import more client-side libraries. Reported by: ak check-in: 7e37695211 user: bdrewery tags: trunk
10:43
Switch MDMFS support to using swap-backed disk. Also enable TRIM. MDMFS is measurably slower than TMPFS, the only reason to use it as far as I can see is to be able to define a max limit and to support swapping. Suggested by: ak check-in: 054bd0244f user: bdrewery tags: trunk
10:36
Remove redundant check "if ${to} is dir", destroyfs already does it Submitted by: ak check-in: a778a4da2d user: bdrewery tags: trunk
Changes

Changes to src/share/poudriere/common.sh.

787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
	local optionsdir

	[ -d ${portsdir}/ports ] && portsdir=${portsdir}/ports

	mkdir -p ${POUDRIERE_DATA}/packages/${MASTERNAME}/All
	[ -d "${CCACHE_DIR:-/nonexistent}" ] &&
		mount -t nullfs ${CCACHE_DIR} ${mnt}${HOME}/.ccache
	[ -n "${MFSSIZE}" ] && mdmfs -M -S -o async -s ${MFSSIZE} md ${mnt}/wrkdirs
	[ ${TMPFS_WRKDIR} -eq 1 ] && mount -t tmpfs tmpfs ${mnt}/wrkdirs
	# Only show mounting messages once, not for every builder
	if [ ${mnt##*/} = "ref" ]; then
		[ -d "${CCACHE_DIR:-/nonexistent}" ] &&
			msg "Mounting ccache from: ${CCACHE_DIR}"
		msg "Mounting packages from: ${POUDRIERE_DATA}/packages/${MASTERNAME}"
	fi







|







787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
	local optionsdir

	[ -d ${portsdir}/ports ] && portsdir=${portsdir}/ports

	mkdir -p ${POUDRIERE_DATA}/packages/${MASTERNAME}/All
	[ -d "${CCACHE_DIR:-/nonexistent}" ] &&
		mount -t nullfs ${CCACHE_DIR} ${mnt}${HOME}/.ccache
	[ -n "${MFSSIZE}" ] && mdmfs -t -S -o async -s ${MFSSIZE} md ${mnt}/wrkdirs
	[ ${TMPFS_WRKDIR} -eq 1 ] && mount -t tmpfs tmpfs ${mnt}/wrkdirs
	# Only show mounting messages once, not for every builder
	if [ ${mnt##*/} = "ref" ]; then
		[ -d "${CCACHE_DIR:-/nonexistent}" ] &&
			msg "Mounting ccache from: ${CCACHE_DIR}"
		msg "Mounting packages from: ${POUDRIERE_DATA}/packages/${MASTERNAME}"
	fi