From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D402C158094 for ; Sat, 20 Aug 2022 20:58:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1EEDFE07EE; Sat, 20 Aug 2022 20:58:04 +0000 (UTC) Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 51750E0794 for ; Sat, 20 Aug 2022 20:58:03 +0000 (UTC) Received: by mail-pl1-f169.google.com with SMTP id c2so6837555plo.3 for ; Sat, 20 Aug 2022 13:58:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc; bh=y6VZysRNQuyIha0s+22g1P2MV8XMI995ofvJDh5e6vU=; b=s4g/KkEWkU3RYTAmT93p7fwyyquxg17G7Fb71QrB3jqSMIm6dWzd9UtfyMkQrht0qj 8/wjr80fRLTkI0CeW4vhHTjFjsB6JHdCgcsy4qibt1VNpkG+cEjSzFHYpKoYb+sq7K9W sc10/NbE/E44gRccTYqXfD9Bsxb6ulA4iZqUXwLhWCf6cRLOgfsDGgfAiPm/sS5ij4Pf QI9czW3Lmd6d50cJrDxqY4zrkCt2QToleSCDoaXlfm/lTzM078gmBRCj+ZAhDCGkEpYk 1UIrG1+zBg2TaXTFBK6dw0m/r6aUUN8R8tQkYpIMgQ8PNFR18Qf1++joKo9GYrCVu3NS /kVw== X-Gm-Message-State: ACgBeo1V+wL6HQ/zEEp8PxM9l7kza364dcJJ+F3gyEaKYRG3HiFXlgnZ I/jPkXD/OO9UyqAR3DMi4u6VIPSS15snqSiXZAIm9YPFAZk= X-Google-Smtp-Source: AA6agR5JU3jaU7aRbED9tPooYUIpmrci0ll7+Gr7eJTrYCGhq3fIeNUfdZs+ihGvNouiRPc72X38+nZ/utBE4JMmewg= X-Received: by 2002:a17:902:e54c:b0:171:4b29:d1e with SMTP id n12-20020a170902e54c00b001714b290d1emr13423391plf.39.1661029081542; Sat, 20 Aug 2022 13:58:01 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 References: In-Reply-To: From: Rich Freeman Date: Sat, 20 Aug 2022 16:57:51 -0400 Message-ID: Subject: Re: [gentoo-user] Getting maximum space out of a hard drive To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset="UTF-8" X-Archives-Salt: 2492ed5b-b968-4436-8de2-b64b1afeab93 X-Archives-Hash: 031bedd3ccb05f5da56237ec6304dc09 On Sat, Aug 20, 2022 at 3:15 PM Dale wrote: > > Related question. Does encryption slow the read/write speeds of a drive > down a fair amount? This new 10TB drive is maxing out at about > 49.51MB/s or so. Encryption won't impact the write speeds themselves of course, but it could introduce a CPU bottleneck. If you don't have any cores pegged at 100% though I'd say this isn't happening. On x86 encrypting a hard drive shouldn't be a problem. I have seen it become a bottleneck on something like a Pi4 if the encryption isn't directly supported in hardware by the CPU. 50MB/s is reasonable if you have an IOPS-limited workload. It is of course a bit low for something that is bandwidth-limited. If you want to test that I'm not sure rsync is a great way to go. I'd pause that (ctrl-z is fine), then verify that all disk IO goes to zero (might take 30s to clear out the cache). Then I'd use "time dd bs=1M count=20000 if=/dev/zero of=/path/to/drive/test" to measure how long it takes to create a 20GB file. Oh, this assumes you're not using a filesystem that can detect all-zeros and compress or make the file sparse. If you get crazy-fast results then I'd do a test like copying a single large file with cp and timing that. Make sure your disk has no IO before testing. If you have two processes accessing at once then you're going to get a huge drop in performance on a spinning disk. That includes one writing process and one reading one, unless the reads all hit the cache. -- Rich