On Sat, 25 Oct 2025 18:12:23 +0200, Didier wrote in message
<91fd869e-308f-409c-9191-3dcbbfb393a7@???>:
> Le 24/10/2025 à 23:34, Arnt Karlsen a écrit :
> > On Wed, 22 Oct 2025 17:45:02 +0200, Didier wrote in message
> > <7f96e87f-77a3-487f-8fc5-144ca46b198e@???>:
> >
> >> Le 22/10/2025 à 15:44, Didier Kryn a écrit :
> >>> It is possible to disable the current process' swapping
> >>> programmatically.
> >
> > ..from the 'man niceload' 'OPTIONS' section:
> >
> > --noswap
> > -N No swapping. If the system is swapping both in and out
> > it is a good indication that the system is memory
> > stressed.
> >
> > --noswap is over limit if the system is swapping both
> > in and out.
> >
> > --noswap will set both --start-noswap and run-noswap.
> >
> >
> My humble understanding is that this is not a per-process
> action, but it acts on the whole system. I'd like to be mistaking,
> which would prove one can act on this through /proc<process-id>
..I found htop output easier to read, and judging from my testing,
-N either does the --noswap thing per-process, or it does a very
good smooth slick Oscar-worthy job of fakeing it.
..feel free to compare the slightly annoying stuttering from: ...
cputool -c 125 -l 19 -- nice -n 19 chromium --disable-machine-id \
--disable-remote-extensions --disable-crashpad \
--disable-crash-reporter --enable-webgl-draft-extensions \
--enable-webgl2-compute-context --enable-unsafe-swiftshaderC \
--ignore-gpu-blocklist & # (and load it down e.g. with a few
dozen youtube videos.)
...with the smooth slick Oscar-worthy fake (or real?) joy from:
niceload -L 18 -n 19 -M 6G -N -q chromium --disable-machine-id \
--disable-remote-extensions --disable-crashpad \
--disable-crash-reporter --enable-webgl-draft-extensions \
--enable-webgl2-compute-context --enable-unsafe-swiftshaderC \
--ignore-gpu-blocklist & # and then: cputool -c 125 -l 17 \
--pid-pgrp $PID-of-the-top-pid-of-the-chromium-process-group
or as root: cpulimit -e chromium -l 75 -c 1 -b
..
http://127.0.0.1/cgi-bin/dwww/usr/share/doc/chromium/README.Debian
has sage advice on trying to stay up-to-date on command-line flags...
https://peter.sh/experiments/chromium-command-line-switches/
..2 good old Dell Precision M4400 with 2 core Intel(R) Core(TM)2
Duo CPU T9600 (and a T9400), 8GB ram and a 8GB swapfile on an old
PNY CS900 120GB SSD running daedalus on the 6.12.43+deb12-rt-amd64
kernel, the T9400 is still on chimaera and spins a wee 186GB disk.
..with newer hardware, you'll probably find my throttle-settings
fairly conservative. ;o)
> OTOH, I have checked that calling mlockall() does actually lock
> memory pages, and also that it does not survive execve() -- as can be
> checked with 'grep VmLck /proc/<process-id>/status' . Therefore, my
> understanding is that the daemon must either call mlockall() itself
> or run inside an environment where swapping is disabled for all
> processes.
>
> -- Didier
--
..med vennlig hilsen = with Kind Regards from Arnt Karlsen
...with a number of polar bear hunters in his ancestry...
Scenarios always come in sets of three:
best case, worst case, and just in case.