From owner-freebsd-usb@freebsd.org Sun Dec 1 02:53:10 2019 Return-Path: Delivered-To: freebsd-usb@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 86B9C1C3C84 for ; Sun, 1 Dec 2019 02:53:10 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) (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 47QXqT2wScz3Njv for ; Sun, 1 Dec 2019 02:53:08 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-ot1-x332.google.com with SMTP id 77so6850129oty.6 for ; Sat, 30 Nov 2019 18:53:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6eeytcF42T+BwDijZz2e0Cajo2U8TlNqbT/dvBxOgrU=; b=BcasknuO98DHCKP7IB3vJ5lWtxou0TXRbcZoWhwTrlFfBi4UAnLSZNYPyCy6LFC0sn BYinbx8GUWP4X5hx4Lt1MyZWTOJUDcZNrDI43acLwpj4ecBiU80+ofzCBh495pi7aqYS zRlT58uDXRp+TIHGDqprF60RHNPBU8OQcT4tc/weiZZuEEpRWyQ0IF2abYHX+5wNUMOB qi8iW+7uMnYzNJ+drwNfg2h3XtytDk+LSZ8o2TJE7tqe3Gf07XjJktVa5NqHvvNL3QgM fhAOpAuQTDYMm4I6jtiPa27fjsQtno8J3/ZEKpNEEQUOYunI9+ztyo3h/StCqmml9c3K eGZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6eeytcF42T+BwDijZz2e0Cajo2U8TlNqbT/dvBxOgrU=; b=SRAJEe+Fkg+JbzO2RXXYMb4CxKFgSYQZkzOVFARpCzvjQnCPFTUsq3luFZlfiKSnSr eRO4DjdLoD6iQsg7DDO5jkOUm08FU4Gujfutc08vE24tyCdObYbGrkbr5NfDlS/6wtJj RYa652xHyzV0C8XXIoV/8qzdz5C9uTovOtd8avWhmrvrFAbdxcDyyIgphCcJ1SR/X3f2 +W5gY/PmOthUSbA1vY2EvGY2jSnTXTm0dSOgnhUcikNVopzmaO6uMfoCaxSSFZFgBpj9 qYIW4fYcZzGcnVO5tCxbg4nBPTUOR+DPLZhxHdNPtaGbzC0g8HexlcalEopNem8Q+sEI qQ7w== X-Gm-Message-State: APjAAAWebGSA5YU2zrWGL2FngKp8FRv9cUUeiPIBzaMjERHA83ZSPf8m k9Cg7UaZNtSgmtikeQE8+C4/GADS5B4= X-Google-Smtp-Source: APXvYqxBKod5f3gvut3wU207UcgwV5Fm0I50cjB74ANWnYHjPhsSJ0c7+0KIM3sBRc1bVaXbzRGcMw== X-Received: by 2002:a9d:7a93:: with SMTP id l19mr16040547otn.314.1575168786836; Sat, 30 Nov 2019 18:53:06 -0800 (PST) Received: from mail-oi1-f179.google.com (mail-oi1-f179.google.com. [209.85.167.179]) by smtp.gmail.com with ESMTPSA id o4sm9257292ota.57.2019.11.30.18.53.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 30 Nov 2019 18:53:06 -0800 (PST) Received: by mail-oi1-f179.google.com with SMTP id a124so5674523oii.13 for ; Sat, 30 Nov 2019 18:53:05 -0800 (PST) X-Received: by 2002:aca:5cc4:: with SMTP id q187mr3772263oib.45.1575168785296; Sat, 30 Nov 2019 18:53:05 -0800 (PST) MIME-Version: 1.0 References: <20191130223322.1028feab.freebsd@edvax.de> <20191130234900.81464b43.freebsd@edvax.de> <20191201050341.4a02879a@asd2> In-Reply-To: <20191201050341.4a02879a@asd2> From: Tomasz CEDRO Date: Sun, 1 Dec 2019 03:52:50 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: pendrive clone impossible ? To: Anatoly Cc: "freebsd-usb@FreeBSD.org" , Polytropon Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 47QXqT2wScz3Njv X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=BcasknuO; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::332) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-3.84 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; DMARC_NA(0.00)[cedro.info]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; RCVD_IN_DNSWL_NONE(0.00)[2.3.3.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]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[]; IP_SCORE(-2.54)[ip: (-8.48), ipnet: 2607:f8b0::/32(-2.25), asn: 15169(-1.94), country: US(-0.05)] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Dec 2019 02:53:10 -0000 On Sun, Dec 1, 2019 at 3:03 AM Anatoly wrote: > I've had a problem in the past with one of the first 32GB pendrives. > Not quite similar problem, but may it be buggy RAM cache > implementation too? What if: > - Write sector(s) > - usbconfig -d . power_off > - usbconfig -d . power_on > - Read and compare. > > As you saying some writes was succeful, some not. May it > depend not on source of that bytes or their content, but on time passed > between write and read? > > It turns out that Transcend pendrive I've got in 2010 had RAM cache > (didn't remember exact cache size I measured out, as I remember > something around 128K-512K), and all writes was cached. This amazingly > speeds up random R/W fs operations in comparation with similar > pendrives of those years, but I constantly losing the data and getting > fs corrupted when used it with OSes that do not "power_off" or > "suspend" that drive before I pull of it out of the socket. The first pendrive is physically smaller Kingston slower and more expensive. The second Kingston (the one with write problems) is physically bigger 30% cheaper and a bit faster (50% read, 10% write, but not as advertised 2x read, 4x write). If its cheaper and faster then Kingston is bullshitting their clients. Also one of their workers admitted that they have various vendors of flash controllers and different firmware among them. so their products looks more like a lottery. Not cool. Thank you Anatoly! It looks then like a pendrive faulty tricky design to fool users with exaggerated read/w/rite speeds. -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info