Re: MMTests 0.05

From: Mel Gorman
Date: Fri Sep 21 2012 - 05:57:42 EST


On Fri, Sep 21, 2012 at 01:16:31PM +0400, Glauber Costa wrote:
> On 09/20/2012 07:37 PM, Mel Gorman wrote:
> > On Thu, Sep 20, 2012 at 03:03:56PM +0400, Glauber Costa wrote:
> >> On 09/07/2012 04:42 PM, Mel Gorman wrote:
> >>> ./run-mmtests.sh test-run-1
> >>
> >> Mel, would you share with us the command line and config tweaks you had
> >> in place to run the memcg tests you presented in the memcg summit?
> >>
> >
> > Apply the following patch to mmtests 0.05 and then from within the
> > mmtests directory do
> >
> > ./run-mmtests.sh testrun
> >
> > At the very least you should have oprofile installed. Optionally install
> > libnuma-devel but the test will cope if it's not available. Automatic package
> > installation will be in 0.06 for opensuse at least but other distros can
> > be easily supported if I know the names of the equivalent packages.
> >
> > The above command will run both with and without profiling. The profiles
> > will be in work/log/pft-testrun/fine-profile-timer/base/ and an annotated
> > profile will be included in the file. If you have "recode" installed the
> > annotated profile will be compressed and can be extracted with something like
> >
> > grep -A 9999999 "=== annotate ===" oprofile-compressed.report | grep -v annotate | recode /b64..char | gunzip -c
> >
> > Each of the memcg functions will be small but when all the functions that
> > are in mm/memcontrol.c are added together it becomes a big problem. What I
> > actually showed at the meeting was based on piping the oprofile report
> > through another quick and dirty script to match functions to filenames.
> >
> > The bulk of this patch is renaming profile-disabled-hooks-a.sh to
> > profile-hooks-a.sh. Let me know if you run into problems.
>
> FYI: I get this:
>
> Can't locate TLBC/Report.pm in @INC (@INC contains:
> /home/glauber/mmtests-0.05-mmtests-0.01/vmr/bin /usr/local/lib64/perl5
> /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
> /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at
> /home/glauber/mmtests-0.05-mmtests-0.01/vmr/bin/oprofile_map_events.pl
> line 11.
>
> Investigating, it seems that hugetlbfs packages in fedora doesn't
> install any perl scripts, unlike SuSE.
>

That is unexpected but thanks for pointing it out. I'll pull in the
necessary support files into mmtests itself to avoid the problem in the
future.

> I downloaded the library manually, and pointed perl path to it, and it
> seems to work.
>

Good news, thanks.

--
Mel Gorman
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/