Date: Tue, 30 May 2023 20:57:35 +0200 From: Kira <nyakov13@gmail.com> To: questions@freebsd.org Subject: Re: read and write back full disk to trigger relocation Message-ID: <57872865-4512-4B27-9848-4B6AC1EDC880@gmail.com> In-Reply-To: <20230530162513.GK1030@lena.kiev> References: <a111b6a7-0bf8-d3b9-9611-a7fbf36635b3@artem.ru> <1957739901.520492.1685310340560@ichabod.co-bxl> <20230530162513.GK1030@lena.kiev>
next in thread | previous in thread | raw e-mail | index | archive | help
------RV0BWXF6DJ3QGOD2LAJ2QSV5SKLL5M Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable No, SSDs have entirely different behaviour, you just lover SSD life by doin= g so=2E SSDs automatically refresh decaying data=2E To be sure you may want to rea= d all of it like so: dd if=3D/dev/ssddev of=3D/dev/null bs=3D1m 30 =D0=BC=D0=B0=D1=8F 2023 =D0=B3=2E 18:25:13 GMT+02:00, Lena@lena=2Ekiev= =2Eua =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >> From the dd(1) manpage: >>=20 >> Do a refresh of a disk drive, in order to prevent presently recove= rable >> read errors from progressing into unrecoverable read errors: >>=20 >> dd if=3D/dev/ada0 of=3D/dev/ada0 bs=3D1m >>=20 >> That won't trigger relocation, but it will refresh the decaying data=2E > >Would that be useful for SSD? > ------RV0BWXF6DJ3QGOD2LAJ2QSV5SKLL5M Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><head></head><body><div dir=3D"auto">No, SSDs have entirely different= behaviour, you just lover SSD life by doing so=2E<br><br>SSDs automaticall= y refresh decaying data=2E To be sure you may want to read all of it like s= o:<br><br>dd if=3D/dev/ssddev of=3D/dev/null bs=3D1m<br></div><br><br><div = class=3D"gmail_quote"><div dir=3D"auto">30 =D0=BC=D0=B0=D1=8F 2023 =D0=B3= =2E 18:25:13 GMT+02:00, Lena@lena=2Ekiev=2Eua =D0=BF=D0=B8=D1=88=D0=B5=D1= =82:</div><blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0= =2E8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> <pre class=3D"k9mail"><blockquote class=3D"gmail_quote" style=3D"margin: 0= pt 0pt 1ex 0=2E8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"><di= v dir=3D"auto">From the dd(1) manpage:<br><br> Do a refresh of a disk d= rive, in order to prevent presently recoverable<br> read errors from pr= ogressing into unrecoverable read errors:<br><br> dd if=3D/dev/ad= a0 of=3D/dev/ada0 bs=3D1m<br><br>That won't trigger relocation, but it will= refresh the decaying data=2E<br></div></blockquote><div dir=3D"auto"><br>W= ould that be useful for SSD?<br><br></div></pre></blockquote></div></body><= /html> ------RV0BWXF6DJ3QGOD2LAJ2QSV5SKLL5M--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?57872865-4512-4B27-9848-4B6AC1EDC880>