Repository navigation
Release 1.14.1: stop tmux lag (status forks, history cap) - #64
Merged
Merged
Conversation
oh-my-tmux expands #{username}/#{root}/#{hostname} into #() shell jobs that
fork the tmux server ~3x/s. With a 1.3 GB server each fork copies its page
tables; measured 60% server CPU -> 7% using native #{user}@#{host_short}.
At 10M lines the server reached 1.3 GB, and every fork copies its page tables. Release 1.14.1.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What: status-right uses native #{user}@#{host_short} instead of three forked shell jobs; history-limit 10M -> 20000. Release 1.14.1.
Why: on dev-01 the tmux server reached 1.3 GB (352k scrollback lines) and forked ~3x/s for status jobs; perf showed copy_present_pte/zap_pte_range on top, server at 60% CPU, every pane lagging.
Verified on dev-01: server CPU 60% -> 7%, runqueue wait 107 -> 16 ms/s (schedstat, 10 s windows); forks from the server 59 -> 6 per 20 s (execsnoop). After clear-history + malloc_trim, RSS 1376 -> 77 MiB.