title: Why qemu-system-x86_64 (android emulator) is still running
body: <p>I am using android studio with VM. After running some emulators I noticed that I still have a process named <code>qemu-system-x86_64</code> running which occupies 1.9GB of my RAM (I am running the emulator with software support only). </p>
  
  <p>I know that the emulator after invoked it's independent of android studio so that make sense up to a level but I am not running any emulator now.<br>
  I checked <a href="https://unix.stackexchange.com/a/66311">this answer</a> to see if I can shutdown my emulator but I don't have any VM appearing:</p>
  
  <pre><code>virsh list
  </code></pre>
  
  <p>Also, running:</p>
  
  <pre><code>ps aux | grep qemu-system-x86
  </code></pre>
  
  <blockquote>
    <p>gorfani+ 10055  0.0 12.6 6988716 2055984 ?     Sl   Oct09   0:30
    /home/gorfanidis/Android/Sdk/emulator/qemu/linux-x86_64/qemu-system-x86_64
    -netdelay none -netspeed full -avd Pixel_2_API_28   </p>
  </blockquote>
  
  <p>reveals that I was using <em>Pixel_2_API_28</em>.</p>
  
  <p>I want to run an emulator with different API so the previous one should be shutdown.</p>
  
  <p>So, a few question arise:</p>
  
  <ul>
  <li>Why the process is still running while I don't see any emulator running. Is this a hung emulator or something? If it's just the already saved-state emulator shouldn't this release it's resources?</li>
  <li>Is it safe to kill this process? Would it harm my emulator? I know it's no big deal and could reinstall the emulator but sometimes it's convenient to continue where I left last time.</li>
  <li>How should I deal with VM of this kind. Shouldn't <code>virsh</code> reveal something or am I mixing things up here?</li>
  </ul>