From owner-freebsd-questions@freebsd.org Sun Jan 26 13:15:23 2020 Return-Path: Delivered-To: freebsd-questions@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 77B1D23DC98 for ; Sun, 26 Jan 2020 13:15:23 +0000 (UTC) (envelope-from peo@nethead.se) Received: from ns1.nethead.se (ns1.nethead.se [5.150.237.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "ns1.nethead.se", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 485CzZ2RNwz41m7 for ; Sun, 26 Jan 2020 13:15:21 +0000 (UTC) (envelope-from peo@nethead.se) X-Virus-Scanned: amavisd-new at Nethead AB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nethead.se; s=NETHEADSE; t=1580044511; bh=cJfUmIVzStGBRpC+RIasagi9JTJn1jvVVG8I1r/mqbQ=; h=Subject:To:References:From:Date:In-Reply-To; b=iGX4uH3nx0p16wvOq6k++h/WFRuIK7m9iJSxAKWBL1Z88uQ4vCQ0+VjnBm800nHWz WCSDaBIcJO4LMH2eIpEIIn2lJTUPsya8eRpnNzrqxO1+D/RH1hDjcir+Uv7L2QK855 Bc9REX3NcOYRxujz3tE3iAN/DIBgdu8no51oKicc= Subject: Re: FreeBSD 12.1 sysctl optimization for Web server To: freebsd-questions@freebsd.org References: From: Per olof Ljungmark Organization: Nethead AB Message-ID: <7e124169-8911-b1ec-2e34-9c9d472c0ffa@nethead.se> Date: Sun, 26 Jan 2020 14:15:04 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 485CzZ2RNwz41m7 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nethead.se header.s=NETHEADSE header.b=iGX4uH3n; dmarc=pass (policy=none) header.from=nethead.se; spf=pass (mx1.freebsd.org: domain of peo@nethead.se designates 5.150.237.139 as permitted sender) smtp.mailfrom=peo@nethead.se X-Spamd-Result: default: False [-4.82 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(0.00)[nethead.se:s=NETHEADSE]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(0.00)[+ip4:5.150.237.139]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; HAS_ORG_HEADER(0.00)[]; BAD_REP_POLICIES(0.10)[]; DKIM_TRACE(0.00)[nethead.se:+]; URIBL_PBL(0.01)[calomel.org]; DMARC_POLICY_ALLOW(0.00)[nethead.se,none]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-2.83)[ip: (-9.71), ipnet: 5.150.192.0/18(-4.86), asn: 8473(0.48), country: SE(-0.03)]; ASN(0.00)[asn:8473, ipnet:5.150.192.0/18, country:SE]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jan 2020 13:15:23 -0000 On 2020-01-25 13:33, Handreas wrote: > Hi everyone. > > Could you please have a look at the following sysctl.conf optimisation of > mine on a FreeBSD 12.1 box that'll be running only on the purpose of web > serving with a good amount of traffic, PHP-FPM, Nginx and MariaDB, with > 10Gbe NIC card, 2 Gbit Up/Down connection: > > https://pastebin.com/TWL6DfFP > > The priority here is, stable Nginx connections/requests, and fast enough. > The server has enough hardware specs, carrying 64GB ddr4 ram and a Xeon > cpu. > > Any suggestions, additions would be much appreciated. > Hi, I've had good results from reading https://calomel.org/freebsd_network_tuning.html and TUNING(7) possibly derived from https://wiki.freebsd.org/SystemTuning Good luck. Per