From owner-freebsd-stable@freebsd.org Thu Apr 5 15:18:15 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 82BCEF8CFCE for ; Thu, 5 Apr 2018 15:18:15 +0000 (UTC) (envelope-from eugene@zhegan.in) Received: from elf.hq.norma.perm.ru (mail.norma.perm.ru [IPv6:2a00:7540:1::5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.norma.perm.ru", Issuer "Vivat-Trade UNIX Root CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id EE19F812ED for ; Thu, 5 Apr 2018 15:18:14 +0000 (UTC) (envelope-from eugene@zhegan.in) Received: from bsdrookie.norma.com. (asterisk.enaza.ru [91.237.76.254]) by elf.hq.norma.perm.ru (8.15.2/8.15.2) with ESMTPS id w35FICC3037338 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 5 Apr 2018 20:18:12 +0500 (YEKT) (envelope-from eugene@zhegan.in) Subject: Re: TRIM, iSCSI and %busy waves To: FreeBSD-STABLE Mailing List References: <92b92a3d-3262-c006-ed5a-dc2f9f4a5cb9@zhegan.in> From: "Eugene M. Zheganin" Message-ID: <0e408973-375e-9489-77c5-b2bd2e2d1a87@zhegan.in> Date: Thu, 5 Apr 2018 20:18:12 +0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Spamd-Result: default: False [-998.10 / 25.00] WHITELISTED_IPS(-999.00)[91.237.76.254] AUTH_NA(1.00)[] RCVD_COUNT_TWO(0.00)[2] MID_RHS_MATCH_FROM(0.00)[] DMARC_NA(0.00)[zhegan.in] FROM_EQ_ENVFROM(0.00)[] ARC_NA(0.00)[] ASN(0.00)[asn:57973, ipnet:91.237.76.0/24, country:RU] FROM_HAS_DN(0.00)[] R_SPF_NA(0.00)[] TO_MATCH_ENVRCPT_ALL(0.00)[] TO_DN_ALL(0.00)[] MIME_GOOD(-0.10)[multipart/alternative, text/plain] RCPT_COUNT_ONE(0.00)[1] RCVD_TLS_ALL(0.00)[] R_DKIM_NA(0.00)[] IP_SCORE(0.00)[ip: (-9.89), ipnet: 91.237.76.0/24(-7.82), asn: 57973(-4.89), country: RU(0.12)] X-Rspamd-Server: localhost X-Rspamd-Scan-Time: 0.62 X-Rspamd-Queue-ID: w35FICC3037338 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2018 15:18:15 -0000 Hello, On 05.04.2018 20:00, Warner Losh wrote: > > I'm also having a couple of iSCSI issues that I'm dealing through > bounty with, so may be this is related somehow. Or may be not. Due > to some issues in iSCSI stack my system sometimes reboots, and > then these "waves" are stopped for some time. > > So, my question is - can I fine-tune TRIM operations ? So they > don't consume the whole disk at 100%. I see several sysctl oids, > but they aren't well-documented. > > > You might be able to set the delete method. Set it to what ? It's not like I'm seeing FreeBSD for the first time, but from what I see in sysctl - all of those "sysctl -a | grep trim" oids are numeric. > > P.S. This is 11.x, disks are Toshibas, and they are attached via > LSI HBA. > > > Which LSI HBA? > A SAS9300-4i4e one. Eugene. Thanks.