Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Jan 2011 17:01:17 +0300
From:      Anonymous <swell.k@gmail.com>
To:        Denny Lin <dennylin93@hs.ntnu.edu.tw>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Ccache hangs while compiling and cache size is exaggerated
Message-ID:  <868vz34d76.fsf@gmail.com>
In-Reply-To: <20110102113714.GA81113@mail.hs.ntnu.edu.tw> (Denny Lin's message of "Sun, 2 Jan 2011 19:37:15 %2B0800")
References:  <20110102113714.GA81113@mail.hs.ntnu.edu.tw>

next in thread | previous in thread | raw e-mail | index | archive | help
Denny Lin <dennylin93@hs.ntnu.edu.tw> writes:

> Hi,
>
> 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).

> 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 can reproduce this, but I don't know what is causing this.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?868vz34d76.fsf>