Re: [gentoo-user] How to set umask for entire Gnome session

2023-04-26 Thread Jorge P . de Morais Neto
Hello,

Em [2023-04-25 ter 20:15:18+0100], Neil Bothwick escreveu:

> Do you have a separate filesystem for /home? If so, the simplest option
> is to set umask in its mount options in fstab. This will affect all
> users, except root, and it won't affect files you write outside of $HOME.

That is not documented in the mount manpage as a filesystem-independet
option; it only shows for specific filesystems, none of which I use.
Anyway, I use Btrfs and I have a separate subvolume for /home.  I have
tried adding umask=077 (later umask=0077) as fstab option and invoking #

# mount -o remount /home

but in both cases it errored out:

mount: /home: mount point not mounted or bad option.
   dmesg(1) may have more information after failed mount system call.

dmesg says:

BTRFS error (device nvme0n1p7: state M): unrecognized mount option 
'umask=077'

Regards

-- 
- Many people hate injustice but few check the facts; this causes more
  injustice.  Ask me about 
- I am Brazilian.  I hope my English is correct and I welcome feedback.
- https://www.defectivebydesign.org
- https://www.gnu.org



[gentoo-user] Re: Activating BMQ CPU Scheduler

2023-04-26 Thread Holger Hoffstätte

On 2023-04-26 18:15, Nikos Chantziaras wrote:

So I wanted to try the BMQ scheduler in gentoo-sources. Is just enabling it in 
the kernel build all that's needed? I did so, booted, and:

   $ dmesg | grep -i bmq
   [    0.100284] sched/bmq: BMQ CPU Scheduler v6.1-r4 by Alfred Chen.

That's all and it's in use now? Or do I need to toggle anything else?


That's all you need to do, right. You can slso alternatively switch to PDS under
the "General setup > Scheduler features" kernel-config menu, which is slightly 
better
for throughput and "more correct" when many tasks have varying priorities - 
beefy
workstation or server.
BMQ is kind of simplistic (in an elegant way), but that's why it is so effective
for low-end systems and desktops.
Run iperf3 over loopback (i.e. both server and client) to see the difference.

cheers
Holger



[gentoo-user] Activating BMQ CPU Scheduler

2023-04-26 Thread Nikos Chantziaras
So I wanted to try the BMQ scheduler in gentoo-sources. Is just enabling 
it in the kernel build all that's needed? I did so, booted, and:


  $ dmesg | grep -i bmq
  [0.100284] sched/bmq: BMQ CPU Scheduler v6.1-r4 by Alfred Chen.

That's all and it's in use now? Or do I need to toggle anything else?




Re: [gentoo-user] Cgroup confusion

2023-04-26 Thread Peter Humphrey
On Tuesday, 25 April 2023 12:08:18 BST Hoël Bézier wrote:
> Hi,
> 
> ># This switch controls whether or not cgroups version 1 controllers are
> ># individually mounted under
> ># /sys/fs/cgroup in hybrid or legacy mode.
> >#rc_controller_cgroups="YES"
> >
> >So, whether or not A or B. How do I translate that into English?
> 
> Gentoo has three cgroups mode: legacy, hybrid and unified. cgroups v1 are
> created in legacy and hybrid modes, cgroups v2 are created in hybrid and
> unified modes.
> 
> So the question here is, when cgroups v1 are created, i.e. in hybrid or
> legacy mode, do you want, yes or no, controllers to be individually mounted
> under /sys/fs/cgroup?
> 
> This parameter has no effect when you are in unified mode, because there
> are no cgroups v1 in this mode, so it makes sense to specify it applies only
> “in hybrid or legacy mode”.

It helps to have done something else for 24 hours, and come back to read it 
again. I think I understand it now, but it could have been written so much 
better.

Actually, I think a bit more structure in the whole file would be a good idea: 
where does one section end and the next begin, for instance?

-- 
Regards,
Peter.