-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stronger protection against excess scheduling (fixes #57)
The simpler state machine and tryLock guard protected against most unnecessary scheduling of the maintenance task. This could occur though due to some benign races, a high write rate, and pronounce the effect of a clogged executor. This perfect scheduling has a negligible cost while ensuring that even in synthetic stress tests no excess occurs.
- Loading branch information
Showing
7 changed files
with
98 additions
and
196 deletions.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,8 @@ | |
* @author [email protected] (Ben Manes) | ||
*/ | ||
public final class Stresser { | ||
private static final String[] STATUS = { "Idle", "Required", "Processing" }; | ||
private static final String[] STATUS = | ||
{ "Idle", "Required", "Processing -> Idle", "Processing -> Required" }; | ||
private static final int THREADS = 2 * Runtime.getRuntime().availableProcessors(); | ||
private static final int WRITE_MAX_SIZE = (1 << 12); | ||
private static final int TOTAL_KEYS = (1 << 20); | ||
|
This file was deleted.
Oops, something went wrong.
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
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.