Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Mike Crowe <mac@mcrowe.com>, openembedded-core@lists.openembedded.org
Subject: Re: sstate-cache contains many seemingly useless siginfo files
Date: Mon, 01 Feb 2016 17:52:31 +0000	[thread overview]
Message-ID: <1454349151.27087.49.camel@linuxfoundation.org> (raw)
In-Reply-To: <20160201165925.GA6886@mcrowe.com>

On Mon, 2016-02-01 at 16:59 +0000, Mike Crowe wrote:
> Our sstate-cache cleanup script was written long before
> 80b3974081c4a8c604e23982a6db8fb32c616058, so it only pruned siginfo
> files
> if the corresponding tgz file had not been accessed recently.
> 
> This worked well until siginfo files started being written for every
> task -
> even those that didn't also generate a tgz file such as unpack,
> configure
> and compile.
> 
> I've just cleared up over two million siginfo files from our sstate
> -cache!
> 
> This exercise has left me wondering why these siginfo files are being
> written to the sstate-cache in the first place.
> 80b3974081c4a8c604e23982a6db8fb32c616058 suggests that they aren't
> being
> used by anyone.

These are used by things like "bitbake -S printdiff" in order to debug
why things are being rebuilt. Without them, there are gaps in the
dependency chains and the tools can't figure out how things changed.

So they're not used by main builds but are useful for debug.

> If writing the files is necessary, is there any reason not to just
> delete
> these files periodically or could that confuse a build that is in
> progress?

I doubt it would cause a problem, other than meaning printdiff wouldn't
work well. Not that it works brilliantly right now, but I do hope to
fix that at some point.

Cheers,

Richard


  reply	other threads:[~2016-02-01 17:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-01 16:59 sstate-cache contains many seemingly useless siginfo files Mike Crowe
2016-02-01 17:52 ` Richard Purdie [this message]
2016-02-02 10:53   ` Mike Crowe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1454349151.27087.49.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=mac@mcrowe.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox