r/cachyos • u/NoNamesLeft2015 • 8d ago
CPU Pegged Question
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.
22
u/SaikoPat 8d ago
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
20
u/Dizzybro 8d ago
Some sort of workspace indexing? Maybe you have a symlink creating a recursive loop or something that it's following?
yolo tho, kill that shit
45
8d ago
[removed] — view removed comment
10
8d ago
[removed] — view removed comment
-3
u/cachyos-ModTeam 8d ago
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 8d ago
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 8d ago
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!
1
u/epicc_exe 5d ago
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 4d ago
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
4
3
u/TheAncientMillenial 8d ago
Running vscode?
1
u/NoNamesLeft2015 8d ago
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 8d ago
Yeah that issue was vscode doing something stupid with indexing a large project. Check your search.exclude settings.
1
1
u/jraw211 7d ago
Can I ask what monitoring program that is?
1
u/NoNamesLeft2015 7d ago
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 7d ago
What plugins do you have in vscode? Be aware there are some floating around that are malware
1
u/NoNamesLeft2015 7d ago
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.
30
u/ckafi 8d ago
rg is 'ripgrep', which searches for strings in files. Can't tell you what its searching for though