Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MbcAg-0007I8-Er for qemu-devel@nongnu.org; Thu, 13 Aug 2009 11:24:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MbcAb-000777-EK for qemu-devel@nongnu.org; Thu, 13 Aug 2009 11:24:53 -0400 Received: from [199.232.76.173] (port=51180 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbcAb-00076f-77 for qemu-devel@nongnu.org; Thu, 13 Aug 2009 11:24:49 -0400 Received: from mail-bw0-f220.google.com ([209.85.218.220]:42124) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MbcAb-0007sg-0h for qemu-devel@nongnu.org; Thu, 13 Aug 2009 11:24:49 -0400 Received: by bwz20 with SMTP id 20so995256bwz.9 for ; Thu, 13 Aug 2009 08:24:46 -0700 (PDT) MIME-Version: 1.0 Date: Thu, 13 Aug 2009 11:24:46 -0400 Message-ID: <77e29ea90908130824s44378704qde600ea247dd0855@mail.gmail.com> From: Jiang Wang Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] A problem about network throughput List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi: I am working on a project using QEMU to emulate a special device which sends out the data automatically without a driver. I modified the rtl8139 NIC and it works OK with low speed (<=16KB/s) . However, if the throughput becomes 32KB/s or above, the guest OS will hang (no response). If I use the original rtl8139.c, the throughput is around 1MB/s. So I expect that my modified version should have the similar throughput. The guest OS is CentOS 5.3 and the host is CentOS5.3 64bit. I use qemu_mod_timer to send out the data periodically. In the timer function, it calls rtl8139_transmit() multiple times to send out data. The timer interval is 1 sec. I have tried to increase the size of one packet but it does not work. I suspect that the timer function may take too long to finish and cause the problem but I am not sure. Any suggestions? Regards, Jiang