Replies: 2 comments 1 reply
|
Relevant parts of the docs-
(from https://mise.jdx.dev/dev-tools/ and https://mise.jdx.dev/faq.html#what-does-mise-activate-do) Looks like This becomes extremely noticeable in my case since it looks like my NFS client isn't caching anything. So every prompt has a ~5sec delay after running |
|
A first-class version of this NFS workaround is now available. PR #7312, included in mise v2025.12.8, added two settings intended for slow filesystems such as NFS: [settings.hook_env]
cache_ttl = "5s"
chpwd_only = true
They can also be configured without reading them from a config file: export MISE_HOOK_ENV_CACHE_TTL=5s
export MISE_HOOK_ENV_CHPWD_ONLY=1The trade-off is that a config file modified in place may not be detected immediately. A full refresh can be requested explicitly with: mise hook-env --forceThere has also been a later improvement in #10707, included in mise v2026.7.0, which reduced normal config-candidate discovery from repeated glob/stat work to a single existence check per candidate. As a local regression check on the current main branch, I tested from a directory roughly 150 levels deep. The debug build spent about 7.7 ms in For an NFS setup, I would start with AI-assisted — Tool: Codex; model: OpenAI/GPT-5; version: unavailable. |
Uh oh!
There was an error while loading. Please reload this page.
When using
miseon a shared development server inside aNFS4mounted Home directory, we noticed "latency" running commands or just pressing Ctrl-C in the shell the first time we entered the directory or after some idleness in that shell. Commands executed directly afterwards (with little wait in between) did not show that latency.Moving
$HOME/.cache,$HOME/.config, and$HOME/.localto a fast local SSD storage didn't help.showed 108 filesystem accesses by
mise, most of them to the NFS mounted storage.We suspect that during the first run of
mise, this takes a few seconds, afterwards filesystem buffering makes this fast, until the buffers "loose" this information through other filesystem usages and then the next call is slow again. There seems not much that can be done to help that with a network drive as we have no means to force filesystem buffering to be kept (which probably wouldn't play very well with the system as a whole).For our situation, where we only rely on
mise"providing" the proper tool versions without doing any env variable setting, we used this workaround:in our
$HOME/.bashrcfiles. This makesmiseonly do its thing when changing directories.NOTE: this also "looses" the automatic/immediate
miserun when, e.g., editing the.tool-versionsfile.Just wanted to share this in case anybody else has a similar setup and annoying latency.
All reactions