Skip to content

Best offset prefetcher#10

Open
maxwellrbradley wants to merge 6 commits into
stanford-mast:memtracefrom
maxwellrbradley:best_offset_prefetcher
Open

Best offset prefetcher#10
maxwellrbradley wants to merge 6 commits into
stanford-mast:memtracefrom
maxwellrbradley:best_offset_prefetcher

Conversation

@maxwellrbradley

Copy link
Copy Markdown

This branch contains the implementation of the best offset prefetcher.

@hlitz hlitz left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mostly nits. The only feature request I have is some stats and potentially some useful configuration parameters.

Comment thread src/best_offset_prefetcher.cpp Outdated
Comment thread src/best_offset_prefetcher.cpp Outdated
Comment thread src/best_offset_prefetcher.cpp Outdated
Comment thread src/best_offset_prefetcher.cpp Outdated
Comment thread src/best_offset_prefetcher.cpp Outdated
Comment thread src/best_offset_prefetcher.cpp Outdated
Comment thread src/best_offset_prefetcher.h Outdated

// num run throughs to make before round over
const uint64_t RND_MAX = 100;
//const uint64_t RND_MAX = 50;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove multiple constants. If you believe these should be configurable, add a new parameter that can be defined via the cfg file.

error.c_str());
return;
}
module_mapper_ = module_mapper_t::create(directory_.modfile_bytes,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm is this a current bug? If yes please extract it into a separate commit/pull request

Comment thread src/best_offset_prefetcher.cpp Outdated
Comment thread src/best_offset_prefetcher.h Outdated
uint64_t current_round;
uint64_t test_offset_index;
uint64_t current_offset;
#ifndef TEST

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove and add some actual stats (look how the other prefetchers are doing it).

Can you think of other useful stats besides emitted prefetches? This is very helpful for quick debugging the out file if things do not perform like expected.

@hlitz hlitz left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please merge with the prior commit, and do another pull request consisting of a single commit.

…ved is to add configurability to the prefetcher from the configuration files.
Cleaned up code a bit.

Cleand up syntax of source files. Next step before pull request approved is to add configurability to the prefetcher from the configuration files.

Fixed up code to standards.

Added best offset prefetcher source files to forked branch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants