Skip to content

CongAugThread, L3 cache & CompStatsThread #133

Closed

Description

@yakra

Would a concurrencies.log solution that's gentler on L3 cache avoid the slowdown in Computing stats we saw in 8a0b5fe?
Instead of storing the whole string, we could store a tuple of the 3 pointers we need to recreate it.
Not counting container overhead, We're dealing with 14.2 MB rather than 59.7. In 24 B at a time, rather than >4x as many.

  • Not much time to save in ConcAugThread itself; we saved a very small amount when constructing no list elements whatsoever.
  • CompStatsThread results?
  • How much additional time would be wasted dereferencing our pointers and individually inserting them into the ofstream, all single-threaded?
    • yakra@BiggaTomato:~/TravelMapping/devel/cpuscale$ ./taskscale.sh lab1 _conc2 'Writing to\|Computing stats' sulogs/2020-04-17/ | sed 's~.*| ~~' averages 0.21s.
    • yakra@BiggaTomato:~/TravelMapping/devel/cpuscale$ ./taskscale.sh lab1.5 _conc2 'Writing to\|Computing stats' sulogs/2020-04-17/ | sed 's~.*| ~~' averages 0.16s.

Activity

  1. yakra commented on Apr 29, 2020

    @yakra
    OwnerAuthor
    • Not much time to save in ConcAugThread itself; we saved a very small amount when constructing no list elements whatsoever.

    I was looking either not very closely, at too little data, incomplete data, or possibly even the wrong data. Initial results from lab1 with 1 and 2 threads are actually quite promising.

  2. yakra commented on Apr 29, 2020

    @yakra
    OwnerAuthor

    Writing to concurrencies.log

    How much additional time would be wasted dereferencing our pointers and individually inserting them into the ofstream, all single-threaded?

    box before after slowdown
    BT 0.40 1.38 0.98
    lab1 0.21 1.12 0.91
    lab1.5 0.16 0.68 0.53
    lab2 0.23 1.32 1.09
    lab3 0.36 1.79 1.43

    ...Will this cause the same damage to L3 cache?

    CompStatsThread

    CompStatsThread results?

    Saving < 0.2s, except for very few threads on most machines.

  3. yakra commented on Apr 29, 2020

    @yakra
    OwnerAuthor

    The results from lab3 aren't in yet, but this appears to be a dead end.
    We have very slight gains in CompStatsThread, and actually pretty good gains in ConcAugThread, but they're outweighed by the extra time writing concurrencies.log.
    Costs include dereferencing a bunch of pointers (FWIW), inserting a greater number of items into the ofstream, and (probably) the big one, creating string objects for HighwaySegments.
    Not constructing strings for concurrencies.log lines, we're faster single-threaded.
    But with threaded string construction, speed scales up.
    End result, all machines are slower with >1 thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions