Skip to content

The progress bar causes massive traffic and high CPU usage to the terminal running jj #5057

@azuwis

Description

@azuwis

Description

$ jj git clone https://github.com/torvalds/linux.git
Fetching into new repo in "/tmp/linux"
  9% 578.6 MiB at   2.4 MiB/s [███████████                                                               ]

The progress bar showed above causes massive traffic and high CPU usage to the terminal running jj, if jj is run in the remote server, it also causes massive traffic between local machine and remote server.

Steps to Reproduce the Problem

Ssh login to a remote server, and run jj git clone https://github.com/torvalds/linux.git /tmp/linux on the remote server.

Run sudo nethogs -a on the remote server to measure the network traffic.

The progress bar causes massive traffic between local machine and remote server

jj git clone https://github.com/torvalds/linux.git /tmp/linux:

Screenshot 2024-12-09 at 10 46 01

Git does not have this behavior

git clone https://github.com/torvalds/linux.git /tmp/linux:

Screenshot 2024-12-09 at 10 47 08

When the progress bar is redirect to /dev/null, the massive traffic is gone

jj git clone https://github.com/torvalds/linux.git /tmp/linux 2>/dev/null:

Screenshot 2024-12-09 at 10 50 13

The progress bar also causes tmux high CPU usage when running jj in tmux:

Screenshot 2024-12-09 at 11 50 26

When running git clone .. in tmux, you can't even see tmux in top:

Screenshot 2024-12-09 at 11 46 20

Expected Behavior

The progress bar do not cause massive traffic and high CPU usage to the terminal.

Actual Behavior

The progress bar causes massive traffic and high CPU usage to the terminal.

Specifications

  • Platform: Linux and macOS
  • Version: 0.23.0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions