Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NvJrv-00069v-Po for qemu-devel@nongnu.org; Fri, 26 Mar 2010 20:27:15 -0400 Received: from [140.186.70.92] (port=53948 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvJru-000694-FV for qemu-devel@nongnu.org; Fri, 26 Mar 2010 20:27:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NvJrt-0005Wz-8e for qemu-devel@nongnu.org; Fri, 26 Mar 2010 20:27:14 -0400 Received: from mail-yx0-f191.google.com ([209.85.210.191]:35909) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvJrt-0005Wq-5w for qemu-devel@nongnu.org; Fri, 26 Mar 2010 20:27:13 -0400 Received: by yxe29 with SMTP id 29so1013783yxe.4 for ; Fri, 26 Mar 2010 17:27:12 -0700 (PDT) MIME-Version: 1.0 From: Alexandre Muller Date: Fri, 26 Mar 2010 21:26:52 -0300 Message-ID: <94c7bce31003261726v21f14bf7w3632d8e9afc360f4@mail.gmail.com> Content-Type: multipart/alternative; boundary=0016368e32f74fc37e0482bd5722 Subject: [Qemu-devel] Multi process. using threads in qemu List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --0016368e32f74fc37e0482bd5722 Content-Type: text/plain; charset=ISO-8859-1 Hi Qemu developers, I use the Qemu emulator for years, and recently I experienced things that made me think. Specially in how to speed up the emulator (for example if I have a 32 bit x86 with 2 ou more processors emulating 64 bit processor). First I noticed that even my virtual machine was very slow, my others applications were fine. Making top I saw that qemu consumes 100% of CPU, but I have 2 processors. Using a multithread app, is consumes 200%. So I think there is a way to double speed of emulation with some hack. I looked a little at qemu source code and I really have no Idea about the high level functionality of it. I think if I could find a main loop of "instructions execution" I can call thread for each processor and makes the control properly. Lets go to questions that I have to do: 1 - The is a known discussion about it? 2 - There is a patch or a dirty and quick way to do it? (I not worried about safety) Thanks for attention Alexandre --0016368e32f74fc37e0482bd5722 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Qemu developers, I use the Qemu emulator for years, and recently I exper= ienced things that made me think. Specially in how to speed up the emulator= (for example if I have a 32 bit x86 with 2 ou more processors emulating 64= bit processor).

First I noticed that even my virtual machine was very slow, my others a= pplications were fine. Making top I saw that qemu consumes 100% of CPU, but= I have 2 processors. Using a multithread app, is consumes 200%. So I think= there is a way to double speed of emulation with some hack. I looked a lit= tle at qemu source code and I really have no Idea about the high level func= tionality of it. I think if I could find a main loop of "instructions = execution" I can call thread for each processor and makes the control = properly.

Lets go to questions that I have to do:
1 - The is a known discussio= n about it?
2 - There is a patch or a dirty and quick way to do it? (I n= ot worried about safety)

Thanks for attention
Alexandre
--0016368e32f74fc37e0482bd5722--