tinderd umount problem

Philip M. Gollucci pgollucci at p6m7g8.com
Sun May 31 21:23:04 EDT 2009


Ion-Mihai Tetcu wrote:
> Hi,
> 
> 
> On the QAT-to-be server which has 8GB RAM of which I want to take
> advantage of, I have the following modification of scripts/tinderd:
> 
>         if [ -n "${BUILD}" -a -n "${PORT}" -a -n "${ID}" ] ; then
> +
> +        umount ${pb}/${BUILD} && \
> +        mdconfig -d -u 0
Yeah, I see this too.  umount -f seems to help.


> +        mdmfs -s 11000m -m 1 -S -o async -o noatime md0 ${pb}/${BUILD} || \
> +        exit 666
>         
> From time to time tinderd will exit because:
> umount: unmount of /usr/local/tinderbox/7-STABLE-FPT-NPD failed: Device busy
> mdmfs: mdconfig (attach) exited with error code 1
> 
> At this point some of the files systems mounted on top of my md device
> aren't yet unmounted:
> /dev/md0        10G    253M     10G     2%    /usr/local/tinderbox/7-STABLE-FPT-NPD
> devfs          1.0K    1.0K      0B   100%    /usr/local/tinderbox/7-STABLE-FPT-NPD/dev
> or
> /dev/md0 on /usr/local/tinderbox/7-STABLE-FPT-NPD (ufs, asynchronous, local, noatime)
> /usr/local/tinderbox/ccache/7-STABLE-FPT-NPD on /usr/local/tinderbox/7-STABLE-FPT-NPD/ccache (nullfs, local)
> 
> This seems to happen especially while the queue contains small ports
> like the myriad of p5 ports from devel/. On thing to note is that I
> have TINDERD_SLEEPTIME set to 15 seconds.
> 
> Making it sleep for 2 seconds before unmounting, doesn't seem to help;
> For now I don't make it exit if umount fails, does anyone have a better
> idea?
> 
> 
> I'm using this approach because mdmfs and friends don't seem to really
> free the memory, after building enough ports 4-5GB of swap will be used
> even when a df shows /usr/local/tinderbox/7-STABLE-FPT-NPD empty.
> 
> 
> Thanks,
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> tinderbox-list at marcuscom.com mailing list
> http://marcuscom.com/mailman/listinfo/tinderbox-list
> To unsubscribe, send any mail to "tinderbox-list-unsubscribe at marcuscom.com"


-- 
------------------------------------------------------------------------
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci at p6m7g8.com) c: 703.336.9354
Consultant          - P6M7G8 Inc.                http://p6m7g8.net
Senior Sys Admin    - RideCharge, Inc.           http://ridecharge.com
Contractor          - PositiveEnergyUSA          http://positiveenergyusa.com
ASF Member          - Apache Software Foundation http://apache.org
FreeBSD Committer   - FreeBSD Foundation         http://freebsd.org

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.


More information about the tinderbox-list mailing list