From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-191015-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 68C1E138350
	for <garchives@archives.gentoo.org>; Sat,  2 May 2020 14:19:41 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 51577E0C4B;
	Sat,  2 May 2020 14:19:36 +0000 (UTC)
Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id D94ADE0C30
	for <gentoo-user@lists.gentoo.org>; Sat,  2 May 2020 14:19:35 +0000 (UTC)
Received: by mail-ot1-x329.google.com with SMTP id g14so4892807otg.10
        for <gentoo-user@lists.gentoo.org>; Sat, 02 May 2020 07:19:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=subject:to:references:from:openpgp:autocrypt:message-id:date
         :user-agent:mime-version:in-reply-to;
        bh=RKPhhKk046kXYzXyKtk9w0qDKpkVpNJLrjvXaM9I+I0=;
        b=sSOqXDALwQCMi4QVU+WOu7Zk+J7KWE+iwrx4DLjNmeoCy7D+ak9UyZaICdOmVrERfA
         CFZl3mp051R1a+AKcxPBcSPaZ2z6Ku6peOztZj2Fre6VFYjmRe/bwT+hVXbksp00/BfR
         Y3VlyZMJvUCXWMD+ocpeRHsQpd3b/WkjVW89S8Q3nK9IngMcGCYGqaZGaYL6opWD6TG1
         rUCEOhyOkRQKKuE/xbuAOnDwbhiG0iD6XZ4pvn4JWsckwkHwvUT9H6NZ8Rfus/V+NpD5
         NHc6qwHsToP0ByWSvjBxy66mjCObE4OAib8z09X/98KwgxNH03bsGmEUtG5HmCC4p3pD
         nQtg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:subject:to:references:from:openpgp:autocrypt
         :message-id:date:user-agent:mime-version:in-reply-to;
        bh=RKPhhKk046kXYzXyKtk9w0qDKpkVpNJLrjvXaM9I+I0=;
        b=kUgakjCbqs73HKbTwGWlR3sr4z5IK1/FlvzPZYLM+lFTRBL73dJnm0dUH8vtt8hext
         7fJ3kZygKqwj1x8i9Rn4QfwhmvL7lzqw75+iB8S1PB//Ns/Z60SRFiJVwuu9U9SX8xZn
         8QPJQlPuWPICsO3hvBn2bcAtNW2Zgbjm2PIF/4csZPjOW2Qxxu7y1neyhU+rqT6D15WC
         q+gXFmZHakEFvCT0aEKRZZ0M/JaJIXHC0OMzBPPs8WrBA/MP7/FOGozH+wvny9Wprtt9
         jgYAcWIiDwa9598PbK9UX8z1iDR2iVVc7scBaa8JdgibVEoJiPdjqtNSnfjnMEHIbG8c
         ZUkg==
X-Gm-Message-State: AGi0Puam6hpcD8Z7iF+lgDdQx4LcRf4VQDXpo+iVtFAcxUfdmguQRZsD
	CPKhznoWZ2F4Vy7YyN1ft38=
X-Google-Smtp-Source: APiQypL4Uy3QobliFxfd+n9HQW0UqiP1BlVjuD/5U4X5MQYBRlylifQ7N6deTsqItIS7AL3N4Oy3cQ==
X-Received: by 2002:a9d:7d85:: with SMTP id j5mr7215068otn.107.1588429174945;
        Sat, 02 May 2020 07:19:34 -0700 (PDT)
Received: from [192.168.0.100] (adsl-074-188-249-136.sip.asm.bellsouth.net. [74.188.249.136])
        by smtp.gmail.com with ESMTPSA id d5sm1691562oom.22.2020.05.02.07.19.33
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Sat, 02 May 2020 07:19:34 -0700 (PDT)
Subject: Re: [gentoo-user] 32GB RAM and Swap
To: gentoo-user@lists.gentoo.org
References: <CAA8stUm80CRFTifyfDd=dRT+3Yrpo6cQO36oWOH93PbEjo0h9Q@mail.gmail.com>
 <3047718.aeNJFYEL58@lenovo.localdomain>
 <ca7a77b3-3d38-283a-e77f-cfe7cd1e92c5@gmail.com>
 <5501031.MhkbZ0Pkbq@lenovo.localdomain>
