serve: an engine option written as one entry of the config's args is split, a JSON slip is said with its place (#2267)

"--ple-io mmap" as ONE element of "args" (or "--ple-io=mmap") reached the engine as a single
argument, which it stops on ("unknown argument: --ple-io mmap"); the usual form is two entries.
The server now splits such an element into the flag and its value and says so at startup
(never one in a flag's value place). A config with a JSON mistake (a missing comma between two
args) gave a traceback; it now names the file, line and column. The slow-PLE-probe warning says
how the two entries are written in a config. --ple-io mmap, ram and direct themselves parse
correctly in the engine (checked on the 0.1.45 build).

Reported by lama7 on #2267.
This commit is contained in:
Niko1221 committed 2026-10-15 15:04:33 +02:00
1 parent 36381540f9
commit 8101a8903b
4 files changed
+81 -3

No files matched your search

+1 -1
View File
@@ -3546,7 +3546,7 @@ int main(int argc, char** argv) {
"MB/s of random 4 KiB reads): a prompt can spend minutes reading layer 1 and trip the "
"stall watchdog (#1425, #1629). --ple-io mmap was 40-100x faster on some DRAM-less NVMe drives but 7x slower on a SATA SSD (#2040), so it is not chosen for you; "
"--ple-io ram needs the RAM for the table%s\n", rps, rps * 4096.0 / 1e6,
o.ple_io_explicit ? "" : " (kept direct: pass --ple-io mmap or --ple-io ram to change it)");
o.ple_io_explicit ? "" : " (kept direct: pass --ple-io mmap or --ple-io ram to change it; in a config file's \"args\" they are two entries: \"--ple-io\", \"mmap\")");
}
}
}