Repository navigation
Fix: 한 게임을 새로 고치거나 예열하면 다른 게임의 캐시가 먼저 밀려남 - #196
Merged
Merged
Conversation
캐시 유지는 게임마다 표식을 만들 때의 "앞에 있는 양"을 고정해 두고 그 비율로 새로 고칠 때를 정했습니다. 그런데 다른 게임을 새로 고치면 그 페이지가 대기 목록 뒤로 가서, 재사용이 없어도 앞에 있는 양이 줄었습니다. 다른 게임의 예열이 새로 읽는 동안에는 더 오래된 게임이 먼저 밀려났고, 재사용이 한꺼번에 몰리면 비율 기준만으로는 늦었습니다. - 표식이 있는 게임을 한 묶음으로 다뤄, 지금 만질 수 있는 게임 중 하나가 때가 되면 순위가 낮은 게임부터 함께 새로 고침 - 앞에 있는 양을 만진 순서에 맞게 다시 계산하고, 내 앞에 있던 다른 게임이 다시 만져지면 그만큼 줄임 - 런처 트리거가 아닌 예열은 디스크를 읽기 전에 표식이 있는 다른 게임을 먼저 만짐 - 남은 여유가 2 GiB 보다 작으면 비율과 무관하게 새로 고치고, 묶음 새로 고침 사이는 60초 이상 둠 - 한도로 마무리한 스트림도 읽은 범위를 확정할 수 있으면 끝난 직후 사다리를 만듦 - 읽기 대여를 얻지 못한 게임은 표식을 지우지 않고 건너뜀 - 로그 꼬리는 MiB 로 0 이면 붙이지 않음 - `docs/SOLAR.md`, `docs/SOLAR.ko.md` 에 판정과 실험 값을 반영함 Issues #195
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.
Summary
csharp/src/AsterCache.Service/Rewarm.Ladder.cs,Solar.cs).A_i = max(0, C − Σ_{j≥i} t_j)). 내 표식보다 먼저 표식을 받은 다른 게임이 다시 만져지면 그 게임이 이전에 만진 양과 이번에 만진 양 중 작은 쪽만큼 줄입니다 (SolarPolicy.cs)., protected K games (N MiB in S s)로 남습니다 (Prewarm.Solar.cs,Prewarm.Run.cs).protected,requeued)는 MiB 로 0 이면 붙이지 않습니다.docs/SOLAR.md,docs/SOLAR.ko.md에 판정과 실험 값을 반영했습니다.알아 둘 점
yielded와 디스크 노출 시간에서 뺍니다.Test plan
dotnet build csharp -c Release -m:1경고 0, 오류 0dotnet test csharp/tests/AsterCache.Tests -c Release --no-build --filter "Category!=Live"4,525건 통과dotnet format csharp --verify-no-changes종료 코드 0git diff --check종료 코드 0build-test통과: https://github.com/DO0OG/AsterCache/actions/runs/43562124520Closes #195