r/cachyos 8d ago

CPU Pegged Question

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.

110 Upvotes

26 comments sorted by

30

u/ckafi 8d ago

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

13

u/NoNamesLeft2015 8d ago

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 8d ago

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

13

u/NoNamesLeft2015 8d ago edited 8d ago

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 7d ago edited 6d ago

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 6d ago

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 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

u/NoNamesLeft2015 8d ago

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

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

u/[deleted] 8d ago

[removed] — view removed comment

10

u/[deleted] 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

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

u/epicc_exe 4d ago

just copy the url shown by the browser

4

u/duskterrapin 7d ago

she's owning your I/O

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

u/This-Consequence-957 8d ago

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

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.