| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Cache process/thread id getters and use them in TError origin capture | babenko | 2026-06-07 | 1 | -1/+0 |
| | | | | | | | | | | | | | | | | | | | | | | ## Motivation Profiling the YT master Automaton thread showed TOriginAttributes::Capture (run on every non-OK TError) spending ~60% of its time in a getpid() syscall — uncached on glibc >= 2.25. NYT::GetCurrentThreadId() (gettid) feeds hot thread-affinity / log-manager checks on the same thread. ## Changes - New library/cpp/yt/system/process_id.* with cached GetProcessId(); GetSystemThreadId() now caches the kernel tid in TLS. Both caches reset in the child after fork. - Moved thread_name.{h,cpp} from misc to system. - Removed GetCurrentProcessId/GetCurrentThreadId shims from yt/yt/core/misc/proc.{h,cpp}; migrated all callers to NYT::GetProcessId / NYT::GetSystemThreadId. - TOriginAttributes::Capture uses the cached getters; recorded Tid is now the real kernel tid (matches perf/ps). - Added microbenchmarks (library/cpp/yt/system/benchmarks, yt/yt/core/benchmarks/error.cpp). ## Microbenchmarks (release) | | before | after | |---|---|---| | getpid | 101 ns | 0.33 ns | | gettid | 102 ns | 1.64 ns | | Capture | 161 ns | 50 ns | | failed TError | 221 ns | 74 ns | commit_hash:ee37ae57d61a5a2dd33daee935270f4bb93b7ff9 | ||||
| * | remove cpp/yt/misc no longer depends on cpp/yt/string | arkady-e1ppa | 2024-09-18 | 1 | -1/+0 |
| | | | | | commit_hash:429a843ed1a0e0fe3a5bc7d237f586b6671b8997 | ||||
| * | [library/cpp/yt] fix peerdir | tldr | 2024-01-30 | 1 | -0/+1 |
| | | |||||
| * | add ymake export to ydb | alexv-smirnov | 2023-06-13 | 1 | -0/+29 |
| | | |||||
| * | Revert ymake build from ydb oss export | alexv-smirnov | 2023-03-28 | 1 | -28/+0 |
| | | |||||
| * | add library/cpp/actors, ymake build to ydb oss export | alexv-smirnov | 2023-03-15 | 1 | -0/+28 |
| | | |||||
| * | intermediate changes | arcadia-devtools | 2022-03-15 | 1 | -28/+0 |
| | | | | | ref:ca7a95e8c9a9d780f96497136a152091d54e61b5 | ||||
| * | intermediate changes | arcadia-devtools | 2022-02-25 | 1 | -0/+1 |
| | | | | | ref:e3f00ef4e6dea6578b7e9ead4e6c020e1e259495 | ||||
| * | Restoring authorship annotation for <[email protected]>. Commit 2 of 2. | babenko | 2022-02-10 | 1 | -5/+5 |
| | | |||||
| * | Restoring authorship annotation for <[email protected]>. Commit 1 of 2. | babenko | 2022-02-10 | 1 | -5/+5 |
| | | |||||
| * | Restoring authorship annotation for <[email protected]>. Commit 2 of 2. | ignat | 2022-02-10 | 1 | -1/+1 |
| | | |||||
| * | Restoring authorship annotation for <[email protected]>. Commit 1 of 2. | ignat | 2022-02-10 | 1 | -1/+1 |
| | | |||||
| * | Restoring authorship annotation for <[email protected]>. Commit 2 of 2. | lukyan | 2022-02-10 | 1 | -21/+21 |
| | | |||||
| * | Restoring authorship annotation for <[email protected]>. Commit 1 of 2. | lukyan | 2022-02-10 | 1 | -21/+21 |
| | | |||||
| * | intermediate changes | Devtools Arcadia | 2022-02-07 | 1 | -0/+27 |
| ref:cde9a383711a11544ce7e107a78147fb96cc4029 | |||||
