Archived
radiance 1.8.0
- video: MiniMax-H3 and FastVideo's FastH3 8-Step V2, a video with its stereo soundtrack from text on OpenAI's /v1/videos, block fp8 on two cards - music: MiniMax-Music3, songs from lyrics and a description on /v1/audio/speech - speech: Breeze-TTS-2 on /v1/audio/speech and vLLM-Omni's realtime WebSocket - runtime LoRA adapters beside the base model, picked per request by `model` (baKon, #105) - several agent streams keep their cached history: --checkpoint-slots auto, the new default, sizes the snapshot store by --max-num-seqs (#108) - the Swift 1.5 27B W4 releases convert and serve: compressed-tensors AWQ and GPTQ int4, AutoRound, ModelOpt NVFP4 (#110) - the image's host tests pass where perf_event_open is refused, as in BuildKit's sandbox (#106) - plugin ABI 21: out-of-tree plugins must be rebuilt
This commit is contained in:
1 parent
91127395ee
commit
7a7707a955
179 files changed
+37542
-1892
No files matched your search
+17
-3
@@ -6,12 +6,20 @@
|
||||
* on it does not flake when other tests run beside it. Tests compare ratios of two counts, or a
|
||||
* count per item against a bound far from the failure it catches.
|
||||
*
|
||||
* Where the counter is refused (no PMU in a VM, perf_event_paranoid above 2), the fallback is the
|
||||
* thread's CPU time in nanoseconds, which still excludes time spent descheduled. exact() says
|
||||
* which is in use. A multiplexed counter is scaled by its enabled/running times.
|
||||
* Where the counter is refused (no PMU in a VM, perf_event_paranoid above 2, or a seccomp profile
|
||||
* that denies the call, as a container build's sandbox does), the fallback is the thread's CPU time
|
||||
* in nanoseconds, which still excludes time spent descheduled. exact() says which is in use. A
|
||||
* multiplexed counter is scaled by its enabled/running times.
|
||||
*
|
||||
* CPU time includes the kernel's, which the counter leaves out, and the largest kernel cost of a
|
||||
* run is faulting in fresh pages: by default the allocator hands a large freed block back to the
|
||||
* system, so every run of a big input pays for its pages again, several milliseconds on a
|
||||
* half-megabyte input. With the fallback in use the allocator keeps freed memory mapped, so a
|
||||
* repeated run reuses pages it already faulted in and its time is the work again.
|
||||
*/
|
||||
#pragma once
|
||||
#include <linux/perf_event.h>
|
||||
#include <malloc.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/syscall.h>
|
||||
#include <time.h>
|
||||
@@ -36,6 +44,12 @@ public:
|
||||
a.exclude_hv = 1;
|
||||
a.read_format = PERF_FORMAT_TOTAL_TIME_ENABLED | PERF_FORMAT_TOTAL_TIME_RUNNING;
|
||||
fd_ = (int)syscall(SYS_perf_event_open, &a, 0, -1, -1, 0);
|
||||
if (fd_ < 0) {
|
||||
/* Freed memory stays mapped: no trim of the heap's top, and blocks up to the largest
|
||||
* threshold glibc accepts (32 MiB) come from the heap rather than a fresh mapping. */
|
||||
mallopt(M_TRIM_THRESHOLD, 1 << 30);
|
||||
mallopt(M_MMAP_THRESHOLD, 32 << 20);
|
||||
}
|
||||
}
|
||||
~Work() {
|
||||
if (fd_ >= 0) close(fd_);
|
||||
|
||||
Reference in new issue
Block a user