From owner-freebsd-stable@freebsd.org Fri Feb 28 15:52:26 2020 Return-Path: Delivered-To: freebsd-stable@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 490E72658FE for ; Fri, 28 Feb 2020 15:52:26 +0000 (UTC) (envelope-from theron.tarigo@gmail.com) Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48TYvX6wt3z4Qh4 for ; Fri, 28 Feb 2020 15:52:24 +0000 (UTC) (envelope-from theron.tarigo@gmail.com) Received: by mail-qk1-x732.google.com with SMTP id q18so3346028qki.10 for ; Fri, 28 Feb 2020 07:52:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=MYH40X0vFBeRb/LiCWUT9hW91eGRBogdzSqjv8jZcr8=; b=MEaKSsBNE28RymPPYBIaFzwBjAvsm5Omi1BPgNV7a3z87YZvsSq3xZNGvvgOAg+C5f 5HGohVFt7rupF8/sdCv6hgmZYskObuDo2ER3vet2u6lW0BxZsNyw53V7z4R3hvPKsXEa hckBmBoP9Ka/DI6cLKky7OWOwkmDcmIArQSrQzHV+T/0Z39acV6Bu9LshOx6RV+ZvBrG L1i8BeBDYovYjPotm9aslUc9iYViYA1Ny91dCneYOJAJ6bRcOFlII/5IYrGcc6XI8wn2 s+2RLsYe50Bv1Q6ySWP+BAmAbE67pWhI47/NK1mzWHiqtxD+lfSotXZPOgSrXXOCnIsF t2tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=MYH40X0vFBeRb/LiCWUT9hW91eGRBogdzSqjv8jZcr8=; b=MsFJT3wAdj/sKkop8CFLQuOpbjDzx6PVkMO5YO0+xPzUYXMlIBwgdBlCafVoVLhJMj DxU1pF+0QGX2Oe6bwXCFMlxLBBffVLkgqa0OLV4a9astrjuYx0Na4f84TTkYiB0PtM2a Eia451RAgtKdiJd1uihdxmeOXslJ7bmt3j1lEgzHa2L3SS24lyi58CkXLtWZLc2U40zu YMN0iGloQ/CBKq5HZZVXAyWfTelT+kpVtT4eR5ICvCno19uavIM04NPDmcJm2PYz0QNB u6eiI5Q/F8WJ7pxBSfsc2XnWA+fjAElkzBa3QHVFbAZGOK6KnpR7Q3AC/artG0mDnpA/ NR5A== X-Gm-Message-State: APjAAAUpE8WQ13vTGV8s3vNp3VJtUf6ppsAsH9/CZyuuALxaFzK8BL6U hyKD2fOBbfQe0eIsPcn4aM7hKkL6 X-Google-Smtp-Source: APXvYqx8AD4a7LoHQ3/f+x8/bhhax2WLGSLo9z17ABjsaa5NMklcelTNyvABTHLXK650DTjwYTpK0w== X-Received: by 2002:a37:4a11:: with SMTP id x17mr5081927qka.379.1582905143548; Fri, 28 Feb 2020 07:52:23 -0800 (PST) Received: from [155.41.29.24] (dhcp-wifi-8021x-155-41-29-24.bu.edu. [155.41.29.24]) by smtp.gmail.com with ESMTPSA id x3sm5347547qts.35.2020.02.28.07.52.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Feb 2020 07:52:23 -0800 (PST) Sender: Theron Tarigo Subject: Re: Running FreeBSD on M.2 SSD To: Mario Olofo , Pete Wright Cc: FreeBSD Stable References: <20200224144602.GA64065@phouka1.phouka.net> <437a5eae-03c8-737d-48bf-39e2e9163d6d@nomadlogic.org> <81ef514d-2575-e9e2-136b-dc79d1c62d74@nomadlogic.org> <5127f890-3e97-4982-1e09-3f9e53ecf6aa@nomadlogic.org> From: Theron Message-ID: Date: Fri, 28 Feb 2020 10:52:22 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 48TYvX6wt3z4Qh4 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=MEaKSsBN; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of therontarigo@gmail.com designates 2607:f8b0:4864:20::732 as permitted sender) smtp.mailfrom=therontarigo@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2.3.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (-9.32), ipnet: 2607:f8b0::/32(-1.88), asn: 15169(-1.67), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Feb 2020 15:52:26 -0000 On 2020-02-28 09:14, Mario Olofo wrote: > Thanks! > > The only thing that I didn't checked was the questions of Theron, about > misaligned data. > The layout of the disk is as follows: > > Disco /dev/sdb: 447,1 GiB, 480113590272 bytes, 937721856 setores > Unidades: setor de 1 * 512 = 512 bytes > Tamanho de setor (lógico/físico): 512 bytes / 512 bytes > Tamanho E/S (mínimo/ótimo): 512 bytes / 512 bytes > Tipo de rótulo do disco: gpt > Identificador do disco: D1725E60-D734-4461-90F8-E9EB2376A65A > > Dispositivo Início Fim Setores Tamanho Tipo > /dev/sdb1 2048 1023999 1021952 499M Windows ambiente de > recuperação > /dev/sdb2 1024000 1228799 204800 100M Sistema EFI > /dev/sdb3 1228800 1261567 32768 16M Microsoft reservado > /dev/sdb4 1261568 532482047 531220480 253,3G Microsoft dados básico > /dev/sdb5 532482048 549257215 16775168 8G FreeBSD ZFS > /dev/sdb6 549257216 937719807 388462592 185,2G Linux sistema de arquivos > > The zfsroot was configured automatically by the installer, so I think that > it align the volume automaticaly right? > > Mario Yes, I don't see any potential alignment issue here.  I would wonder if this drive is misrepresenting its physical sector size, deceiving ZFS and the SATA driver into making small writes that the drive does not actually support, but it looks like you may have already tried the relevant workaround: On 2020-02-27 23:44, Mario Olofo wrote: > Maybe the problem really is a combination of factors, for the person that > filed a bug on bugzilla the fix was setting the quirks 4k and broken_trim, > but for me the real block size is 512bytes and only setting the flag > broken_trim didn't help... > > Mario Did you try 4k quirk ? Theron