Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757525AbcLBMLg (ORCPT ); Fri, 2 Dec 2016 07:11:36 -0500 Received: from mail-ua0-f176.google.com ([209.85.217.176]:36595 "EHLO mail-ua0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750750AbcLBMLe (ORCPT ); Fri, 2 Dec 2016 07:11:34 -0500 MIME-Version: 1.0 From: Dmitry Banschikov Date: Fri, 2 Dec 2016 15:11:32 +0300 Message-ID: Subject: epoll_wait inaccurate timeout To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 652 Lines: 26 Hi! I have a problem caused by inaccurate timeouts in epoll_wait(2). Here are some parts of strace -tt output: 22578 09:33:46.959791 epoll_wait(5, 22578 09:33:50.010794 <... epoll_wait resumed> [], 128, 1498) = 0 ... 22034 09:35:07.686896 epoll_wait(5, 22034 09:35:09.482526 <... epoll_wait resumed> [{EPOLLIN, {u32=151458248, u64=151458248}}], 128, 362) = 1 ... 22036 09:35:41.433241 epoll_wait(5, 22036 09:35:43.176881 <... epoll_wait resumed> [], 128, 97) = 0 In each example epoll_wait is blocked for too longer then asked in timeout. Is it normal? Please CC me. -- Dmitry Banschikov