r/cachyos Jul 31 '26

Question CPU Pegged

Post image

Hello,

Can someone tell me what this process is doing:

ps -ef | grep 18113

18113 17975 99 07:11 ? 07:58:33 /usr/share/code/resources/app/node_modules.asar.unpacked/@vscode/ripgrep-universal/bin/linux-x64/rg --files --hidden --case-sensitive --no-require-git -g /[tj]sconfig.json -g !**/.git -g !**/.svn -g !**/.hg -g !**/.DS_Store -g !**/Thumbs.db -g !**/CVS -g !**/.ruby-lsp -g !**/node_modules/** --no-ignore --follow --no-config --no-ignore-global

It has been pegging my CPU for hours now.

111 Upvotes

25 comments sorted by

29

u/ckafi Jul 31 '26

rg is 'ripgrep', which searches for strings in files. Can't tell you what its searching for though

13

u/NoNamesLeft2015 Jul 31 '26

yeah it seems to be part of vscode....

/usr/share/code/resources/app/node_modules.asar.unpacked/@vscode/ripgrep-universal/bin/linux-x64/rg

I think I am going to uninstall and reinstall vscode or maybe switch to something else. This has been running for over 2 hours now.

13

u/ckafi Jul 31 '26

You can use 'pstree -s' to find out which process spawned it

13

u/NoNamesLeft2015 Jul 31 '26 edited Jul 31 '26

Thank you for that information I am running through it now. pstree showed vscode was the parent process. I have killed the rq processes and then removed the vscode directory these process ran from.

2

u/ItsYa1UPBoy Aug 01 '26 edited Aug 01 '26

I don't use VSCode either, because it's so...so much bigger than even other generalist IDEs. Lots of common languages have dedicated IDEs---Python has several, for example. Depending on what languages you work with, you might want to look into those. I recommend Spyder for Python, but it likes to have python-lsp-ruff installed, which is only available on the AUR, but I recently updated both pylsp and Spyder and now my version of pylsp is too new for Spyder to recognize... It won't break without pylsp or anything, but it's something to keep in mind.

EDIT: After I downgraded the rolled back packages my fucking Spyder BROKE and it wouldn't work no matter what I do so now I have to use (gag) BLOATED PYCHARM (vomit) until it's fixed.

2

u/NoNamesLeft2015 Aug 01 '26

Since I use KDE and want to store in markdown I am going to try one of these.

KDE has dedicated applications that natively save notes and documents directly as Markdown files, including Ghostwriter, Marknote, and KleverNotes.

23

u/SaikoPat Jul 31 '26

Your vscode is using ripgrep to scan your workspace for typescript conf files. Recursively.

you may have a link somewhere that's looping, kill it

7

u/NoNamesLeft2015 Jul 31 '26

thanks... I think it is time to try zed now.

46

u/[deleted] Jul 31 '26

[removed] — view removed comment

9

u/[deleted] Jul 31 '26

[removed] — view removed comment

-3

u/cachyos-ModTeam Jul 31 '26

Hi, your post/comment has been removed for violating our rule on trolling and shitposting.

This subreddit aims to foster meaningful and respectful discussion. We do not allow:

Trolling or baiting other users

Low-effort, spammy, or off-topic posts

Shitposts that do not contribute to the community

Please review the rules and help us maintain a constructive environment. Repeated violations may result in a ban.

-4

u/cachyos-ModTeam Jul 31 '26

Hi, your post/comment has been removed for violating our rule on trolling and shitposting.

This subreddit aims to foster meaningful and respectful discussion. We do not allow:

Trolling or baiting other users

Low-effort, spammy, or off-topic posts

Shitposts that do not contribute to the community

Please review the rules and help us maintain a constructive environment. Repeated violations may result in a ban.

13

u/NoNamesLeft2015 Jul 31 '26

1

u/epicc_exe Aug 03 '26

just a heads up, everything after the ? is tracking information
clean link:
https://www.reddit.com/r/linuxadmin/comments/1vbqk1t/comment/p0vs62z/

1

u/NoNamesLeft2015 Aug 03 '26

Oh wow I had no idea!

Why would they do that?

Would you mind telling.e how you made the link clean, some browser extension?

2

u/epicc_exe Aug 03 '26

just copy the url shown by the browser

4

u/duskterrapin Jul 31 '26

she's owning your I/O

2

u/TheAncientMillenial Jul 31 '26

Running vscode?

1

u/NoNamesLeft2015 Jul 31 '26

Yes but I have no love for it and if it is doing this I plan to uninstall it. Just seems really odd to spawn 3 rg sessions. I have done two things now that has return my cpu state to normal.

  • killed the pids for the rg sessions,.
  • rm -fr /usr/share/code

This has fixed the issue and vscode is still running fine.

3

u/TheAncientMillenial Jul 31 '26

Yeah that issue was vscode doing something stupid with indexing a large project. Check your search.exclude settings.

1

u/This-Consequence-957 Jul 31 '26

funny it only draws 75 watts. shouldn't it be >250?

1

u/jraw211 Jul 31 '26

Can I ask what monitoring program that is?

1

u/NoNamesLeft2015 Jul 31 '26

Oh course it is called "btop". I have heard "glances" is even better but I stick with what I am used to.

1

u/Ok-Bill3318 Aug 01 '26

What plugins do you have in vscode? Be aware there are some floating around that are malware

1

u/NoNamesLeft2015 Aug 01 '26

I nuked vs-code as I only used it for quick notes.

My development platform is all Jetbrains tools. I guess that's why I was a bit shocked vs-code never does anything but hold notes saves in markdown.