Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home for chromium.org
« Groups Home
A script to simplify writing Valgrind suppressions to keep the memory waterfall green
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Timur Iskhodzhanov  
View profile  
 More options Aug 4 2010, 5:18 pm
From: Timur Iskhodzhanov <timur...@chromium.org>
Date: Thu, 5 Aug 2010 01:18:35 +0400
Local: Wed, Aug 4 2010 5:18 pm
Subject: Re: A script to simplify writing Valgrind suppressions to keep the memory waterfall green

Hi,

After filing a few dozens of Valgrind suppressions to keep the memory
waterfall green I've started thinking there should be some easier and more
effective way to do it.

What I disliked the most was that once a suppression is commited, one had to
wait 2-4 hours for the current build cycle to end and one more cycle with
the new suppression.
Since we have three different platforms which can have the same report with
subtle differences in mangling (I hate mangling btw), this complicates stuff
a lot and sometimes it's quite a waste of time for the suppression writers.

Recently I've created a script to simplify this routine and we've (me and
glider@) tried it with good results.

You can give it a try:
*./tools/valgrind/waterfall.sh fetch|match*
*
fetch: download memory waterfall logs for those builds which have failed
Valgrind steps
 (usually that means there is an unsuppressed Valgrind report)
Nicolas, Marc-Antoine, I hope the fetch doesn't DDoS the waterfall. At least
it downloads almost the same amount of logs a Valgrind sheriff would
download manually to get the reports. Probably we can optimize here if
needed.
*
*match*: list all the fetched reports that don't match local suppressions

Typical workflow is as follows:
*./tools/valgrind/waterfall.sh fetch*
*svn up tools/valgrind/memcheck* # get your suppressions in sync
*./tools/valgrind/waterfall.sh match* # get the list of reports
*<write new suppressions or generalize existing>*
*./tools/valgrind/waterfall.sh match # make sure the number of reports
decreased*
*[optional: generalize the new suppression to match more reports - vimdiff
is your friend]*
*./tools/valgrind/waterfall.sh match* # make sure the number of reports
decreased even more
*<file a bug>*
*<commit a suppression>*

Your feedback and patches are welcome!
Timur Iskhodzhanov,
Google Russia


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jochen Eisinger  
View profile  
 More options Aug 11 2010, 9:39 am
From: Jochen Eisinger <joc...@chromium.org>
Date: Wed, 11 Aug 2010 15:39:33 +0200
Local: Wed, Aug 11 2010 9:39 am
Subject: Re: A script to simplify writing Valgrind suppressions to keep the memory waterfall green
I've added an command "blame" to this script. "waterfall.sh match"
will now also output the error hashes. With a given hash, you can
search for the first run when this specific suppression was observed
on a specific builder and output the blame list for that revision:

waterfall.sh blame <bot> <test> <hash>

e.g.

tools/valgrind/waterfall.sh blame "Linux Tests (valgrind)(3)" ui 152F078A
Searching for latest revision without this hash........
Hash #152F078A# occurs in build #6327 for the first time.
Receiving blame list.
Revision: 55620
Blamelist:
...

Please use this command with care, since it hammers the waterfall quite a bit.

-jochen

On Wed, Aug 4, 2010 at 11:18 PM, Timur Iskhodzhanov


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marc-Antoine Ruel  
View profile  
 More options Sep 27 2010, 3:23 pm
From: Marc-Antoine Ruel <mar...@chromium.org>
Date: Mon, 27 Sep 2010 15:23:14 -0400
Local: Mon, Sep 27 2010 3:23 pm
Subject: Re: A script to simplify writing Valgrind suppressions to keep the memory waterfall green

Sorry I had skipped over this thread, I wasn't in the cc list.

Please take a look at http://build.chromium.org/buildbot/memory/json/help and
probably think about rewriting it in python as bash scripts hardly scale.
Each builders have the cached_builds property which lists the builds that
won't represent a performance issue on the build master to access so it's
good if you can limit your scan to these. Otherwise just insert a
time.sleep(1) or slightly more between the url fetch.

M-A

Le 4 août 2010 17:13, Timur Iskhodzhanov <timur...@google.com> a écrit :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »