Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp833667ybb; Sat, 28 Mar 2020 11:14:18 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtOu3Y+cWxzzmf6AL6/P3Qq1tIXJHB5i1j2/bYl7On01/Ysq7BsQ+KgRgvASIJr02xYpC30 X-Received: by 2002:a9d:340b:: with SMTP id v11mr3519210otb.14.1585419258693; Sat, 28 Mar 2020 11:14:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585419258; cv=none; d=google.com; s=arc-20160816; b=HQO9iTTFgyWwjpDv/IThKDROMO41UaYMVS9Y+bfstWi21JYXEKFuOkKjjIN3TzVFxG io7XQLbzLMHScuo9BHyjTeftvh7/g9jMohmRZsdLlkNnOts8iirs6MiZHsfFIQCCcEWb ARJBzg+TPBKQv4csh/B1cPgA1hrsi4Q9T49k/mwDnfNe06EzjUonF2of564/m1SnlulI xEXGKH8w43tyjaAL9nIjNH66kMK2nDLCRtLXJ311zjnoMzb5iu+66GkSaAoVVvcGyzRQ sWGVcx9GDwqEUBaeaGcTVxCIJlOyEmDpZfKtvo7mYu5gacy9Mln88RDoEAQqjSe6q/Dt uwjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :mime-version:dkim-signature; bh=+YZxsPbDfbTvVgTH0HDYH7I/GL19/iF9GQHFSWLmIBw=; b=bsZjy+oq3oSj3S8csh0O9K52PdLsLNJfet1Pt/O1NCYb7JqtYQaEOHJIQPNYUeknnL k03QUwG8axae6A9lSChlM5scjf064/7TQ+Hu38Kgc/NOHQx6X3n7eY3bnr6jbUnnURct xVdOJMYhRDR/tQyuEHc47OhkQtUYD3px4I2/3W3NEiziJw6XtZKQuTUiMCcSnNP/7pq5 yWQyEI/pp0e2vCErRvorJtv80LCA+7km32VNrBYDt6RanXVNRQPZe4CtW1GI59e9wMUv jMAsMEose8+6/z/4vMkVSVxQz6Csb8Bt8eeVJpF58SigqQt1vGPHUjLr3mw/R6Z8LXPV Jfig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=o4RIFLxF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r71si3881795oie.265.2020.03.28.11.14.04; Sat, 28 Mar 2020 11:14:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=o4RIFLxF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726604AbgC1SKk (ORCPT + 99 others); Sat, 28 Mar 2020 14:10:40 -0400 Received: from mail-ot1-f49.google.com ([209.85.210.49]:39392 "EHLO mail-ot1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725807AbgC1SKk (ORCPT ); Sat, 28 Mar 2020 14:10:40 -0400 Received: by mail-ot1-f49.google.com with SMTP id x11so13458420otp.6 for ; Sat, 28 Mar 2020 11:10:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=+YZxsPbDfbTvVgTH0HDYH7I/GL19/iF9GQHFSWLmIBw=; b=o4RIFLxFkz3KrsoLX3a2xu1JmUKvrZLBOuCPqqxM7CF3PMSyzBm7PYu4PNkRNsyaAN pvpei2GoiO5e616tuJas/nRtCseC+2fZQt6fgYYc478b6jGQztimvhEcWzEtbZa9XyWO wX32NrRyS6U03F5A+JW9f9sM6HD0wIX/pPY0JnWWuCsodW2bTX/4RbV42HMtEBXqX6dE mrMLGTydE/PZH2fAJ5RVfq+prBhl30DuPMwYryD341dKzdh1c1ikro0mdkyEqPA9pgEG oQGjSpre+BRMbKYopgFdQYNE3VuGGrDnw9Rrv+v143T7qaAmAYvdfKceOVLsI/Qy4SSR 5soQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=+YZxsPbDfbTvVgTH0HDYH7I/GL19/iF9GQHFSWLmIBw=; b=KkQGTmTn6RJ0r1rv34mEPpxugsqLo6/6145pL7iLxXtxXy8gRRjIHdNzADJl1EIyDH 9yE2/OrCuD9+3UD5vCm1GunIo2vcVBqDapbLVo1ZmMjpHka59EDd4OANinkPe6/Fc+Hg frlf/z1XnqmvhyZ8xc7EMBsHFDaZJvpH+oeSTYq3f+Op5HwByVuMVvIt+6aq9g7JjslD QDwX4YBkbLFoXlmmMp7StzdZdwQzdniYR1izkqP95uGejsqHU/IvfmGD17j82A5klViF qWiK5HjdD7GCG0VrzgWl1nVbFudc6KKJagywxahEprw5ipMjPcVysH2s5xWFgrRh8ylO FowQ== X-Gm-Message-State: ANhLgQ01QZ5IlmemOsawq5GgDc9DHMf7CL0CERUWNwOPGARKmklnNyPG sDcq+cpC3z5SHSruNhijgo5rwte1i2fazfPa5DCEthZlIU4= X-Received: by 2002:a4a:d746:: with SMTP id h6mr4090800oot.21.1585419039477; Sat, 28 Mar 2020 11:10:39 -0700 (PDT) MIME-Version: 1.0 From: Omar Kilani Date: Sat, 28 Mar 2020 11:10:28 -0700 Message-ID: Subject: Weird issue with epoll and kernel >= 5.0 To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi there, I've observed an issue with epoll and kernels 5.0 and above when a system is generating a lot of epoll events. I see this issue with nginx and jvm / netty based apps (using the jvm's native epoll support as well as netty's own optimized epoll support) but *not* with haproxy (?). I'm not really sure what the actual problem is (nginx complains about epoll_wait with a generic error), but it doesn't happen on 4.19.x and lower. I thought it was a netty problem at first and opened this ticket: https://github.com/netty/netty/issues/8999 But then saw the same issue in nginx. I haven't debugged a kernel issue in something like 20 years so I'm not really sure where to start myself. I'd be more than happy to provide my test case that has a very quick repro to anyone who needs it. Also happy to provide a VM/machine with enough CPUs to trigger it easily (it seems to happen quicker with more CPUs present) to test with. Thanks! Regards, Omar