From owner-freebsd-net@freebsd.org Fri Sep 11 09:12:47 2015 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 B463CA0044C for ; Fri, 11 Sep 2015 09:12:47 +0000 (UTC) (envelope-from trtrmitya@gmail.com) Received: from mail-la0-x229.google.com (mail-la0-x229.google.com [IPv6:2a00:1450:4010:c03::229]) (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 3B6CF1E7C for ; Fri, 11 Sep 2015 09:12:47 +0000 (UTC) (envelope-from trtrmitya@gmail.com) Received: by lamp12 with SMTP id p12so43296383lam.0 for ; Fri, 11 Sep 2015 02:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=lTjhLWKTlPpHgVs0ZZ1XrfloNADI+bOBmcxJ5n++2/w=; b=XElMI8WDqMLCIZuMJ0o0WGUsgUlm4IP23KsvhoLNdYKlJ65LcPtnQwDHmQWqrYfut9 4H/sgHlegliMnt3hVrk5AFm2OYztUWhQlHNmSqPGOENelvYnr8jgA8SrzTOfryO4/Lk7 KOJHoFTeIa07z1raxhnguJrX1bziylV0mNafoISxX9pO+5jBj5nTGydCGJIYAiOH17lm GjMQrttRbhf9G2gtYuh0O2efKCPGEsJQZGe4puccYhZ5xMD4Cw8DAKn612ULaWYtKw8a J+GTIJLjf+JZN4jsSDalqL+GZ5BWz1yV4fha2vjDw83nFLAx7Dzx2KW5ZPeORPcKLlpe 1Jng== X-Received: by 10.112.13.40 with SMTP id e8mr21304569lbc.82.1441962765130; Fri, 11 Sep 2015 02:12:45 -0700 (PDT) Received: from ?IPv6:2a02:6b8::408:6468:ef0e:8c24:602b? ([2a02:6b8:0:408:6468:ef0e:8c24:602b]) by smtp.gmail.com with ESMTPSA id w3sm99886lag.13.2015.09.11.02.12.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Sep 2015 02:12:43 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: netisr process eats 100% cpu From: Dmitry Sivachenko In-Reply-To: Date: Fri, 11 Sep 2015 12:12:41 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: FreeBSD Net X-Mailer: Apple Mail (2.2104) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Sep 2015 09:12:47 -0000 > On 10 =D1=81=D0=B5=D0=BD=D1=82. 2015 =D0=B3., at 19:45, Dmitry = Sivachenko wrote: >=20 > Hello! >=20 > I am using fresh FreeBSD-10/stable. >=20 > I have a program which establish a TCP connection to server and sends = a lot of small requests over it. > I put haproxy load balancer working in TCP mode in the middle, which = listens some port on localhost. >=20 > Under the relatively low network load (20MB/sec, ~100 kpps), netisr = process starts to consume close to 100% CPU, and does not allow to = utilize more network bandwidth: >=20 > 11 root -72 - 0K 944K CPU27 27 0:34 98.06% = intr{swi1: netisr 0} >=20 > If I do not pass traffic through haproxy but connect directly to = remote server, netisr process consumes 0% CPU and everything works well. >=20 > Is it rather expected or this can be fixed? >=20 > Thanks in advance. Also I want to add that netisr process consume CPU only when TCP client = and haproxy are running on the same host. If I move haproxy to a = separate machine, netisr process does show in top(1) output at all. So this looks weird at least.=