Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

du is re-run for each context switch #778

Closed
danielb2 opened this issue Nov 12, 2020 · 2 comments
Closed

du is re-run for each context switch #778

danielb2 opened this issue Nov 12, 2020 · 2 comments

Comments

@danielb2
Copy link

Exact steps to illustrate the issue

  1. navigate to a top-level folder with a lot of directories that take a lot of space
  2. toggle du on
  3. switch to another context
  4. switch back to the original context
Actual:

du is e-run each time.

Expected:

Switching context without any changes should not cause du to re-run (it should cache)

Use-case:

using nnn to purge old files isn't currently possible, it't too slow. I want to use one context to see in what folders the large files are, and switch to another context to go spelunking for large files.

@jarun
Copy link
Owner

jarun commented Nov 13, 2020

Switching context without any changes should not cause du to re-run (it should cache)

A lot of it comes from the CPU cache already

I want to use one context to see in what folders the large files are, and switch to another context to go spelunking for large files.

nnn refreshes to show the latest data. When you delete the files from another context, du changes.

using nnn to purge old files isn't currently possible, it's too slow.

My personal experience is completely different. Probably you are on a hard disk/USB with too many files. I would suggest you use a tool that uses static snapshot e.g. ncdu.

@jarun jarun closed this as completed Nov 13, 2020
@jarun
Copy link
Owner

jarun commented Nov 13, 2020

Another option that I tried now - use a terminal multiplexer like tmux of dvtm to show windows side by side.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants