From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755787AbbCMO56 (ORCPT ); Fri, 13 Mar 2015 10:57:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50238 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754275AbbCMO5z (ORCPT ); Fri, 13 Mar 2015 10:57:55 -0400 Message-ID: <5502FAA1.6000206@redhat.com> Date: Fri, 13 Mar 2015 15:56:33 +0100 From: Paolo Bonzini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Jason Baron , Fam Zheng CC: linux-kernel@vger.kernel.org, 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)" , 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> <5501AA6B.2020209@akamai.com> <20150313113122.GA7427@ad.nay.redhat.com> <5502F857.6050505@akamai.com> In-Reply-To: <5502F857.6050505@akamai.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 13/03/2015 15:46, Jason Baron wrote: > > The throttling algorithm computes a duration for the next IO, which is used to > > arm a timer in order to delay the request a bit. As timers are always rounded > > *UP* to the effective granularity, the timeout being 1ms in epoll_pwait is just > > too coarse and will lead to severe inaccuracy. With epoll_pwait1, we can avoid > > the rounding-up. > > right, but we could use the timerfd here to get the desired precision. Fam, didn't you see slowdowns with few file descriptors epoll_ctl+epoll_wait+timerfd compared to ppoll? Do they disappear or improve with epoll_ctl_batch and epoll_pwait1? Paolo