영업 뛰다가 온, 남들과 조금 다른 주니어 개발자

영업하면서 배운 고객 중심적 사고, 비즈니스 통찰력 등을 총동원해서 서비스를 개발하고 있습니다. 영업 경험이 개발하는 과정에서 큰 역할을 하더라구요, 즐겁게 개발하고 있습니다!

Computer Science/컴퓨터 세팅에 필요한 팁!

[맥 m2] CPU 엄청 차지하는 qemu-system-x86_64 삭제하기

브윗 2024. 12. 30. 09:35

제 CPU 사용량의 174%까지 차지하는.. 이 나쁜 qemu-system-x86_64..

사진에선 171%로 찍혔네요..

 

 

도대체 무엇인가..? 싶어 찾아보니

 

qemu-system-x86_64는 QEMU 가상화 소프트웨어의 일부로, x86_64 아키텍처를 에뮬레이션하는 프로그램이라고 합니다.

CPU 점유율이 150%를 넘는 것은 비정상적으로 높은 수치래요ㅠㅠ

 

이런 높은 CPU 사용률은 다음과 같은 원인으로 발생할 수 있다고 합니다

  1. 가상 머신 내부에서 실행 중인 프로세스의 문제
  2. QEMU 설정 문제
  3. 호스트 시스템의 리소스 부족

 

참고로 저는 오라클 데이터베이스 소프트웨어를 맥 m2 에 설치하려고 하니,
colima 와 docker 를 설치해야 했고,
이 과정에서 qemu 가 있어야만 colima 를 시작할 수 있더라구요ㅠㅠ
왜냐면 오라클은 애플실리콘을 지원을 안해서.. x86_64 아키텍처에서 오라클을 구동할 수 있기 때문에, x86_64의 도커 이미지를 받아야 하고, 그 과정에서 가상머신이 필요했기 때문입니다ㅠㅠ

그랬기 때문에 저는 오라클 DB가 필요한 상황이라 qemu-system-x86_64를 원래는 지웠다가 다시 깔게 됐어요ㅠ 슬픈 현실

 

 

 

 

어쨌든! 

qemu가 너무 많은 CPU를 잡아먹는 문제가 발생하는 분들!

삭제해버리고 싶으신 분들!

 

 

아마 이 문제가 발생하는 분들,,, homebrew 다들 깔려있으실거예요! (왜냐면 brew install qemu 로 설치하셨을 것으로 예상됨)

터미널에서 명령어로 qemu를 삭제해줍니다!

brew remove qemu 

 


아래는 제 터미널에 실행한 모습!

 

   ~  brew remove qemu

Uninstalling /opt/homebrew/Cellar/qemu/9.2.0... (166 files, 669.5MB)

==> Autoremoving 27 unneeded formulae:

capstone

dtc

gettext

glib

gmp

gnutls

jpeg-turbo

libevent

libidn2

libpng

libslirp

libssh

libtasn1

libunistring

libusb

mpdecimal

ncurses

nettle

p11-kit

pixman

python-packaging

python@3.13

readline

snappy

sqlite

unbound

vde

Uninstalling /opt/homebrew/Cellar/libpng/1.6.44... (28 files, 1.3MB)

Uninstalling /opt/homebrew/Cellar/ncurses/6.5... (4,052 files, 9.9MB)

Uninstalling /opt/homebrew/Cellar/pixman/0.44.2... (10 files, 655.6KB)

Uninstalling /opt/homebrew/Cellar/libslirp/4.8.0... (12 files, 412.4KB)

Uninstalling /opt/homebrew/Cellar/vde/2.3.3... (67 files, 1.3MB)

Uninstalling /opt/homebrew/Cellar/capstone/5.0.3... (31 files, 22.4MB)

Uninstalling /opt/homebrew/Cellar/dtc/1.7.2... (19 files, 627KB)

Uninstalling /opt/homebrew/Cellar/snappy/1.2.1... (19 files, 172.2KB)

Uninstalling /opt/homebrew/Cellar/libssh/0.11.1... (25 files, 1.4MB)

Uninstalling /opt/homebrew/Cellar/libusb/1.0.27... (23 files, 620.5KB)

Uninstalling /opt/homebrew/Cellar/jpeg-turbo/3.0.4... (45 files, 3.4MB)

