Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2412689yba; Mon, 15 Apr 2019 11:04:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqygoS+2B+dRdCsJqAAZQKBW3rew6a50M4GQi9CCmHn92UZZH6kjhQHrQYIwP2+p3eFFIQz1 X-Received: by 2002:a63:2b41:: with SMTP id r62mr68206819pgr.403.1555351452906; Mon, 15 Apr 2019 11:04:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555351452; cv=none; d=google.com; s=arc-20160816; b=jpiETEWmbKLdgQql5F4yiK+pzpU9oyiTcPQig1hty2rKm6AyE8Ioa6CePV/T2aluHH I8pb7F8ArErE65A1PW5BIhLdLXneIYls4QaeREceWCBzUT3qSwUh/7ttoDGxwCqBDpeu XYbbAK0uqZLMl54ky34dCWhR1OpUXsSj8h8Ssk1FEnQ7z6WHRnytfOEabzBbHFsr5HRh uxNnHyByBaCsRb2/I9nF09HHSI8ChzExHozqaZe8dUytegtdo7dTZhiC5gAGAwzrzl8G cqU8GAn3QrEce+SoXEhvQ9E8OZowJLyWeJElVM3u2uj2VInMSjiJ7hVhK/1dI3xWJcFA bCkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:to:subject :message-id:date:from:mime-version:dkim-signature; bh=CVyL7VHVlcU3RjfkBRhMdYo1FFpfeTAVtBc0iXy+vEQ=; b=YBtnQDITYjcXz15p75laakn5gWsUhLeBhL/OY2svep3A0YtAAn1Lc2lfMEzUpYx0ou m0Z9UVyfuCIF/XHykaLZ0qgZYZJB7ajXIEBUjCTmVoX9sNzBntO4bZ9AAVUECMurQUtU dE3JG3HZ5hg/x+sp/Xy/YtZLRzBLk86oT5D1cOcapH4D9kN6xTwHB8AVoAOBeGhrtKhv hd7ig08PpIjBueFbPy80De7xiyzigTkQjuT6b6/wFX4Bp/3/WG1324FIyeTd2+Q//H6e roLDzmOy7cv9F1BN7+JNDjxBL9ZaYG0B/FrVqq8qvJezLeSHIDDDjVQazAtN9gXrlCJu FlpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="etf/CEY9"; 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 v2si45294506pgh.356.2019.04.15.11.03.55; Mon, 15 Apr 2019 11:04:12 -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="etf/CEY9"; 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 S1727650AbfDOSCy (ORCPT + 99 others); Mon, 15 Apr 2019 14:02:54 -0400 Received: from mail-it1-f195.google.com ([209.85.166.195]:36822 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727256AbfDOSCy (ORCPT ); Mon, 15 Apr 2019 14:02:54 -0400 Received: by mail-it1-f195.google.com with SMTP id y10so28184937itc.1 for ; Mon, 15 Apr 2019 11:02:54 -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 :content-transfer-encoding; bh=CVyL7VHVlcU3RjfkBRhMdYo1FFpfeTAVtBc0iXy+vEQ=; b=etf/CEY9XKkLxVbGn4hLDcgjIL5SSFiDk99+05RGko99KrMPwS8ayVCIOp6WX/unzz 0SWrJFnp/1hkGVv2L1l90GkUOM0Mx41SBxVlyEvzJL8L95HkUX4g9akoOpywchHtq0HA Iq1azHReh+ILOmY9dRpB8n56jC8mqdN6Ricu8YGF59UiBw5Yb2YU3DGsaO/I2QSB+C5C 70Bu7Z5QaQPhl/dAiygv5AQCMmEPkQVIqSg5wld0IgWTdWn6d2pUm/zxDScNYUzyw+sY 8g+K/StNOlSxhxhNWbV+smQMljD8aC1wN17jIA809JYKeCXkL2wgeKiXcnGg75d2uxD0 y/NA== 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 :content-transfer-encoding; bh=CVyL7VHVlcU3RjfkBRhMdYo1FFpfeTAVtBc0iXy+vEQ=; b=ikcCqUP9XXTOb4hB0ZgmrSbTDhxZNp0wD2xMyGPFI/LNgqNRDeaSDNL7KhvdbzIouv rH+5TdkMy5kYSAgFcBTLY9HTVdlbG5k4MyJj6y3EAnFEzGSah2BGaMnhVZJSN03HZ5rQ u9LuZTm89FBiEcA8hc5oGvFINH2awdYR7mvkyWNP1kx8mEtencvuDNY7o0JtDp3Zv6CQ u4usWUf2TmuehCBrZb4A8si9r1qXo3FpbYDOvxU7bbmgmEiUuOZllR2kmSNJJ6Xyys5f 08+XuauqpVzpn61Gr3OBH2vzctFjOWFEC4bFoOErgpZsaFWthElDDjJVEKTnpJMjRi82 Xuiw== X-Gm-Message-State: APjAAAWe5Aj47c85Xj7TNwtkBwtFg2foGbKFqHvC/eXHePHvUKBturc3 go1gQg4AMV/YcCswIHABNA0ijziuRz8decACec0NKYrsQHQ= X-Received: by 2002:a24:4614:: with SMTP id j20mr27366539itb.72.1555351373078; Mon, 15 Apr 2019 11:02:53 -0700 (PDT) MIME-Version: 1.0 From: Omar Kilani Date: Mon, 15 Apr 2019 11:02:42 -0700 Message-ID: Subject: Strange issues with epoll since 5.0 To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi there, I=E2=80=99m still trying to piece together a reproducible test that trigger= s this, but I wanted to post in case someone goes =E2=80=9Chmmm... change X might have done this=E2=80=9D. Basically, something=E2=80=99s broken (or at least, has changed enough to cause problems in user space) in epoll since 5.0. It=E2=80=99s still broken= in 5.1-rc5. It doesn=E2=80=99t happen 100% of the time. It=E2=80=99s sort of hard to pi= n down but I=E2=80=99ve observed the following: * nginx not accepting connections under load * A java app which uses netty / NIO having strange writability semantics on channels, which confuses netty / java enough to not properly flush written data on the socket. I went and tested these Linux kernels: 4.20.17 4.19.32 4.14.111 And the issue(s) do not show up there. I=E2=80=99m still actively chasing this up, and will report back =E2=80=94 = I haven=E2=80=99t touched kernel code in 15 years so I=E2=80=99m a little rusty. :) Regards, Omar