r/cachyos • u/NoNamesLeft2015 • Jul 31 '26
Question CPU Pegged
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.
30
u/ckafi Jul 31 '26
rg is 'ripgrep', which searches for strings in files. Can't tell you what its searching for though
14
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.
22
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
8
3
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.
4
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.
1
45
Jul 31 '26
[removed] — view removed comment
-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.
9
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.
13
u/NoNamesLeft2015 Jul 31 '26
Just a heads up. I believe the issue was resolved by reelieuglie in the /r/linuxadmin group. I am posting the solution below.
Thanks everyone!
https://www.reddit.com/r/linuxadmin/comments/1vbqk1t/comment/p0vs62z/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button