From owner-freebsd-net@freebsd.org Thu Jan 16 01:43:03 2020 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A682F2246FD for ; Thu, 16 Jan 2020 01:43:03 +0000 (UTC) (envelope-from jjasen@gmail.com) Received: from mail-vs1-xe32.google.com (mail-vs1-xe32.google.com [IPv6:2607:f8b0:4864:20::e32]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47yn5L6J81z4HZW for ; Thu, 16 Jan 2020 01:43:02 +0000 (UTC) (envelope-from jjasen@gmail.com) Received: by mail-vs1-xe32.google.com with SMTP id g15so11711333vsf.1 for ; Wed, 15 Jan 2020 17:43:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=yp3zCGkP25oQvK21VE3Y+QWm0K39ynYvLsZpijkiC2o=; b=I81c5MqSxkaupimtAUxR5yQJ1VeTJ/qz00Y2kDJeaMrnRpFr1RP3pu0A7tlwe0Ld8l urPhgkGiInF2BPoFeyptxS0PBK7JFM763P+vomituBRrov2/N24nhfUA5cvO1c8MGceg YVtikKraLFWAnSWcQIyRt7soKWo4aX4xR7KBkx+NHj5NdlV0TIOc6AM1wr5vi8kcZ9l9 qf0slP4SxGUQKR3wgPWPbfxkVFO89dknbJZQmKyC+kBVkHXzSeZMoDY6RvjTyVDDi2Za bi0UNGQAj6hU+ELjfc1602h20uzHFpnYDmqTcj26TkmGI/Lf2bjutvm73jYqP8Ldh4sK c4RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=yp3zCGkP25oQvK21VE3Y+QWm0K39ynYvLsZpijkiC2o=; b=NcKLyEMDX32LP7OkMBVjixP6bwPpsh/97m2v0HMvPPmfuvihssz4+dKrif7KVirLOe iSq3+rYZ7ZXCY/2GDRS6CvB+1XZNJ1AyCZHQSHqUfQFRDJQGMfM0QII/kmMxCLrt0fBT hnDGE5eL3zT7fqlOoJ/4gWsE9UChzVMbOevB1DbnOVrBSMjWphj+Nrf84PWZ0xwFoWBo LfrQH9tCod9/D+9I+JC4S5hysQeSrWbYAGyrir3BhEiodvBcRSSOCot/50Dv2Deok1zu vEPsNKCox9Gq2+cp0f47xfdESym0SiBB0r+9BCVotcumD/eAu3L4iVB5Y0XjqE2Tr3Pb pB+g== X-Gm-Message-State: APjAAAXeBO1TchqveGH46fUuum1JHkKzkRopmjK3OBHcpGxvTokp+v16 tia+WVqcgB+y8M1VNvjtBxhJrTo/UWiOI0tAXvQ= X-Google-Smtp-Source: APXvYqypYUvK2hmS2kOCuGzLp3/7eJEAnn2m4DK8GgBJmpUxG5PAIfoydBsSEWNo0EnnTGaF+N6k7X/xOnuc1/z1MuA= X-Received: by 2002:a67:3145:: with SMTP id x66mr46939vsx.157.1579138981729; Wed, 15 Jan 2020 17:43:01 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: John Jasen Date: Wed, 15 Jan 2020 20:42:50 -0500 Message-ID: Subject: Re: unexplained latency, interrupt spikes and loss of throughput on FreeBSD router/firewall system To: Navdeep Parhar , FreeBSD Net X-Rspamd-Queue-Id: 47yn5L6J81z4HZW X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=I81c5MqS; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of jjasen@gmail.com designates 2607:f8b0:4864:20::e32 as permitted sender) smtp.mailfrom=jjasen@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; URI_COUNT_ODD(1.00)[1]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-9.54), ipnet: 2607:f8b0::/32(-2.09), asn: 15169(-1.83), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2.3.e.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jan 2020 01:43:03 -0000 On Wed, Jan 15, 2020 at 5:24 PM Navdeep Parhar wrote: > On 1/15/20 6:55 AM, John Jasen wrote: > > Executive summary: > > > > Periodically, load will spike on network interrupts on one of our > > firewalls. Latency will quickly climb to the point that things are > > unresponsive, sessions will timeout, and bandwidth will plummet. > > Is this with 9000 MTU? Can you please post "netstat -m" from this > system? 25683/15822/41505 mbufs in use (current/cache/total) 8190/8340/16530/2038296 mbuf clusters in use (current/cache/total/max) 8190/8255 mbuf+clusters out of packet secondary zone in use (current/cache) 2576/293/2869/1019147 4k (page size) jumbo clusters in use (current/cache/total/max) 540546/1917/542463/10000000 9k jumbo clusters in use (current/cache/total/max) 0/0/0/169857 16k jumbo clusters in use (current/cache/total/max) 4898018K/39060K/4937079K bytes allocated to network (current/cache/total) 0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters) 0/0/0 requests for mbufs delayed (mbufs/clusters/mbuf+clusters) 0/0/0 requests for jumbo clusters delayed (4k/9k/16k) 0/53561/0 requests for jumbo clusters denied (4k/9k/16k) 0 sendfile syscalls 0 sendfile syscalls completed without I/O request 0 requests for I/O initiated by sendfile 0 pages read by sendfile as part of a request 0 pages were valid at time of a sendfile request 0 pages were requested for read ahead by applications 0 pages were read ahead by sendfile 0 times sendfile encountered an already busy page 0 requests for sfbufs denied 0 requests for sfbufs delayed > Assuming this is 9000 MTU, try setting this in > /boot/loader.conf and reboot: > > hw.cxgbe.largest_rx_cluster=4096 > We're already there. > > > We do not see increases in ethernet pause frames, drops, errors, or > > anything else like that from the system. > > This part is strange. The incoming frames are either being dropped > (errors or overflows) or getting throttled via pause frames. I'd have > expected "netstat -dI " to show errors or drops or "sysctl dev.cc > dev.cxl | grep pause" to show some activity. Can you please double check? > After a prior event on a firewall cluster, I started pushing pause frames and netstat drops/errors to elasticsearch. They remained constant and unchanging during this incident. I checked again, and they're still a flat line. > > Regards, > Navdeep > Thanks! >