From: Dale <rdalek1967@gmail.com>
Openpgp: preference=signencrypt
Autocrypt: addr=rdalek1967@gmail.com; prefer-encrypt=mutual; keydata=
 mQINBFxc7MgBEAC+zrgEdqJJiDe/UDAB+ScmferXWfJTVjbVT2T4DQ7jiLrgP9aNUo1HioNF
 mrU3JPOCR32gvZyTbY1+niO5+VSo/+pSqQ785h6ZDj1klMkrg6tEzGnf2MNBpBj4houZwxQ+
 WDKKTg2M9F+lv8wTIdR/JQn+hSviktLMtrghQlyLhpapsLXWLA6gMFebpQYwxUwemvan8ddX
 lQvJe9FGyFYvBi0dp1gl10F2O+DVZJxvX8xkX+yImVlhVJiC31gXHRcj+Qlo7gprlU7TIieF
 Uow6/ZvYKJ26pztVdFCg5w0rMJkF/x8Zd4A6wnuptiAPmWaQ1+YKgYDonbDUgwqFSx5/lN5z
 DGZ4LlioxeUTTPVvZsqBIeDz6jNFA583OYbo1/S26dqrvTFf2DKlsvoDpVfAhNlwJPjoixs0
 X3FNqPv+M10n4kq5Iz7Q9E3O4s/nfFIYGocEslVka7zZPkXSaHbsn+KJlY8XV6qxtCEdh0/V
 XX1+1aU2J74M0JikWhpwxTZ1dP5aOyWSPPEgFFIRW6xwwC02SoRH9a7mggfGYp/YjPlONNaT
 SCL8sgRfvmq3D0XTbLyTjSbExxkfKDmbePQagawDE3TlI/oivHf1JaAcbwMb3LZuU4TGcOIl
 5D+x7q0MUIeCop0ZFOwAnqW3AVVNvsBkv2KN+IHJryWAf0/iMQARAQABtBtEYWxlIDxyZGFs
 ZWsxOTY3QGdtYWlsLmNvbT6JAk4EEwEIADgWIQTZ7suruPBaS60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OVFKX3IA59ApdNRT
 +2x3iCmlvF9MJsGgFq6IpqL+Fk7iWV8Kjbz0wQOId6N9+JdQh3LrLaS7a1PowUm1z9DK5/O0
 Yg+gpDnEOOFI7WM5u7a7FSM2Z/LXGVwel/0eWvLk9tN6
Message-ID: <b1fd611e-2dfc-052a-fa14-85b2f0b0eb0f@gmail.com>
Date: Sat, 2 May 2020 09:19:33 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Firefox/60.0 SeaMonkey/2.53.1
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
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
In-Reply-To: <5501031.MhkbZ0Pkbq@lenovo.localdomain>
Content-Type: multipart/alternative;
 boundary="------------4361930618A07F33B9D02CB2"
X-Archives-Salt: 91e8a8a9-fb0c-4df3-8a15-e505d19cc181
X-Archives-Hash: 93230731469ec49daa17cf66d6d08b67

This is a multi-part message in MIME format.
--------------4361930618A07F33B9D02CB2
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Michael wrote:
> On Saturday, 2 May 2020 10:54:02 BST Dale wrote:
>> Michael wrote:
>>> I'd be interested to know as a comparison if Nikos' and Dale's I/O
>>> unresponsiveness in swapping sees an improvement with the I/O scheduler
>>> for
>>> spinning drives set to bfq; e.g.:
>>>
>>> echo bfq > /sys/block/sda/queue/scheduler
>> This is its setting at the moment. 
>>
>>
>> root@fireball / # cat /sys/block/sda/queue/scheduler
>> noop deadline [cfq]
>> root@fireball / #
> Ahh, you must be on an older kernel?
>
> I'm on 5.4.28 here and these are the new kernel scheduler options:
>
> #
> # IO Schedulers
> #
> CONFIG_MQ_IOSCHED_DEADLINE=y
> CONFIG_MQ_IOSCHED_KYBER=y
> CONFIG_IOSCHED_BFQ=y
> CONFIG_BFQ_GROUP_IOSCHED=y
> # CONFIG_BFQ_CGROUP_DEBUG is not set
> # end of IO Schedulers
>
> The BFQ scheduler has a number of tunable parameters via sysctl, like weight, 
> latency and what not, but unless you're into running endless benchmark tests 
> to tune your particular devices, I'd leave it to do its thing with default 
> settings.
>


Yea, I got new UPS batteries coming which means a complete power down. 
I may upgrade my kernel before doing that.  It slipped my mind so glad
this came up.  I'm on 4.19.40-gentoo but I need to see what is the
latest version nvidia-drivers supports first.  I guess I'll google that
or something. 


