From nobody Tue Nov 22 18:13:18 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NGsnn4Cg5z4jCtP for ; Tue, 22 Nov 2022 18:13:33 +0000 (UTC) (envelope-from garyj@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NGsnn0Gw4z3n5Q for ; Tue, 22 Nov 2022 18:13:32 +0000 (UTC) (envelope-from garyj@gmx.de) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1669140800; bh=G6uPsC3UuqVvnPfCZpU8UKjgEtYUTitS5W5iQSW1TCQ=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:In-Reply-To:References: Reply-To; b=LAWKkGraq15yInSswUVdZ8KjehvLfpfVil80GyGv2Q92bWQTgq5k0yCQWl8BwjqjB uF8edddB60C7PwLWbqXi8vbo0ns97xT9yuG/j+bIZfLHOLLupWakkm1+ocJytaJm67 VDljssY1KICpZXGr+DMwwLqyeSjOd4T0VKjQ9EVLYsyOzmP+Wu0OC2OslAb5F1Fw+k ZnV1RREwlOzofjKM2sfUCCh8rioLxwxR9HlC7LkIWO6ftoDZlvmWZYroKqZjw5VYzo vc9a4EccotygRyWPjp0poPrEmAsq6flayJDAqeFfY5Fm3YxxtcWT+3jcd+qJoG4PAC X+mq0b/MQeEFQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from ernst.home ([91.2.49.186]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MCbIn-1op3Sd1Cvj-009hh9; Tue, 22 Nov 2022 19:13:20 +0100 Date: Tue, 22 Nov 2022 19:13:18 +0100 From: Gary Jennejohn To: Tomoaki AOKI Cc: Dan Mack , Alexander Kabaev , freebsd-current@freebsd.org Subject: Re: dmesg content lifetime Message-ID: <20221122191318.1036bc1e@ernst.home> In-Reply-To: <20221123011655.c6a00ee21636e45e8b4f3a69@dec.sakura.ne.jp> References: <9d519f-ce87-72d-dc6-789817468974@macktronics.com> <20221122104445.4ed88f6f@kan> <20221123011655.c6a00ee21636e45e8b4f3a69@dec.sakura.ne.jp> Reply-To: garyj@gmx.de X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:OshA2nM3LzrmoOiYvRYMrnEjAeDElbHssxVVuA+PbiaIA0fLraZ NxFIM+cbXGl1PwgXA8nWEZwoqb/YCz3n+SbnhnXW4/KTeuUkEpiqqQqJg9HldrUkNqIsHDk l95PW5wTuyMVfmWYnCGbFhkU3KiSDS7ZkSYzgmHBiJhmWFkZ4dWOk9LCRJ2OZz1cLvkJRpR 7EhpboTMeoo11PmNsF23A== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:Wfwkrbk9yjk=;VGSorksgo2L8lWWlFPNvnuBjHQM 8L3rKg5a1Rx0b8vC3/2W/q8W2bZJ4taGg0XfC6T2zYFRkEfUV+sA2/k0FI5oldWCK2xA5teCm JuB6iMs/AksYZfwQpxwcQ7UIXL8gDP24RCAbDtYi35qypB76vTs7ZdemoLHdi+lDKF61ItGzK 2SqzH0qER4EvdtSoJcsZRgqbZKDSoTuDuqclWwkvtYRPSrclqvlEUe3oHMr6syR1iqieEAl+j H025zxliCcDe3PjblhZ3BcCW6GpbZOIybvUpskE5B3Xp8FXIZ0YmwBpiVbKFPdQ6QOupr71hr 4CTVq5Vk9NerC3E7lrT8iu3GrQs+8P3QkoxAEOOHLVun/x4O3IKl0NKMf3nL/6oFsaVxKWxws NFAFodJ2bxIlhxz/31c1v2jywjJMUtyrE+Vj8hN9UQU6jmr49vSqRi4YA9NaAuqi6dQKkHTug a2xyusaQqxaHnKRoFz7AxPS9NRVMTb+bGs3XoLxL+UQxcx/KT9c1qY1WSN7fmFGj3FMFecjE6 Wpti2GxaJloSMwqWj42CEznbf2EJ+WSND1BTfAs8GlEu1URG2WJL71bwXP1s+0wpgB96wRTWn RXQRNRFU6AbetAmX88lTVLvSSB4mUVYg39i/4y0pYGIuD1HuPNVEpZ+9uYWA5PXEauwTPyi2f fW4xfBdbh5XrdpF1so1wKznkdM+GgrMYKYKXXTQHufuvC+os5D9wzO/YYS9CHwwZD5v8jvMmv 38N1cAoMcUuKrjDHnlU3aklEA13BtN3DtCwVppySwbX36oecGYN94dCtpeVVVXIeUKHR0cLyo 5GfrejPvbjWJQ2fixpGnoeBuOXVcy/2kw1wzzQFTpHg8+SW8RDn15SY/GdqtVCs3rBfiLSQO0 Jwoj5mry6XtmSnLM0n9QHTmWvj9aNWTEzCq9SVi4dnYn+Pjq1lSoINPI0kKJnIIt3/LCyFQpY 9ptocQ== X-Rspamd-Queue-Id: 4NGsnn0Gw4z3n5Q X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Wed, 23 Nov 2022 01:16:55 +0900 Tomoaki AOKI wrote: > On Tue, 22 Nov 2022 09:47:10 -0600 (CST) > Dan Mack wrote: > > > On Tue, 22 Nov 2022, Alexander Kabaev wrote: > > > > > On Tue, 22 Nov 2022 09:12:28 -0600 (CST) > > > Dan Mack wrote: > > > > > >> It seems like dmesg content ages out over time. Is there a way to > > >> leave the contents based on a fixed memory size instead? > > >> > > >> Dan > > >> > > > I think this is how it works: the kernel message bugger is of fixed > > > size and kernel and syslog sequences (dmesg -a) share it. The other > > > syslog users eventually puts enough content in there to displace all= of > > > kernel messages. If the kernel stays quiet, 'dmesg' then returns > > > nothing, as by default it filters syslog entries that do not KERN > > > facility out, see sbin/dmesg/dmesg.c. > > > > > > -- > > > Alexander Kabaev > > > > > > > Thank you Alexander, I did not know this. I'll USL (use-the-source-lu= ke) > > :-) > > > > Dan > > Increase kern.msgbufsize tunable on /boot/loader.conf if you want dmesg > to live longer. For example, recommended value by iwlwifi team is > 1146880. Much larger than default. > > Note that this is actually a tunable and can be set only on boot time. > Or look at /var/run/dmesg.boot. It doesn't get overwritten. =2D- Gary Jennejohn