From owner-freebsd-net@freebsd.org Wed Sep 27 13:53:05 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4DA54E04B2B for ; Wed, 27 Sep 2017 13:53:05 +0000 (UTC) (envelope-from bhargava.marreddy@broadcom.com) Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DE82673FC2 for ; Wed, 27 Sep 2017 13:53:04 +0000 (UTC) (envelope-from bhargava.marreddy@broadcom.com) Received: by mail-wm0-x236.google.com with SMTP id q124so18569318wmb.0 for ; Wed, 27 Sep 2017 06:53:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:thread-index:date:message-id :subject:to; bh=Rde6tyYiFdoe6Yf/YLbnAb2nBi/egbkOXqpq4vqimBw=; b=hQNsZL0add7JiTYWHQyJw923wbBRczCBzqERM35a8n58qIKqe/4TH7g2DkWg8xKEDr 7UOY+jUz4QtqrCIb5zSqZd92uTKSjYB6QzNvVE5mh6aJWNN0jbhUgY4aCKOHhCaTj9F3 nlYhW3UiNvIOPJhh3AQ9BWkDsdNli211pSADLzIErtPD1aNdvomQJCgWXEf8/P1JXeZf ddWPtxRzJY5K/pNsDJNHcSvBBe2cdoQInI/yEMldQr3T/U0kJYF99aMA8oYV5bjinKO6 MfRFsrgR1xED00Ul8iI3D1YIu0YwApYSscY2JC4uomz5K1B78B/gIqAhZ7ByblaPp1+r n/Ag== X-Gm-Message-State: AHPjjUi4qVFhq16+E2bun222sABrf+Owqi8f3qEnqEXZu3iLb6W8KJyG whfL2khh997j+NNosd8AJoseL58lZakrWsCSNPQfXQ== X-Google-Smtp-Source: AOwi7QDolRdpGqsUVpyC08nUK0oJcFrWzXJ7jS2tIrxRKau1Jx9OgeGbsVzPw6lEbQyJGI7tS/RwaTQdpCPtaN6IUPw= X-Received: by 10.28.134.18 with SMTP id i18mr413084wmd.27.1506520383047; Wed, 27 Sep 2017 06:53:03 -0700 (PDT) From: Bhargava Chenna Marreddy MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AdM3l5mv6mJ+jLhKSDKlWFLtF1vXTg== Date: Wed, 27 Sep 2017 19:23:01 +0530 Message-ID: <56aaecf133c6b3e8ea0e4bd10f6241ca@mail.gmail.com> Subject: FreeBSD 12.0: IRQ pinning is not working as expected with cpuset To: freebsd-net@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Sep 2017 13:53:05 -0000 Hi, Can some please guide me in configuring IRQ pinning for Network driver? Looks like IRQ pinning is not working as expected with cpuset command. This is what I=E2=80=99m doing .. 1. Identify the IRQ number on rxq0 # vmstat -i | grep rxq0 irq271: bnxt0:rxq0 2 0 2. Read the current affinity mask: #cpuset -g -x 271 irq 271 mask: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 3. Set CPU2 for IRQ 271 # cpuset -l 2 -x 271 4. Make sure by reading back .. # cpuset -g -x 271 irq 271 mask: 2 5. Start TCP traffic, interrupts will be coming into IRQ 271 (rxq0) but different CPU will be processing then (but not CPU 2). As per =E2=80=98top =E2=80=93P=E2=80=99, cpu 2 is 100% free and different c= pu is ~100% busy. Thanks, Chenna.