>> I know I can echo it in but where do I set that to that when booting? 
> You can set a local script to switch from other schedulers - the default is 
> mq-deadline - or you can disable the others in the kernel.  I don't know if 
> you can pass an option to the kernel line at boot time.
>
> I understand this is more effective with slow(er) spinning drives and perhaps 
> old SSDs.  NVMe drives won't benefit from it and are better run with the 
> default mq-deadline scheduler.


I googled it, it seems it gets added to the kernel line options via
grub2's conf file.  I have another option there too, IOMMU or something
like that. 

Right now, it's off to the tractor and discing up my garden.  So much
rain lately, I'm just now able to get a tractor in it.  New disc is
awesome tho. 

Oh, for future reference:


# cat /etc/sysconfig/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet elevator=cfq"
GRUB_DISABLE_RECOVERY="true"



It's the 2nd line from the bottom.  It may be configurable in menuconfig too. I dunno know yet.  I'll try to look.  Must make note to upgrade kernel.  Batteries will be here Monday.  

Thanks much.  It's on my todo list.

Dale

:-)  :-)  


--------------4361930618A07F33B9D02CB2
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Michael wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:5501031.MhkbZ0Pkbq@lenovo.localdomain">
      <pre wrap="">On Saturday, 2 May 2020 10:54:02 BST Dale wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Michael wrote:
</pre>
      </blockquote>
      <pre wrap="">
</pre>
      <blockquote type="cite">
        <blockquote type="cite">
          <pre wrap="">I'd be interested to know as a comparison if Nikos' and Dale's I/O
unresponsiveness in swapping sees an improvement with the I/O scheduler
for
spinning drives set to bfq; e.g.:

echo bfq &gt; /sys/block/sda/queue/scheduler
</pre>
        </blockquote>
        <pre wrap="">
This is its setting at the moment. 


root@fireball / # cat /sys/block/sda/queue/scheduler
noop deadline [cfq]
root@fireball / #
</pre>
      </blockquote>
      <pre wrap="">
Ahh, you must be on an older kernel?

I'm on 5.4.28 here and these are the new kernel scheduler options:

#
# IO Schedulers
#
CONFIG_MQ_IOSCHED_DEADLINE=y
CONFIG_MQ_IOSCHED_KYBER=y
CONFIG_IOSCHED_BFQ=y
CONFIG_BFQ_GROUP_IOSCHED=y
# CONFIG_BFQ_CGROUP_DEBUG is not set
# end of IO Schedulers

The BFQ scheduler has a number of tunable parameters via sysctl, like weight, 
latency and what not, but unless you're into running endless benchmark tests 
to tune your particular devices, I'd leave it to do its thing with default 
settings.

</pre>
    </blockquote>
    <br>
    <br>
    Yea, I got new UPS batteries coming which means a complete power
    down.  I may upgrade my kernel before doing that.  It slipped my
    mind so glad this came up.  I'm on 4.19.40-gentoo but I need to see
    what is the latest version nvidia-drivers supports first.  I guess
    I'll google that or something.  <br>
    <br>
    <br>
    <blockquote type="cite"
      cite="mid:5501031.MhkbZ0Pkbq@lenovo.localdomain">
      <pre wrap="">
</pre>
      <blockquote type="cite">
        <pre wrap="">I know I can echo it in but where do I set that to that when booting? 
</pre>
      </blockquote>
      <pre wrap="">
You can set a local script to switch from other schedulers - the default is 
mq-deadline - or you can disable the others in the kernel.  I don't know if 
you can pass an option to the kernel line at boot time.

I understand this is more effective with slow(er) spinning drives and perhaps 
old SSDs.  NVMe drives won't benefit from it and are better run with the 
default mq-deadline scheduler.
</pre>
    </blockquote>
    <br>
    <br>
    I googled it, it seems it gets added to the kernel line options via
    grub2's conf file.  I have another option there too, IOMMU or
    something like that.  <br>
    <br>
    Right now, it's off to the tractor and discing up my garden.  So
    much rain lately, I'm just now able to get a tractor in it.  New
    disc is awesome tho.  <br>
    <br>
    Oh, for future reference:<br>
    <br>
    <br>
    <pre># cat /etc/sysconfig/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet elevator=cfq"
GRUB_DISABLE_RECOVERY="true"



It's the 2nd line from the bottom.  It may be configurable in menuconfig too. I dunno know yet.  I'll try to look.  Must make note to upgrade kernel.  Batteries will be here Monday.  

Thanks much.  It's on my todo list.

Dale

:-)  :-)  
</pre>
  </body>
</html>

--------------4361930618A07F33B9D02CB2--