Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp21958ybk; Tue, 12 May 2020 14:10:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwryJqSTmno1tFQt4gT/9V8H/woYflLFndVgd86dHaxga2ZRgz2JyglwCl+pt5OuTHBP1JD X-Received: by 2002:a17:906:bcd3:: with SMTP id lw19mr10592917ejb.276.1589317821439; Tue, 12 May 2020 14:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589317821; cv=none; d=google.com; s=arc-20160816; b=A1lLgy6/98bJh485mKm4uDfJVLqJ2DDsRFHw7ihzOy9VT1P6ySteL8nbgd/GzfTo3T BgsmK4EZMiG3TdPVhBCN7zdwaQF/eiihdwnPYx05dsv/VTmar8qD/oXkTPeNzQ1zZRqS g7oddg19z1kKWBJLcrIfp6pV/fjg8Hd7oEN+uwir0qpBRLhsxYGbvgI2Twn9ucPM23v8 UDPMF4IAI21BRkyuzF65d+Vv2HVQ+pJBw7IU3r4Cuy32Jc+28iQlxTUKCSrwTtUwM2Vy Gkxpsq9t0A1BcOwzZo9lR1vr8DUlb40kVWE706b+sg3DifeKQDwIUojUywsa/hRN/diA k90w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from:reply-to :in-reply-to:references:mime-version:dkim-signature; bh=QrdeiwPOaLeiQU5fVLZhQO3+YcM1zVUJBdHK2z33Hn0=; b=QSbk1Nk1pIgCTWtZq5L2tiyQIE5tzNabYWBf3rYwClBD4YQyfPASS2yG6Dn5t6DVbL CJm0mLHwHeU9/EboQT0AWQPGbE9znjQmPlSmTbkbh9PVAfw2x9TSAop7kx5KuqJ+vwHu /TOs0TZEap41cwQvhM7oS1ljV2Zg/jOBgYVw4gYKZwupEoWrdTxtvOhusk+uJVT4lJlk 2yf/DVYRS4j1f712NPwe1SDqEi3TBVnxWX97+AaLi0iHBhSQtFGrN0gVefumo3ERucbS iluYvy/tSPSsrlkUAWh0117t4z11OJj7GXsarlqELon+ns/rVzvZkQMzzrvcUw3s+L7p znFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DO8q2KqQ; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h10si4849993edz.368.2020.05.12.14.09.49; Tue, 12 May 2020 14:10:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DO8q2KqQ; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728379AbgELVJa (ORCPT + 99 others); Tue, 12 May 2020 17:09:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726324AbgELVJ3 (ORCPT ); Tue, 12 May 2020 17:09:29 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BEB2C061A0C for ; Tue, 12 May 2020 14:09:29 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id u20so5037687ljo.1 for ; Tue, 12 May 2020 14:09:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to; bh=QrdeiwPOaLeiQU5fVLZhQO3+YcM1zVUJBdHK2z33Hn0=; b=DO8q2KqQVqQLFjuGKD4BpbJRaQFKmPwZzNaBCFWjis4v37INkz57upQu27wtscekTY n3HeJnTT4QWQIql32ZkczMjhpG15jTB9hVjdGZw7wvMYKcV5W6xr83wWNRkR84zqTI5/ fO7B1tr88hC/9TW6q8GREX8k67hilNiiuE9949TgCryIDKQ+spT72W0tha+ghnnQUhDV vWNq8AssrsXNDfbssranYt9f/RZ2uuCrfcjKzcDRMYpYc3zcq/6p6aA2n6zHPkfRnk2Q Yiifjt3ygorWVJ9yVkCzuq55UJMAtIndSYlzZmJKint5H9M31/i0uIGqDOBqBF8jnKFd 32yQ== 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:reply-to :from:date:message-id:subject:to; bh=QrdeiwPOaLeiQU5fVLZhQO3+YcM1zVUJBdHK2z33Hn0=; b=onshTcFdl8D65y+c+hsQcoyjJx5f6nbP+DMPOM867IhBVG0qmRid1qabWpH1cG9fN6 3a5GcFM6lz8N8AZe8avMtFjarTMDN9e/Nwhfepg43VPt0dblPOepkXdSIW8s3gqLKC9N IzXqsB1fTdsEu2Yg+spOBxTdt/dwjP+gSS88ZIdTbwifD5KrldqsPnoxkB4qjffG9LzK FpBGU1cvj4sURuukt4HTCYKlTIqvm2XVasvyU0IXk2m01PrwYlvuPueTQJo9GT6DnEAH s7+9Pq7k6Hi7scUc7iMRHiSzVqP+OffPOOQMym/raM8AkxrPsHEJ5RtP0+X0BkWAZAbD 1/SQ== X-Gm-Message-State: AOAM531FWNE9PTBXwsiEmeHVWNR3FOPyGN8sFwsegP/CrTUOv3OPxbTX f4IXGGCCxR1glXRyIZOzo+ExSg6Tc0xz2yDjBpWGbm1G X-Received: by 2002:a2e:80c1:: with SMTP id r1mr14290816ljg.227.1589317767796; Tue, 12 May 2020 14:09:27 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Reply-To: julio.lajara@alum.rpi.edu From: Julio Lajara Date: Tue, 12 May 2020 17:08:51 -0400 Message-ID: Subject: Reducing ext4 fs issues resulting from frequent hard poweroffs To: linux-ext4@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hi all, I currently manage an IOT fleet based on Intel NUCs running Ubuntu 18.04 Server on SSDs with etx4, no swap. The device usage is more CPU bound than I/O bound and we are having some issues keeping a subset of devices running due to them being hard powered off in the field in some regions (sometimes as frequently as every 12hrs). Due to current difficulties in getting devices back from the field I'm looking into tweaking them as best as possible to survive these hard power off barring any physical SSD issues. Currently I have tried tweaking some ext4 and I/O settings with the following: * kernel options: elevator=noop fsck.mode=force fsck.repair=yes * fstab ext4 specific mount options: commit=1,max_batch_time=0 Are there any other configuration settings or changes to the above that would make sense to try here for this use case? I am hoping to at least make the fsck repair the last line of defence so it doesnt get stuck waiting for a prompt to repair it at boot, but want to try to change the I/O / ext4 behavior if possible so its writing as frequently as sanely possible to try to reduce the frequency where fsck is actually needed. Thanks,