From nobody Sun Nov 6 22:44:34 2022 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N58Z111Btz4hLGv for ; Sun, 6 Nov 2022 22:44:41 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4N58Z00ccHz3lWk for ; Sun, 6 Nov 2022 22:44:39 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.16.1) with ESMTPS id 2A6MiZEt022863 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 6 Nov 2022 23:44:35 +0100 (CET) (envelope-from wojtek@puchar.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=puchar.net; s=default; t=1667774676; bh=9WvrN7I8W+xPMvhE9PQt0Wr3ccHnl3uYjo6W7w2t9N4=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=AWQU+sZ60Cqz3sySakuQeeDWq6neFb8+grUEZdCCGXY6p3pFhooLOp3YP46nF+4pU lCspMfEjhv1rsVViIYwQaCc0VA2cuMcIN7bqhX/8W7I6fSFyxKdZN/Bm8O/cJ+O+MQ zkhNxv3gxOd1f/kUdGX/bw86AlOt2WBiUcxWbTV0= Received: from wojtek.intra (localhost [127.0.0.1]) by wojtek.intra (8.16.1/8.16.1) with ESMTP id 2A6MiZuh039420; Sun, 6 Nov 2022 23:44:35 +0100 (CET) (envelope-from wojtek@puchar.net) Received: from localhost (wojtek@localhost) by wojtek.intra (8.16.1/8.16.1/Submit) with ESMTP id 2A6MiYRF039417; Sun, 6 Nov 2022 23:44:34 +0100 (CET) (envelope-from wojtek@puchar.net) X-Authentication-Warning: wojtek.intra: wojtek owned process doing -bs Date: Sun, 6 Nov 2022 23:44:34 +0100 (CET) From: Wojciech Puchar To: Warner Losh cc: freebsd-hackers@freebsd.org Subject: Re: SSD - trim fails In-Reply-To: Message-ID: <16589dc-a890-579-c523-db92be5335ce@puchar.net> References: <8a5a1943-6b3-92fd-17c-473c5b13436@puchar.net> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 4N58Z00ccHz3lWk X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=puchar.net header.s=default header.b=AWQU+sZ6; dmarc=none; spf=pass (mx1.freebsd.org: domain of wojtek@puchar.net designates 194.1.144.90 as permitted sender) smtp.mailfrom=wojtek@puchar.net X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[puchar.net:s=default]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[puchar.net:+]; RCVD_COUNT_THREE(0.00)[3]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_SOME(0.00)[]; DMARC_NA(0.00)[puchar.net]; HAS_XAW(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N > Next, maybe the drive is lying the size of the DSM it will support, but again, this is a weird > message to report a request that's too long with. > > Maybe it doesn't support queued DSM, despite all appearances to the contrary from its > identify tables. Try setting the trem method to DSM_TRIM: > # sysctl kern.cam.ada.0.delete_method=DSM_TRIM > should do the trick. At the very least, that will change the command we send so if it can't this works. but not from /boot/loader.conf i put it in /etc/rc at beginning so it for sure is done before doing first trim. thank you