summaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/misc/ya.make
Commit message (Collapse)AuthorAgeFilesLines
* Cache process/thread id getters and use them in TError origin capturebabenko2026-06-071-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/stringarkady-e1ppa2024-09-181-1/+0
| | | | commit_hash:429a843ed1a0e0fe3a5bc7d237f586b6671b8997
* [library/cpp/yt] fix peerdirtldr2024-01-301-0/+1
|
* add ymake export to ydbalexv-smirnov2023-06-131-0/+29
|
* Revert ymake build from ydb oss exportalexv-smirnov2023-03-281-28/+0
|
* add library/cpp/actors, ymake build to ydb oss exportalexv-smirnov2023-03-151-0/+28
|
* intermediate changesarcadia-devtools2022-03-151-28/+0
| | | | ref:ca7a95e8c9a9d780f96497136a152091d54e61b5
* intermediate changesarcadia-devtools2022-02-251-0/+1
| | | | ref:e3f00ef4e6dea6578b7e9ead4e6c020e1e259495
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.babenko2022-02-101-5/+5
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.babenko2022-02-101-5/+5
|
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.ignat2022-02-101-1/+1
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.ignat2022-02-101-1/+1
|
* Restoring authorship annotation for <[email protected]>. Commit 2 of 2.lukyan2022-02-101-21/+21
|
* Restoring authorship annotation for <[email protected]>. Commit 1 of 2.lukyan2022-02-101-21/+21
|
* intermediate changesDevtools Arcadia2022-02-071-0/+27
ref:cde9a383711a11544ce7e107a78147fb96cc4029