All of lore.kernel.org
 help / color / mirror / Atom feed
From: Amir Goldstein <amir73il@gmail.com>
To: Jan Kara <jack@suse.cz>
Cc: rong.a.chen@intel.com,
	linux-kernel <linux-kernel@vger.kernel.org>,
	Stephen Rothwell <sfr@canb.auug.org.au>, LKP <lkp@01.org>
Subject: Re: [LKP] [fsnotify] 60f7ed8c7c: will-it-scale.per_thread_ops -5.9% regression
Date: Tue, 2 Oct 2018 17:49:27 +0300	[thread overview]
Message-ID: <CAOQ4uxij6LuL6t3Y2ezbb=6sk-Q1Rqu6py3beY84jTGOmWH=+Q@mail.gmail.com> (raw)
In-Reply-To: <CAOQ4uxiY=-=F6v4enQkcw4VjhP6gp4E31fdRxM=_ShutbT2QXw@mail.gmail.com>

On Mon, Oct 1, 2018 at 12:52 PM Amir Goldstein <amir73il@gmail.com> wrote:
>
> On Mon, Oct 1, 2018 at 12:32 PM Jan Kara <jack@suse.cz> wrote:
> >
> > On Sun 30-09-18 12:00:46, Amir Goldstein wrote:
> [...]
> > > > commit:
> > > >   1e6cb72399 ("fsnotify: add super block object type")
> > > >   60f7ed8c7c ("fsnotify: send path type events to group with super block marks")
> > > >
> > >
> > > I have to admit this looks strange.
> > > All this commit does is dereference mnt->mnt.mnt_sb and then
> > > sb->s_fsnotify_mask/sb->s_fsnotify_marks to find that they are zero.
> > > AFAICT there should be no extra contention added by this commit and it's
> > > hard to believe that parallel unlink workload would suffer from this change.
> >
> > Well, it could be those additional fetches of
> > sb->s_fsnotify_mask/sb->s_fsnotify_marks if they happen to be cache cold.
> > Or it could be just code layout differences (i.e., compiler is not able to
> > optimize resulting code as good or the code layout just happens to align
> > with cache lines in a wrong way or something like that). Anyway, without
> > being able to reproduce this and do detailed comparison of perf profiles I
> > don't think we'll be able to tell.
> >
>

On my test machine, I couldn't measure a difference in results between the
two commits, but it may be because my test machine is not strong enough to
drive the test. It only has 4 cores and so I could only reach ~1/4 of
the workload
reported by 0day robot.

I tested both 16-thread and 4-thread jobs. In both cases the measured difference
between the two commits was less than 0.5% and within the stddev margins.

I will see if I can get my hands on a stronger test machine.

Thanks,
Amir.

      reply	other threads:[~2018-10-02 14:49 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-30  6:51 [LKP] [fsnotify] 60f7ed8c7c: will-it-scale.per_thread_ops -5.9% regression kernel test robot
2018-09-30  6:51 ` kernel test robot
2018-09-30  9:00 ` [LKP] " Amir Goldstein
2018-09-30  9:16   ` Amir Goldstein
2018-10-01  9:25     ` Jan Kara
2018-10-01  9:25       ` Jan Kara
2018-10-15  7:51       ` Rong Chen
2018-10-15  9:27         ` [LKP] " Amir Goldstein
2018-10-15 12:26           ` Amir Goldstein
2018-10-18  9:22             ` kernel test robot
2018-10-01  9:32   ` [LKP] " Jan Kara
2018-10-01  9:32     ` Jan Kara
2018-10-01  9:52     ` [LKP] " Amir Goldstein
2018-10-02 14:49       ` Amir Goldstein [this message]

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='CAOQ4uxij6LuL6t3Y2ezbb=6sk-Q1Rqu6py3beY84jTGOmWH=+Q@mail.gmail.com' \
    --to=amir73il@gmail.com \
    --cc=jack@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@01.org \
    --cc=rong.a.chen@intel.com \
    --cc=sfr@canb.auug.org.au \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.