From owner-freebsd-ports@FreeBSD.ORG Tue Jan 4 02:23:24 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 287F9106564A for ; Tue, 4 Jan 2011 02:23:24 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id A8A218FC15 for ; Tue, 4 Jan 2011 02:23:20 +0000 (UTC) Received: by fxm16 with SMTP id 16so13575308fxm.13 for ; Mon, 03 Jan 2011 18:23:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=C9HWtnNR+CEaxN6XaqvvcpgCR7doo6Ot0degjywD8kI=; b=LAl9cIFVmJIn5hXWjCfYO/RlN0HUV8DX3Kus9Pl9q+D37TY4Q6gLDpMBSg2pIzOPJG 1sRL77vuCdmVNQxzSJoDtLTfPygNVrJNC7iIVQe29LC6UWY/DlbcsaVxV2u7zz9eBOvS FIwruoN11Xz9NHIDpoVeKmhaCtZSto85VcvLk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=kszdC1hPhG55e9+AWPlI78j1mZ+rCz4935I/K9nQIV3C2UkJt7ChcoA5O9o2EAdzc3 UKEcmogUjKJ6ukxLOtJcaJaDy0EBprpO9j6x5aMUVzBMcR8adCWFFRs++08y4TdAxWG8 hedI5uS2UpJG+1KGx8SlnbcjCk0mAb7/XylOI= Received: by 10.223.74.143 with SMTP id u15mr3417659faj.27.1294107800151; Mon, 03 Jan 2011 18:23:20 -0800 (PST) Received: from limbo.lan ([193.33.173.33]) by mx.google.com with ESMTPS id 21sm4953091fav.17.2011.01.03.18.23.18 (version=SSLv3 cipher=RC4-MD5); Mon, 03 Jan 2011 18:23:18 -0800 (PST) Message-ID: <4D228490.9080602@gmail.com> Date: Tue, 04 Jan 2011 04:23:12 +0200 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; uk-UA; rv:1.9.2.13) Gecko/20101211 Thunderbird/3.1.7 MIME-Version: 1.0 To: Anonymous References: <20110102113714.GA81113@mail.hs.ntnu.edu.tw> <868vz34d76.fsf@gmail.com> In-Reply-To: <868vz34d76.fsf@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: Ccache hangs while compiling and cache size is exaggerated X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2011 02:23:24 -0000 02.01.2011 16:01, Anonymous wrote: >> I'm using ccache 3.1.3, and it often hangs while compiling. > > What its waiting channel? Hit ^T when it hangs or run under ktrace(1). Not just every compilation attempt triggers it. Chances are closer to 100/1. >> Every time this happens, the cache size from $ ccache -s also becomes >> ridiculously large (larger than the actual cache size). >> >> $ ccache -s >> [...] >> cache size 6.9 Gbytes > >> The filesystem says it's only 2.9 GB. > > How did you measure it? du(1) with `-A' option? > For example, compression can make difference > > $ df ~/.ccache > Filesystem Size Used Avail Capacity Mounted on > /.../.ccache 49G 666M 48G 1% ~/.ccache > > $ du -hs ~/.ccache > 666M ~/.ccache > > $ du -Ahs ~/.ccache > 912M ~/.ccache I'd clarify this one. ccache reports size of cache +4G per damaged subdir. If damaged subdir would be removed ccache reports normal size of cache again. >> I can reproduce this, but I don't know what is causing this. This gives high IO. When ccache thinks cache is full it tries to purge it, yet purge does nothing. But this means walking all subdir per each compilation. -- Sphinx of black quartz judge my vow.