From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18078 invoked from network); 8 Jul 2021 19:26:53 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 8 Jul 2021 19:26:53 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 8BCEA9CAFB; Fri, 9 Jul 2021 05:26:50 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 05CE99CA4A; Fri, 9 Jul 2021 05:25:49 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 6C45D9CA4A; Fri, 9 Jul 2021 05:25:45 +1000 (AEST) Received: from sdaoden.eu (sdaoden.eu [217.144.132.164]) by minnie.tuhs.org (Postfix) with ESMTPS id B208F9C901 for ; Fri, 9 Jul 2021 05:25:44 +1000 (AEST) Received: from kent.sdaoden.eu (kent.sdaoden.eu [10.5.0.2]) by sdaoden.eu (Postfix) with ESMTPS id E888216056; Thu, 8 Jul 2021 21:25:40 +0200 (CEST) Received: by kent.sdaoden.eu (Postfix, from userid 1000) id 8291711CBD; Thu, 8 Jul 2021 21:25:38 +0200 (CEST) Date: Thu, 08 Jul 2021 21:25:38 +0200 Author: Steffen Nurpmeso From: Steffen Nurpmeso To: Derek Fawcus Message-ID: <20210708192538.jpOvc%steffen@sdaoden.eu> In-Reply-To: References: <20210704004757.GB24671@tau1.ceti.pl> <20210705071450.GA12885@tau1.ceti.pl> <20210706231659.GA13225@tau1.ceti.pl> <20210707183222.GA9897@tau1.ceti.pl> <6b736f82-97ed-4e51-9652-e672be4e2c66@localhost> <20210708064652.GA19675@tau1.ceti.pl> Mail-Followup-To: Derek Fawcus , tuhs@minnie.tuhs.org User-Agent: s-nail v14.9.22-170-g4fc3932ea4 OpenPGP: id=EE19E1C1F2F7054F8D3954D8308964B51883A0DD; url=https://ftp.sdaoden.eu/steffen.asc; preference=signencrypt BlahBlahBlah: Any stupid boy can crush a beetle. But all the professors in the world can make no bugs. MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [TUHS] Overgrown ffox (was: The Unix shell: a 50-year view) X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tuhs@minnie.tuhs.org Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" Derek Fawcus wrote in : |On Thu, Jul 08, 2021 at 08:46:53AM +0200, Tomasz Rola wrote: |> On Wed, Jul 07, 2021 at 08:50:51PM +0000, Michael Kj=F6rling wrote: |>> On 7 Jul 2021 20:32 +0200, from rtomek@ceti.pl (Tomasz Rola): |>>> An excerpt from my ps: |>>>=20 |>>> xxxon 12331 12.5 20.4 5898360 2519640 ? TNsl Mar29 18278:11 \ |>>> firefox-esr |>>=20 |>> I'm going to stick my neck out here by saying that the VSZ and RSS |>> values reported by ps, at least for Firefox, are largely meaningless. | |Or does it depend upon the OS? From a mac instance: ... |So there are defintitly issues in mapping the current use of various types |of memory to a simple display format. Another thing is that, when i used it, Mac command line tools did not take care about exit status (as in "succeed though they should not") or know about job signals. But it is not only Mac, take iwd again, iwctl('s display handling) definetely is buggy in respect to handling of SIGCONT after a TSTP. (Ie the screen starts scrolling line-wise but no display is ever refreshed.) Regarding the thing, here this seems pretty much fine for RSS. root 1454 0.0 0.0 7912 2480 ? S 21:03 0:00 /bin/bas= h /x/pub/box-web.sh browse firefox root 1456 0.0 0.0 3012 2032 ? S 21:03 0:00 /usr/bin= /doas -u steffen /box.firefox steffen 1457 0.0 0.0 2384 700 ? S 21:03 0:00 /bin/sh = - /box.firefox steffen 1458 31.2 3.7 3029004 299700 ? Sl 21:03 0:04 firefox = --no-remote steffen 1545 4.0 1.3 2421200 108196 ? Sl 21:03 0:00 /usr/lib= /firefox/firefox-bin -contentproc -childID 1 -isForBrowser -prefsLen 1 -pre= fMapSize 244806 -parentBuildID 20210614221319 -appdir /usr/lib/f steffen 1583 2.2 1.1 2412124 89636 ? Sl 21:03 0:00 /usr/lib= /firefox/firefox-bin -contentproc -childID 2 -isForBrowser -prefsLen 4909 -= prefMapSize 244806 -parentBuildID 20210614221319 -appdir /usr/li steffen 1636 0.6 0.7 2382844 59560 ? Sl 21:03 0:00 /usr/lib= /firefox/firefox-bin -contentproc -childID 3 -isForBrowser -prefsLen 5602 -= prefMapSize 244806 -parentBuildID 20210614221319 -appdir /usr/li Yeah i use --no-remote because otherwise firefox will find its other-box instances via X cookies (i do not have Wayland here). I deem it a critical error that firefox then starts up even though the ~/.mozilla/XXX profile is a totally different one, but on the IRC we just ended like this. Btw i use setup_cgroup() { #return [ -e /sys/fs/cgroup/cgroup.procs ] || return [ -d /sys/fs/cgroup/_box_web ] && return ( umask 0022 mkdir /sys/fs/cgroup/_box_web || return ) echo 1-3 > /sys/fs/cgroup/_box_web/cpuset.cpus echo 1 > /sys/fs/cgroup/_box_web/cpu.weight echo 300 > /sys/fs/cgroup/_box_web/pids.max echo 1000000000 > /sys/fs/cgroup/_box_web/memory.high } on this box for box-web.sh, and i can read all my newspapers and browse the web, even youtube. If i open to many tabs, they start crashing. This mostly seems due to the pids.max, however, i already increased this from 250. What _i_ find interesting is that for the first time i really get impressive scheduling feedback. This cpu.weight=3D1 can indeed cause the browser to be delayed entirely for minutes, dependent on the other tasks on the system. I mean really, totally, entirely. I was impressed by reading the sched manual once i came back to Linux two years ago, but seeing cpu.weight=3D1 in action _like that_, really impressive. Btw .. happy to be on the other side of the spectrum steffen 1251 0.0 0.0 11240 6184 tty1 S Jul05 0:06 cwm steffen 1261 0.0 0.1 19284 9096 ? Ss Jul05 1:11 st -n st= grey steffen 1262 0.0 0.0 8588 3896 pts/0 Ss+ Jul05 0:00 tmux a steffen 1334 0.0 1.1 94088 88680 ? Ss Jul05 1:25 tmux a steffen 5058 0.0 0.1 14672 8712 pts/1 S+ Jul05 0:11 s-nail -= Aich steffen 30448 0.0 0.2 100800 19052 pts/7 Sl+ 20:50 0:00 irssi steffen 1340 0.0 0.0 11848 6840 pts/6 Ss+ Jul05 0:00 vim -u /= home/steffen/.vimrc It all fits a single Terminal.app (if not taking into account tmux history), even if online. (Granted st does not have the history patch, and firefox not running.) --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)