From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755440AbbCLPCL (ORCPT ); Thu, 12 Mar 2015 11:02:11 -0400 Received: from prod-mail-xrelay02.akamai.com ([72.246.2.14]:43035 "EHLO prod-mail-xrelay02.akamai.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754098AbbCLPCH (ORCPT ); Thu, 12 Mar 2015 11:02:07 -0400 Message-ID: <5501AA6B.2020209@akamai.com> Date: Thu, 12 Mar 2015 11:02:03 -0400 From: Jason Baron User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: Fam Zheng , linux-kernel@vger.kernel.org CC: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Alexander Viro , Andrew Morton , Kees Cook , Andy Lutomirski , David Herrmann , Alexei Starovoitov , Miklos Szeredi , David Drysdale , Oleg Nesterov , "David S. Miller" , Vivek Goyal , Mike Frysinger , "Theodore Ts'o" , Heiko Carstens , Rasmus Villemoes , Rashika Kheria , Hugh Dickins , Mathieu Desnoyers , Peter Zijlstra , linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, Josh Triplett , "Michael Kerrisk (man-pages)" , Paolo Bonzini , Omar Sandoval , Jonathan Corbet , shane.seymour@hp.com, dan.j.rosenberg@gmail.com Subject: Re: [PATCH v4 0/9] epoll: Introduce new syscalls, epoll_ctl_batch and epoll_pwait1 References: <1425952155-27603-1-git-send-email-famz@redhat.com> In-Reply-To: <1425952155-27603-1-git-send-email-famz@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/09/2015 09:49 PM, Fam Zheng wrote: > > Benchmark for epoll_pwait1 > ========================== > > By running fio tests inside VM with both original and modified QEMU, we can > compare their difference in performance. > > With a small VM setup [t1], the original QEMU (ppoll based) has an 4k read > latency overhead around 37 us. In this setup, the main loop polls 10~20 fds. > > With a slightly larger VM instance [t2] - attached a virtio-serial device so > that there are 80~90 fds in the main loop - the original QEMU has a latency > overhead around 49 us. By adding more such devices [t3], we can see the latency > go even higher - 83 us with ~200 FDs. > > Now modify QEMU to use epoll_pwait1 and test again, the latency numbers are > repectively 36us, 37us, 47us for t1, t2 and t3. > > Hi, So it sounds like you are comparing original qemu code (which was using ppoll) vs. using epoll with these new syscalls. Curious if you have numbers comparing the existing epoll (with say the timerfd in your epoll set), so we can see the improvement relative to epoll. Thanks, -Jason