mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-05 07:48:45 +00:00
integrated gfx11 on Linux: the owner's wording is final, the [DRAFT] marks come off the two log lines and the register note
The wording of the two engine lines and of the STRATA_NO_ARENA_THP register note is approved as it stood. This commit removes the "[DRAFT] " marks and changes nothing else: - the arena line's ending is "; huge pages not requested on this graphics chip"; - the give-back line reads "strata generate: the model files' cached pages were given back after the expert load: <X> GiB asked back during the read, <Y> GiB by the call after it (<N> ms); the file cache is <Z> GiB now (STRATA_NO_ARENA_CACHE_DROP=1 keeps it)"; - the STRATA_NO_ARENA_THP register note starts at "unset: the engine decides ...". tests/core/page_cache_drop_test.cpp checks the new start of the give-back line; one comment in page_cache_drop.hpp lost its reference to the wording list.
This commit is contained in:
1 parent
0ee2639926
commit
6d8e42886e
4 files changed
+6
-6
No files matched your search
@@ -21039,7 +21039,7 @@
|
||||
"last_date": "2026-10-07",
|
||||
"status": "opt-in",
|
||||
"owner": "core",
|
||||
"note": "[DRAFT] unset: the engine decides (no huge-page request for the expert arena on an integrated gfx11 GPU under Linux: gfx1103, gfx1150, gfx1151; a request everywhere else, as before); 1 (any value but 0): never request them, as before; 0: request them, also on those GPUs (#2126's free-block check still applies). Documented for users (docs/TROUBLESHOOTING.md:122).",
|
||||
"note": "unset: the engine decides (no huge-page request for the expert arena on an integrated gfx11 GPU under Linux: gfx1103, gfx1150, gfx1151; a request everywhere else, as before); 1 (any value but 0): never request them, as before; 0: request them, also on those GPUs (#2126's free-block check still applies). Documented for users (docs/TROUBLESHOOTING.md:122).",
|
||||
"retire_after": "",
|
||||
"retired_in": ""
|
||||
},
|
||||
|
||||
@@ -146,14 +146,14 @@ inline Outcome give_back(const std::vector<std::string>& files) {
|
||||
return o;
|
||||
}
|
||||
|
||||
/// The one line the engine prints (a [DRAFT] until the owner words it, par/OWNER-WORDING-1111.md): empty when nothing was given back.
|
||||
/// The one line the engine prints: empty when nothing was given back.
|
||||
inline std::string draft_line(const Outcome& o) {
|
||||
const double gib = 1073741824.0;
|
||||
const uint64_t after_call = o.cached_before > o.cached_after ? o.cached_before - o.cached_after : 0;
|
||||
if (o.advised_behind == 0 && after_call == 0) return std::string();
|
||||
char buf[512];
|
||||
std::snprintf(buf, sizeof buf,
|
||||
"[DRAFT] the model files' cached pages were given back after the expert load: %.1f GiB asked back during the read, %.1f GiB "
|
||||
"the model files' cached pages were given back after the expert load: %.1f GiB asked back during the read, %.1f GiB "
|
||||
"by the call after it (%.0f ms); the file cache is %.1f GiB now (STRATA_NO_ARENA_CACHE_DROP=1 keeps it)",
|
||||
(double) o.advised_behind / gib, (double) after_call / gib, o.ms, (double) o.cached_after / gib);
|
||||
return std::string(buf);
|
||||
|
||||
+1
-1
@@ -499,7 +499,7 @@ void* reserve(uint64_t bytes, PageBacking& got, std::string& note, const std::st
|
||||
? "; transparent huge pages skipped (STRATA_NO_ARENA_THP)"
|
||||
: thp_mode == "always"
|
||||
? "; transparent huge pages are on for every mapping (THP always): MADV_HUGEPAGE not requested"
|
||||
: " [DRAFT] ; huge pages not requested on this graphics chip";
|
||||
: "; huge pages not requested on this graphics chip";
|
||||
} else if (std::getenv("STRATA_NO_LARGEPAGES") == nullptr && std::getenv("STRATA_ARENA_THP") == nullptr &&
|
||||
free_huge_bytes() < bytes / 2) {
|
||||
// #2126: THP "madvise" + defrag "madvise" makes every fault of a MADV_HUGEPAGE mapping reclaim and compact
|
||||
|
||||
@@ -148,7 +148,7 @@ int main() {
|
||||
CHECK(pcd::meminfo_bytes("Cach") == 0); // a prefix is not a key
|
||||
}
|
||||
#endif
|
||||
// 6. the draft line: nothing when nothing was given back, a [DRAFT] otherwise, with the numbers and the switch
|
||||
// 6. the draft line: nothing when nothing was given back, a line otherwise, with the numbers and the switch
|
||||
{
|
||||
pcd::Outcome none;
|
||||
CHECK(pcd::draft_line(none).empty());
|
||||
@@ -158,7 +158,7 @@ int main() {
|
||||
o.cached_after = 1ull << 30;
|
||||
o.ms = 520.0;
|
||||
const std::string s = pcd::draft_line(o);
|
||||
CHECK(s.rfind("[DRAFT] ", 0) == 0);
|
||||
CHECK(s.rfind("the model files' cached pages were given back after the expert load: ", 0) == 0);
|
||||
CHECK(s.find("9.0 GiB") != std::string::npos);
|
||||
CHECK(s.find("6.0 GiB") != std::string::npos);
|
||||
CHECK(s.find("520 ms") != std::string::npos);
|
||||
|
||||
Reference in new issue
Block a user