[vim/vim] High CPU usage on Fedora 40 (Issue #14650)

42 views
Skip to first unread message

zhscn

unread,
Apr 27, 2024, 12:01:56 AM4/27/24
to vim/vim, Subscribed

Steps to reproduce

  1. Open one log file, here is an example of mine, the complete file size is about 250M
    log.txt
  2. Press Ctrl-D to continue scrolling down.
  3. CPU usage reaches 100%
    Screenshot.from.2024-04-27.11-02-12.png (view on web)

flamegraph:
flamegraph.svg (view on web)

Expected behaviour

CPU usage should be at a low level.

Version of Vim

9.1.309

Environment

OS: fedora 40
terminal: gnome-terminal-3.50.1-6.fc40.x86_64
$TERM: xterm-256color

Logs and stack traces

No response


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14650@github.com>

zhscn

unread,
Apr 27, 2024, 8:00:37 AM4/27/24
to vim/vim, Subscribed

git bisect shows that 9148ba8 caused this problem.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14650/2080482272@github.com>

Christian Brabandt

unread,
Apr 27, 2024, 8:56:45 AM4/27/24
to vim/vim, Subscribed

ping @luukvbaal


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14650/2080593939@github.com>

Aliaksei Budavei

unread,
Apr 27, 2024, 10:06:41 AM4/27/24
to vim/vim, Subscribed

Vim with --clean and the LargeFile plugin (available from
here and here) may also help:

vim --clean -Nu NONE '+set pp=~/.vim rtp=~/.vim' log.log


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14650/2080739993@github.com>

luukvbaal

unread,
Apr 27, 2024, 2:07:48 PM4/27/24
to vim/vim, Subscribed

Hmm almost missed this despite the ping because of the nondescript issue title.
We just spend a lot of cycles in plines_m_win() with limit_winheight == FALSE. We need to count until w_height + count so limit_winheight == TRUE doesn't work. Could add a new argument to plimes_m_win() to that end.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14650/2081116975@github.com>

Christian Brabandt

unread,
Apr 28, 2024, 10:27:35 AM4/28/24
to vim/vim, Subscribed

Closed #14650 as completed via 32d701f.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/14650/issue_event/12634993548@github.com>

Reply all
Reply to author
Forward
0 new messages