Uninstalling /opt/homebrew/Cellar/gnutls/3.8.4... (1,293 files, 10.8MB)

 

Warning: The following gnutls configuration files have not been removed!

If desired, remove them manually with `rm -rf`:

  /opt/homebrew/etc/gnutls

  /opt/homebrew/etc/gnutls/cert.pem

Uninstalling /opt/homebrew/Cellar/libidn2/2.3.7... (81 files, 1MB)

Uninstalling /opt/homebrew/Cellar/nettle/3.10... (96 files, 2.7MB)

Uninstalling /opt/homebrew/Cellar/glib/2.82.3... (504 files, 36.3MB)

Uninstalling /opt/homebrew/Cellar/unbound/1.22.0... (59 files, 6MB)

 

Warning: The following unbound configuration files have not been removed!

If desired, remove them manually with `rm -rf`:

  /opt/homebrew/etc/unbound

  /opt/homebrew/etc/unbound/unbound.conf

Uninstalling /opt/homebrew/Cellar/p11-kit/0.25.5... (31 files, 4.2MB)

Uninstalling /opt/homebrew/Cellar/gmp/6.3.0... (22 files, 3.3MB)

Uninstalling /opt/homebrew/Cellar/python-packaging/24.2... (56 files, 491.3KB)

Uninstalling /opt/homebrew/Cellar/python@3.13/3.13.1... (3,269 files, 65.3MB)

Uninstalling /opt/homebrew/Cellar/gettext/0.23... (2,052 files, 22.4MB)

Uninstalling /opt/homebrew/Cellar/libtasn1/4.19.0... (62 files, 720.8KB)

Uninstalling /opt/homebrew/Cellar/libevent/2.1.12_1... (58 files, 2.2MB)

Uninstalling /opt/homebrew/Cellar/mpdecimal/4.0.0... (22 files, 641.2KB)

Uninstalling /opt/homebrew/Cellar/libunistring/1.3... (59 files, 5.4MB)

Uninstalling /opt/homebrew/Cellar/sqlite/3.47.2... (12 files, 4.9MB)

Uninstalling /opt/homebrew/Cellar/readline/8.2.13... (51 files, 1.7MB)

 

 

이렇게 잘 지워졌답니다!

 

 

만약 잘 지워졌는지 확인하려면, 아래 명령어를 터미널에 입력해보세요!

만약 아래의 명령어를 입력했을 때 아무것도 뜨지 않는다면 아주 잘 지워진 것!

brew list | grep qemu

 

 

활성 상태 보기에서 봐도 깔끔하게 사라졌네요! ㅎㅎ

 

그치만 이제 Code Helper 가 엄청나게 차지하고 있는 슬픈 현실.. ㅠㅠ

 

 

참고로 저렇게 Code Helper 가 여러 개 찍히면서 엄청나게 CPU 차지하고 있는 이유는 Cursor AI 때문이랍니다.. ^^ 

처음엔 VS code 때문인가 싶어서 VS code 아예 싹 다 지웠는데에도 계속 남아있어서 알아보니.. Cursor AI 때문이었어요.

 

Cursor AI는 Visual Studio Code를 기반으로 만들어진 독립적인 코드 에디터입니다!

따라서 VS Code를 삭제했더라도 Cursor AI가 남아있는 경우, Code Helper 가 저렇게 엄청나게 차지하고 있답니다ㅠ

 

Cursor AI에서 발생하는 높은 CPU 사용률 문제는 여러 사용자들이 보고한 알려진 이슈라고 하더라구요!

 

특히 "Code Helper" 프로세스가 여러 개 실행되면서 과도한 CPU 자원을 사용하는 경우가 많습니다... ㅠㅠ

 

 

일단 저는 Cursor 무료 버전을 모두 써버렸기 떄문에 일단 Cursor 를 아예 다 삭제하려고 해요!

괜히 VS code 만 다 지웠음 ㅠ

 

 

 

개발자 할 생각 없었던 옛날의 저.. 깡통 맥북 샀다가 엄청나게 후회하고 있는 저입니다..

어쨌든 다들 qemu 잘 지우셔서 광명 찾길 바라요..

 

그럼 다들 안녕!