This repository has been archived by the owner on Nov 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 509
[Unix ThreadPool] Ported Hill Climbing from CoreCLR to CoreRT #3794
Merged
Merged
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
f715396
Ported Hill Climbing from CoreCLR to CoreRT.
8e813e5
Fixed compile error and added license header.
dfca925
New unix-specific files now compile on Unix only. Removed unused memb…
4506c02
Make ClrThreadPool and hill climbing compile on both Windows and Unix…
3b9c90c
Move CLR threadpool classes to compile on Unix only for now.
ca78d25
Alphabetically sort project entries.
2f8e2fb
Add more TODO comments to ensure that SetMinThreads and SetMaxThreads…
9e19d33
Moved HillCimbing instance to be a static member on HillClimbing inst…
0aad3b8
Made changes consistent with PR feedback
2e5dc38
Fixed algorithm logic error
53e330f
More PR feedback
6cd9aa0
PR feedback on complex and file headers.
180c21a
Added comment referencing @mattwarren's article on the algorithm.
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there anything Unix-specific in the file? Maybe call it just
ClrThreadPool.HillClimbing.cs
? #ClosedThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this PR there isn't anything Unix-specific; however, in future PRs the rest of the thread pool implementation will have Unix-specific portions. The CPU utilization calculation specifically is the Unix-specific code that Hill climbing will touch.
I can change it if you would like me to do so.
#Closed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally, I would like to see the code structured in such a way that would be easy to enable ClrThreadPool on Windows too if it is needed (for example, for experiential/perf comparison purposes). #Closed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've moved the code to be available on both Windows and Unix. #Closed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want the code to be structured such that it is possible to enable it on Windows. You have done a step towards that by renaming the files from
*.Unix.cs
to*.cs
.But we do not want to be compiling the code in by default on Windows, at least for now. Could you please add
Condition="'$(TargetsWindows)'!='true'
on the new files in the .csproj file? #Closed