Open
Conversation
EtiShkol
commented
Aug 8, 2024
CachePrefetchManagementApi.h
Outdated
| @@ -0,0 +1,12 @@ | |||
| #pragma once | |||
| #include "CachePrefetchManagement.h" | |||
Collaborator
Author
There was a problem hiding this comment.
remove the include
move range struct
Collaborator
Author
There was a problem hiding this comment.
done
we didnt move range struct
EtiShkol
commented
Aug 8, 2024
CachePrefetchManagementApi.h
Outdated
| bool IsRangeInLoadingAPI(Range_t rangeForSearch); | ||
|
|
||
| //function that get range to remove, find it and delete it from loadingArray | ||
| void RemoveRangeFromLoadingRangesAPI(Range_t rangeForRemove); |
Collaborator
Author
There was a problem hiding this comment.
remove API
add prefetch to begining
EtiShkol
commented
Aug 8, 2024
| @@ -0,0 +1,125 @@ | |||
| #pragma once | |||
EtiShkol
commented
Aug 8, 2024
CachePrefetchManagement.h
Outdated
| #include <stdbool.h> | ||
| #include <stdlib.h> // For malloc, free | ||
| #define COLLECTION_SIZE 4 | ||
| #define RANGE_LENGTH 1 |
Collaborator
Author
There was a problem hiding this comment.
supportedRangeLengh/width
EtiShkol
commented
Aug 8, 2024
CachePrefetchManagement.h
Outdated
| #define RANGE_WIDTH 1 | ||
| #define INIT_COUNTER_LEN 2 | ||
| #define SIZE_OF_ENOUGH_SEQ 3 | ||
| #define INIT_POINT { -1,-1 } |
EtiShkol
commented
Aug 8, 2024
CachePrefetchManagement.h
Outdated
| #define SIZE_OF_ENOUGH_SEQ 3 | ||
| #define INIT_POINT { -1,-1 } | ||
| #define COUNT_OF_RANGE_TO_READING_AHEAD 2 | ||
| #define INIT_RANGE {INIT_POINT,INIT_POINT} |
EtiShkol
commented
Aug 8, 2024
| #define INIT_RANGE {INIT_POINT,INIT_POINT} | ||
|
|
||
| //struct that representing a point in a plane | ||
| typedef struct Point_s |
EtiShkol
commented
Aug 8, 2024
CachePrefetchManagement.h
Outdated
| Range_t nextExpectedRange; | ||
| Range_Direction_t dir; | ||
| int counterUse; | ||
| int counterLength; |
EtiShkol
commented
Aug 8, 2024
CachePrefetchManagement.h
Outdated
|
|
||
| //control block of the program | ||
| typedef struct SequenceCollectionCtrlBlk_s { | ||
| SeqRangeInfo_t* seqRangeInfoArray[COLLECTION_SIZE]; |
Collaborator
Author
There was a problem hiding this comment.
collectionSize->max Supported parallel range
EtiShkol
commented
Aug 8, 2024
CachePrefetchManagement.h
Outdated
| //control block of the program | ||
| typedef struct SequenceCollectionCtrlBlk_s { | ||
| SeqRangeInfo_t* seqRangeInfoArray[COLLECTION_SIZE]; | ||
| Range_t singleRangesArray[COLLECTION_SIZE]; |
Collaborator
Author
There was a problem hiding this comment.
create struct of singleRangesArray
CachePrefetchManagement.h
Outdated
| #pragma region Range Functions | ||
|
|
||
| //function that init the range | ||
| Range_t GetDefaultRange(); |
CachePrefetchManagement.h
Outdated
| //function that init the range | ||
| Range_t GetDefaultRange(); | ||
|
|
||
| //function that get direction, range and num, and return the next range by the direction, double the num |
Collaborator
Author
There was a problem hiding this comment.
explain more the counter
CachePrefetchManagement.h
Outdated
| int GetLastUsedSequence(); | ||
|
|
||
| //external function of insert new range | ||
| void InsertNewRangeAPI(Range_t range); |
CachePrefetchManagement.h
Outdated
| void InsertNewRangeAPI(Range_t range); | ||
|
|
||
| //internal function that called by the external function-InsertNewRangeAPI | ||
| TYPE_OF_ACTION_THAT_ACCURED_IN_INSERT_t InsertNewRange(Range_t range); |
Collaborator
Author
There was a problem hiding this comment.
insert action type
internal
CachePrefetchManagement.h
Outdated
| int IsRangeCreateNewSequence(Range_t range); | ||
|
|
||
| //function that get index of seq that update now and up the counter use of the others seqs | ||
| void UpCounterUseOfSeqsOthers(int index); |
Collaborator
Author
There was a problem hiding this comment.
increase all LRU conter except specific counter
CachePrefetchManagement.h
Outdated
| bool CheckValidationOfRange(Range_t range); | ||
| #pragma endregion | ||
|
|
||
| void INIT(); |
Collaborator
Author
There was a problem hiding this comment.
move to API
add prefecth to name
CachePrefetchManagement.h
Outdated
|
|
||
| void INIT(); | ||
|
|
||
| void SendLoadingRangeToAPI(Range_t range); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.