Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5307510imm; Tue, 18 Sep 2018 07:33:41 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbNQRG86ebv4dkjYKLVxKrdELs6c74oXyLtywdkBkiF6A7eASD0iT+B9tpgelbZc/lPZU9/ X-Received: by 2002:a65:5c4b:: with SMTP id v11-v6mr27321706pgr.98.1537281221683; Tue, 18 Sep 2018 07:33:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537281221; cv=none; d=google.com; s=arc-20160816; b=j00rQuJF7Ae+XaeYiBPK/zFaKoe2Poh5p2tKyOO+cIyst+kCVwDKNZr1qA01ATezV5 2s4ZgcY46EunIhnkCmk8YGS8mNpB2IT7rbnz8sAH/Fm+u9uH7/jAd6QGfxeo+WXdhJYX WX6/ts/KvVV+P6EdWggWP2IoqYQ2gPHF7LLbNoG/ImKw0Ql97XmqoOrU5nc3dAwVCaiB kU2LIq0/A+CZQdE5PDIFV+VylLZkvmHAO9NW/VujIeeQmJec5O2BU3vOsCiRdB/6+w9l MGF0GyjBs/tQjypjCDa5dTEZ+uzf7pTqOvo/nOashbVVVLRRK+GfSBgM/Pgd5ywuP6Tc CGhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=iQTxEy0zw9VcyJy3cZZt/dNWg4mfyefS9UixEskZqAw=; b=SzusOdTYHmAH/x0rc7Qkx3VF90bzNAeRXm/tcViRc72n6p8tuumry3CsMQI0XZp77R W6Lss93Ff54ojW3NiWtkocKV58XzwA81s5Aj8PiHloeEV8SHKs2ir7zDiNsVLTarnPT7 uI8FkutPIfWlcuUIorz8kM4HLR925lqJ9pjC0xVIy+RUEMOIoWSMci/BBb0BAzP7wisM HFSI/MWKCTB1EVbDu7brXRdkpnqxVvG86YczCSdg59TuguQYqaItr+gjmQ9uHfr1mNZ7 FfVLxMVJKHMxl8xbFU2+ijSC/Yo0Pt2OUeMQM2XTNbKYxjljhQcbDKSoQdJi70bfeyVJ yc4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a190-v6si19639593pfb.144.2018.09.18.07.33.19; Tue, 18 Sep 2018 07:33:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729907AbeIRUE3 (ORCPT + 99 others); Tue, 18 Sep 2018 16:04:29 -0400 Received: from lithops.sigma-star.at ([195.201.40.130]:36226 "EHLO lithops.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728631AbeIRUE3 (ORCPT ); Tue, 18 Sep 2018 16:04:29 -0400 Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id E0FE3606D4A8; Tue, 18 Sep 2018 16:31:35 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id UDKPOEgKTDit; Tue, 18 Sep 2018 16:31:35 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id A474D606D4A9; Tue, 18 Sep 2018 16:31:35 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 26QZwiyEV1v1; Tue, 18 Sep 2018 16:31:35 +0200 (CEST) Received: from blindfold.localnet (089144196103.atnat0005.highway.a1.net [89.144.196.103]) by lithops.sigma-star.at (Postfix) with ESMTPSA id EA0C1606D4A8; Tue, 18 Sep 2018 16:31:34 +0200 (CEST) From: Richard Weinberger To: Andrew Worsley Cc: Artem Bityutskiy , David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , "open list:UNSORTED BLOCK IMAGES (UBI)" , open list Subject: Re: [PATCH] Round UBI average erase count up to next integer Date: Tue, 18 Sep 2018 16:31:33 +0200 Message-ID: <90432329.iuebBMo885@blindfold> In-Reply-To: <20180918130521.22880-2-amworsley@gmail.com> References: <20180918130521.22880-1-amworsley@gmail.com> <20180918130521.22880-2-amworsley@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andrew, Am Dienstag, 18. September 2018, 15:05:21 CEST schrieb Andrew Worsley: > Use a slightly larger than average EC so these PEBs will be > reinitialised with erase counts that make them less likely to > be reused than other (perhaps less worn or error-prone) PEBs > > We have more frequent ECC failures on reads of page 0 of some PEBs > which manifest itself commonly during ubiattach. We believe this is due to > "program disturb" and want those PEB to be re-used later than average. So the general idea behind the patch is that we want to hold back PEBs that lost the EC header since they must be less healthy than others? More precisely such that this PEB will be less likely picked by find_mean_wl_entry(). Did you check, doesn't this make it more likely that such a "bad" PEB is more often picked by wear leveling? It does not use find_mean_wl_entry(). Thanks, //richard