Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.advocacy > #448261

365 Million L3 Misses.

From Jeff-Relf.Me @.
Message-ID <Jeff-Relf.Me@Apr.14--7.58am.Seattle.2018> (permalink)
References (1 earlier) <sa0b803g.aho93@rooftop.invalid> <pakkh202pf6@news4.newsguy.com> <9a0b80tr.ahu34@rooftop.invalid> <Jeff-Relf.Me@Apr.11--0.09pm.Seattle.2018> <SitzC.428549$qo7.321660@fx04.am4>
Newsgroups comp.os.linux.advocacy, sci.physics, news.software.readers, comp.lang.c++
Subject 365 Million L3 Misses.
Organization usenet-news.net
Date 2018-04-14 07:58 -0700

Cross-posted to 4 groups.

Show all headers | View raw


BranimirMaksimovic replied:
> for( i = 0; i < _16k; ++i ) for( j = 0; j < _16k; ++j ) mat[ j*_16k + i ] = 42 ;
> Loop1:  3.659 Seconds     5  Million L3 Misses
> Loop2:   .327 Seconds

  Loop1:  2.485 Seconds   365  Million L3 Misses  ( 430 - 65 )
  Loop2:   .080 Seconds

I've no way of knowing L4 misses; my L4 is 128 MegaBytes.

I had to compile GitHub's "Performance Counter Monitor"
as I couldn't find "PCM.EXE", Googling.
WinRing0x64.DLL/.SYS had to be downloaded, as they must be signed.

I sample for 11 seconds because it takes me at least 5 seconds
to (manually) start the Loop1 test;  65 Million Misses is normal
for this amount of time ( 11 seconds, 430 - 65  = 365 ).

    PCM  11 -i=1 -ns -nsys -nc

A ReSet ( -r ) might be required, if there's a conflict.
I ran it -many- times, to be sure that I got the right averages.

To compile it, I had to add a "#include" and
change some compiler/linker switches.  Also:

    Visual Studio -> Solution Explorer -> RightClick Solution
    -> ReTarget Solution -> to pick a "Windows SDK".

    Put my "Include", "Lib" paths in my "Microsoft.Cpp.Win32.user.props.TXT";
    Copied it too "%LocalAppData%\Microsoft\MSBuild\v4.0\";
    Removed the ".TXT" extension and ReSarted Visual Studio;
    so the CodeEditor knows where my Includes are.

    Also, I put them in:  Solution Explorer -> Select all projects
      -> Settings -> Configuration Properties -> VC++ Directories.

Jeff-Relf.Me/Microsoft.Cpp.Win32.user.props.TXT

Back to comp.os.linux.advocacy | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Gentoo is *BEST* GNU/Linux "F. Russell" <fr@random.info> - 2018-04-08 15:29 +0000
  Re: Gentoo is *BEST* GNU/Linux Steven Petruzzellis <frelwizzen@gmail.com> - 2018-04-08 10:51 -0700
  Re: Gentoo is *BEST* GNU/Linux Melzzzzz <Melzzzzz@zzzzz.com> - 2018-04-08 19:36 +0000
    Re: Gentoo is *BEST* GNU/Linux Steven Petruzzellis <frelwizzen@gmail.com> - 2018-04-08 12:41 -0700
    Re: Gentoo is *BEST* GNU/Linux "F. Russell" <fr@random.info> - 2018-04-08 20:03 +0000
      Re: Gentoo is *BEST* GNU/Linux Melzzzzz <Melzzzzz@zzzzz.com> - 2018-04-08 20:22 +0000
        Re: Gentoo is *BEST* GNU/Linux "F. Russell" <fr@random.info> - 2018-04-08 21:06 +0000
      Re: Gentoo is *BEST* GNU/Linux owl <owl@rooftop.invalid> - 2018-04-08 21:02 +0000
        Re: Gentoo is *BEST* GNU/Linux Steven Petruzzellis <frelwizzen@gmail.com> - 2018-04-08 14:31 -0700
        Re: Gentoo is *BEST* GNU/Linux "F. Russell" <fr@random.info> - 2018-04-08 22:03 +0000
          Re: Gentoo is *BEST* GNU/Linux Steven Petruzzellis <frelwizzen@gmail.com> - 2018-04-08 15:18 -0700
            Re: Gentoo is *BEST* GNU/Linux Steven Petruzzellis <frelwizzen@gmail.com> - 2018-04-08 20:00 -0700
          Re: Gentoo is *BEST* GNU/Linux owl <owl@rooftop.invalid> - 2018-04-08 23:47 +0000
            Re: Gentoo is *BEST* GNU/Linux Steven Petruzzellis <frelwizzen@gmail.com> - 2018-04-08 17:09 -0700
  Re: Gentoo is *BEST* GNU/Linux "F. Russell" <fr@random.info> - 2018-04-10 15:23 +0000
    Re: Gentoo is *BEST* GNU/Linux Steven Petruzzellis <frelwizzen@gmail.com> - 2018-04-10 11:35 -0700
    Re: Gentoo is *BEST* GNU/Linux owl <owl@rooftop.invalid> - 2018-04-10 20:31 +0000
      Re: Gentoo is *BEST* GNU/Linux Steven Petruzzellis <frelwizzen@gmail.com> - 2018-04-10 21:53 -0700
      Re: Gentoo is *BEST* GNU/Linux "F. Russell" <fr@random.info> - 2018-04-11 09:29 +0000
        Re: Gentoo is *BEST* GNU/Linux Steven Petruzzellis <frelwizzen@gmail.com> - 2018-04-11 03:35 -0700
        Re: Gentoo is *BEST* GNU/Linux owl <owl@rooftop.invalid> - 2018-04-11 12:21 +0000
          Re: Gentoo is *BEST* GNU/Linux Steven Petruzzellis <frelwizzen@gmail.com> - 2018-04-11 06:43 -0700
          A page fault can cost ONE MILLION CLOCK CYCLES. Jeff-Relf.Me  @. - 2018-04-11 12:09 -0700
            Re: A page fault can cost ONE MILLION CLOCK CYCLES. Melzzzzz <Melzzzzz@zzzzz.com> - 2018-04-11 19:25 +0000
              Re: A page fault can cost ONE MILLION CLOCK CYCLES. Steven Petruzzellis <frelwizzen@gmail.com> - 2018-04-12 02:24 -0700
              Re: A page fault can cost ONE MILLION CLOCK CYCLES. Steven Petruzzellis <frelwizzen@gmail.com> - 2018-04-12 06:51 -0700
              365 Million L3 Misses. Jeff-Relf.Me  @. - 2018-04-14 07:58 -0700
                Re: 365 Million L3 Misses. Steven Petruzzellis <frelwizzen@gmail.com> - 2018-04-14 08:48 -0700
            Re: A page fault can cost ONE MILLION CLOCK CYCLES. Steven Petruzzellis <frelwizzen@gmail.com> - 2018-04-11 21:59 -0700
        Re: Gentoo is *BEST* GNU/Linux owl <owl@rooftop.invalid> - 2018-04-11 13:14 +0000

csiph-web