Re: filemon

2024-07-31 Thread Simon J. Gerraty
using filemon of course.

Re: filemon

2024-07-31 Thread Konstantin Belousov
On Tue, Jul 30, 2024 at 10:02:37PM -0600, Warner Losh wrote: > On Tue, Jul 30, 2024, 12:54 PM Dag-Erling Smørgrav wrote: > > > Miroslav Lachman <000.f...@quip.cz> writes: > > > I'm a bit confused. If I understand it right, you say loader.conf > > > causes less memory fragmentation, but DES said

Re: filemon

2024-07-30 Thread Warner Losh
On Tue, Jul 30, 2024, 12:54 PM Dag-Erling Smørgrav wrote: > Miroslav Lachman <000.f...@quip.cz> writes: > > I'm a bit confused. If I understand it right, you say loader.conf > > causes less memory fragmentation, but DES said "it still increases low > > memory fragmentation". So what is true? And

Re: filemon

2024-07-30 Thread Zhenlei Huang
> On Jul 31, 2024, at 2:54 AM, Dag-Erling Smørgrav wrote: > > Miroslav Lachman <000.f...@quip.cz> writes: >> I'm a bit confused. If I understand it right, you say loader.conf >> causes less memory fragmentation, but DES said "it still increases low >> memory fragmentation". So what is true?

Re: filemon

2024-07-30 Thread Peter Wemm
On 7/30/2024 4:44 AM, Dag-Erling Smørgrav wrote: "Poul-Henning Kamp" writes: Dag-Erling Smørgrav writes: There is very little difference between options and devices in kernel configuration files, but for what it's worth, filemon is a device, not an option. Apart from the

Re: filemon

2024-07-30 Thread Dag-Erling Smørgrav
Miroslav Lachman <000.f...@quip.cz> writes: > I'm a bit confused. If I understand it right, you say loader.conf > causes less memory fragmentation, but DES said "it still increases low > memory fragmentation". So what is true? And is this something to watch > out for, or is memory fragmentation

Re: filemon

2024-07-30 Thread void
for filemon as kernel device in the manpage initially. Generally, in the kernel config I'll comment out stuff thats not going to be used and add stuff i know is needed, instead of using loader.conf or other methods. --

Re: filemon

2024-07-30 Thread Miroslav Lachman
loader.conf. So I'm curious, what's the right thing to do then? (I load most of my modules from rc.conf) Either or for filemon. Either rc.conf's kld_list or loader.conf's filemon_load=YES. I've been recommending loader.conf since there's slightly less memory fragmentation, but even that effect

Re: filemon

2024-07-30 Thread Tomoaki AOKI
gt; >>> I also load it from /boot/loader.conf using filemon_load="YES" > >> > >> This does cause the module to be loaded at boot time, but it's slower > >> than loading it later, and it increases memory fragmentation. A better > >> option

Re: filemon

2024-07-30 Thread Warner Losh
On Tue, Jul 30, 2024, 4:50 AM Poul-Henning Kamp wrote: > > Dag-Erling Smørgrav writes: > > > There is very little difference between options and devices in kernel > > configuration files, but for what it's worth, filemon is a device, not > > an option. &

Re: filemon

2024-07-30 Thread Warner Losh
t; This does cause the module to be loaded at boot time, but it's slower > > than loading it later, and it increases memory fragmentation. A better > > option is to include "filemon" in the kld_list variable in /etc/rc.conf > > or /etc/rc.conf.d/kld. For instance, > > &

Re: filemon

2024-07-30 Thread Miroslav Lachman
On 30/07/2024 12:31, Dag-Erling Smørgrav wrote: Miroslav Lachman <000.f...@quip.cz> writes: Dag-Erling Smørgrav writes: This does cause the module to be loaded at boot time, but it's slower than loading it later, and it increases memory fragmentation. Does this also apply today? I recently

Re: filemon

2024-07-30 Thread Miroslav Lachman
On 30/07/2024 14:55, Michael Gmelin wrote: On Tue, 30 Jul 2024 11:38:57 +0200 Miroslav Lachman <000.f...@quip.cz> wrote: [..] Does this also apply today? I recently read from someone on a mailing list that the kld_list in rc.conf is no longer needed, that any problems it used to solve are

Re: filemon

2024-07-30 Thread Michael Gmelin
> > > This does cause the module to be loaded at boot time, but it's > > slower than loading it later, and it increases memory > > fragmentation. A better option is to include "filemon" in the > > kld_list variable in /etc/rc.conf or /etc/rc.conf.d/kld. For > &g

Re: filemon

2024-07-30 Thread Dag-Erling Smørgrav
"Poul-Henning Kamp" writes: > Dag-Erling Smørgrav writes: > > There is very little difference between options and devices in kernel > > configuration files, but for what it's worth, filemon is a device, not > > an option. > Apart from the internal

Re: filemon

2024-07-30 Thread Alastair Hogge
t; This does cause the module to be loaded at boot time, but it's slower >> than loading it later, and it increases memory fragmentation. A better >> option is to include "filemon" in the kld_list variable in /etc/rc.conf >> or /etc/rc.conf.d/kld. For instance, >>

Re: filemon

2024-07-30 Thread Poul-Henning Kamp
Dag-Erling Smørgrav writes: > There is very little difference between options and devices in kernel > configuration files, but for what it's worth, filemon is a device, not > an option. Apart from the internals of config(8) and it's input data, is there any actual differ

Re: filemon

2024-07-30 Thread Gary Jennejohn
On Tue, 30 Jul 2024 11:10:06 +0200 Dag-Erling Smørgrav wrote: > Gary Jennejohn writes: > > filemon is not a device, it's an option. So you can't have "device > > filemon" in your kernel config file. > > There is very little difference between options and devices

Re: filemon

2024-07-30 Thread Dag-Erling Smørgrav
Miroslav Lachman <000.f...@quip.cz> writes: > Dag-Erling Smørgrav writes: > > This does cause the module to be loaded at boot time, but it's slower > > than loading it later, and it increases memory fragmentation. > Does this also apply today? I recently read from someone on a mailing > list that

Re: filemon

2024-07-30 Thread void
Hi, On Tue, 30 Jul 2024, at 10:10, Dag-Erling Smørgrav wrote: > void writes: >> How would I go about remedying the issue that usage/examples >> are not present in manpages for either the device line in kernel >> config or filemon.ko ? > > https://reviews.freebsd.org/D46184 thank you!

Re: filemon

2024-07-30 Thread Miroslav Lachman
ter option is to include "filemon" in the kld_list variable in /etc/rc.conf or /etc/rc.conf.d/kld. For instance, % cat /etc/rc.conf.d/kld/filemon kld_list="${kld_list} filemon" Does this also apply today? I recently read from someone on a mailing list that the kl

Re: filemon

2024-07-30 Thread Dag-Erling Smørgrav
void writes: > How would I go about remedying the issue that usage/examples > are not present in manpages for either the device line in kernel > config or filemon.ko ? https://reviews.freebsd.org/D46184 DES -- Dag-Erling Smørgrav - d...@freebsd.org

Re: filemon

2024-07-30 Thread Dag-Erling Smørgrav
Gary Jennejohn writes: > filemon is not a device, it's an option. So you can't have "device > filemon" in your kernel config file. There is very little difference between options and devices in kernel configuration files, but for what it's worth, filemon is a device, not an opti

Re: filemon

2024-07-28 Thread void
How would I go about remedying the issue that usage/examples are not present in manpages for either the device line in kernel config or filemon.ko ? --

Re: filemon

2024-07-28 Thread Gary Jennejohn
On Sat, 27 Jul 2024 19:31:37 +0100 void wrote: > On Sat, Jul 27, 2024 at 03:01:22PM +, Gary Jennejohn wrote: > > >filemon is not a device, it's an option. So you can't have "device > >filemon" in your kernel config file. > > > >I compile it wi

Re: filemon

2024-07-27 Thread Simon J. Gerraty
Marek Zarychta wrote: > > What about filesystem perfomnace ? Have you benchmarked your FS and > whole system with and without filemon loaded ? FWIW filemon does nothing unless make opens the device. and then it only impacts syscalls done by that pid and its children. > I am not q

Re: filemon

2024-07-27 Thread Олег
slightly tangent question but does filemon and consequently WITH_META_MODE=YES work, when /usr/obj is on tmpfs? In my test, it is not and i tested without reboot, so /usr/obj is not removed. Reason is to avoid disk use when building world/kernel. On Sat, Jul 27, 2024 at 6:35 PM void wrote

Re: filemon

2024-07-27 Thread void
On Sat, Jul 27, 2024 at 03:01:22PM +, Gary Jennejohn wrote: filemon is not a device, it's an option. So you can't have "device filemon" in your kernel config file. man 4 filemon has the following NAME filemon – the filemon device [...] DESCRIPTION The filemon dev

Re: filemon

2024-07-27 Thread void
On Sat, Jul 27, 2024 at 03:01:22PM +, Gary Jennejohn wrote: filemon is not a device, it's an option. So you can't have "device filemon" in your kernel config file. I compile it with makeoptions MODULES_OVERRIDE="filemon ..." in my kernel config file. What's the

Re: filemon

2024-07-27 Thread Marek Zarychta
Dnia Sat, Jul 27, 2024 at 03:27:19PM +0100, Nuno Teixeira napisał(a): > Hello, > > I use filemon for builds with WITH_META_MODE loaded from rc.conf: > kld_list="... filemon" for some years on both amd64 and aarch64. What about filesystem perfomnace ? Have you benchmarked yo

Re: filemon

2024-07-27 Thread Gary Jennejohn
On Sat, 27 Jul 2024 15:27:19 +0100 Nuno Teixeira wrote: > Hello, > > I use filemon for builds with WITH_META_MODE loaded from rc.conf: > kld_list="... filemon" for some years on both amd64 and aarch64. > > Cheers, > > void escreveu (sábado, 27/07/2024 à(s)

Re: filemon

2024-07-27 Thread Nuno Teixeira
Hello, I use filemon for builds with WITH_META_MODE loaded from rc.conf: kld_list="... filemon" for some years on both amd64 and aarch64. Cheers, void escreveu (sábado, 27/07/2024 à(s) 14:50): > Is it better to load filemon as kldload filemon, or to > have it set as a de

Re: filemon

2024-07-27 Thread Zhenlei Huang
> On Jul 27, 2024, at 9:49 PM, void wrote: > > Is it better to load filemon as kldload filemon, or to > have it set as a device via 'device filemon' in the kernel config file? or to > just load it when rebuilding the system? > > There is man 4 filemon but nothing th

filemon

2024-07-27 Thread void
Is it better to load filemon as kldload filemon, or to have it set as a device via 'device filemon' in the kernel config file? or to just load it when rebuilding the system? There is man 4 filemon but nothing there to describe usage as .ko or device. System is n271321-9ae91f59c500 on arm64. --

Re: make release: how utilise filemon?

2017-05-11 Thread Bryan Drewery
On 5/10/17 1:12 AM, O. Hartmann wrote: > hello, > > building a release of most recent 12-CURRENT seems to be at some point very > annoying. When building the main host's system out of /usr/src > using /etc/src-env.conf set with WITH_META_MODE=yes, build time decreases > significantly. Now I

Re: filemon: weird full-time build although filemon enabled

2017-05-11 Thread O. Hartmann
Am Mon, 8 May 2017 12:39:12 -0700 "Simon J. Gerraty" schrieb: > O. Hartmann wrote: > > > .MAKE.META.IGNORE_PATHS += /usr/local/etc/libmap.d > > > > > > --sjg > > > > I suppose I have to set this flag in > > > > /etc/src-env.conf > > That should

Re: filemon: weird full-time build although filemon enabled

2017-05-10 Thread Simon J. Gerraty
David Wolfskill wrote: > I placed it in /etc/src.conf; thus: > > g1-252(11.0-S)[1] cat /etc/src.conf > KERNCONF=CANARY > PORTS_MODULES=x11/nvidia-driver-340 > .MAKE.META.IGNORE_PATHS += /usr/local/etc/libmap.d > WITHOUT_DEBUG_FILES=1 > IWN_DEBUG=1 > IEEE80211_DEBUG=1 >

Re: filemon: weird full-time build although filemon enabled

2017-05-10 Thread David Wolfskill
On Mon, May 08, 2017 at 07:32:58PM +0200, O. Hartmann wrote: > Am Mon, 8 May 2017 10:17:05 -0700 > "Simon J. Gerraty" schrieb: > ... > > bmake has a set of knobs for telling it to ignore things. > > OP try > > > > .MAKE.META.IGNORE_PATHS += /usr/local/etc/libmap.d > > > >

make release: how utilise filemon?

2017-05-10 Thread O. Hartmann
hello, building a release of most recent 12-CURRENT seems to be at some point very annoying. When building the main host's system out of /usr/src using /etc/src-env.conf set with WITH_META_MODE=yes, build time decreases significantly. Now I perform some tasks building release. The source tree is

Re: filemon: weird full-time build although filemon enabled

2017-05-08 Thread Simon J. Gerraty
O. Hartmann wrote: > > .MAKE.META.IGNORE_PATHS += /usr/local/etc/libmap.d > > > > --sjg > > I suppose I have to set this flag in > > /etc/src-env.conf That should work. Let us know how it goes ___ freebsd-current@freebsd.org

Re: filemon: weird full-time build although filemon enabled

2017-05-08 Thread O. Hartmann
Am Mon, 8 May 2017 11:23:01 -0700 "Ngie Cooper (yaneurabeya)" schrieb: > > On May 6, 2017, at 00:22, O. Hartmann wrote: > > > > I build CURRENT on two technically similar systems on a almost daily basis. > > Therefore, it was a great relief having

Re: filemon: weird full-time build although filemon enabled

2017-05-08 Thread Ngie Cooper (yaneurabeya)
> On May 6, 2017, at 00:22, O. Hartmann wrote: > > I build CURRENT on two technically similar systems on a almost daily basis. > Therefore, it > was a great relief having WITH_META_MODE=yes set in /etc/src-env.conf for > incremental > builds. To make my understanding

Re: filemon: weird full-time build although filemon enabled

2017-05-08 Thread O. Hartmann
Am Mon, 8 May 2017 19:32:58 +0200 "O. Hartmann" schrieb: > Am Mon, 8 May 2017 10:17:05 -0700 > "Simon J. Gerraty" schrieb: > > > Konstantin Belousov wrote: > > > If I understand the motto of meta-mode, any file change is

Re: filemon: weird full-time build although filemon enabled

2017-05-08 Thread O. Hartmann
Am Mon, 8 May 2017 10:17:05 -0700 "Simon J. Gerraty" schrieb: > Konstantin Belousov wrote: > > If I understand the motto of meta-mode, any file change is detected for any > > file accessed during the build. All dynamically-linked binary includes > > the

Re: filemon: weird full-time build although filemon enabled

2017-05-08 Thread Simon J. Gerraty
Konstantin Belousov wrote: > If I understand the motto of meta-mode, any file change is detected for any > file accessed during the build. All dynamically-linked binary includes > the rtld into the process image, and rtld reads all config files in the > libmap.d

Re: filemon: weird full-time build although filemon enabled

2017-05-08 Thread Konstantin Belousov
On Mon, May 08, 2017 at 09:04:08AM -0700, Simon J. Gerraty wrote: > O. Hartmann wrote: > > It is weird! > > > > Today, after yesterday's built, I face the same 90 minutes build horror > > again, this time > > I switched on "-dM" with the make command. > > > > This

Re: filemon: weird full-time build although filemon enabled

2017-05-08 Thread Simon J. Gerraty
O. Hartmann wrote: > It is weird! > > Today, after yesterday's built, I face the same 90 minutes build horror > again, this time > I switched on "-dM" with the make command. > > This happens: > > [...] >

Re: filemon: weird full-time build although filemon enabled

2017-05-08 Thread O. Hartmann
ould not matter, bsd.mkopt.mk processes them in a specified > order. > > > The problem: to make my point clear: the "weak" box starts compiling almost > > everytime > > now the LLVM/CLANG tree while the XEON box does not. This is spooky. > > Add -dM, and see if

Re: filemon: weird full-time build although filemon enabled

2017-05-08 Thread Simon J. Gerraty
in a specified order. > The problem: to make my point clear: the "weak" box starts compiling almost > everytime now > the LLVM/CLANG tree while the XEON box does not. This is spooky. Add -dM, and see if that tells you why. Also confirm that filemon is getting loaded after each r

filemon: weird full-time build although filemon enabled

2017-05-06 Thread O. Hartmann
I build CURRENT on two technically similar systems on a almost daily basis. Therefore, it was a great relief having WITH_META_MODE=yes set in /etc/src-env.conf for incremental builds. To make my understanding of this clear (just in case I'm wrong): setting WITH_META_MODE builds only portions

Re: [CFT] WITH_META_MODE: Working incremental build [only on i386 and amd64] [filemon fails to load on powerpc64]

2016-06-04 Thread Bryan Drewery
On 6/4/2016 12:17 AM, Mark Millard wrote: > On 2016-Jun-2, at 12:36 PM, Bryan Drewery wrote: > >> On 6/1/2016 6:39 PM, Mark Millard wrote: >>> while filemon.ko now exists: >>>> # ls -l /boot/*/filemon* >>>> -r-xr-xr-x 1 root wheel 32064 Jun

Re: [CFT] WITH_META_MODE: Working incremental build [only on i386 and amd64] [filemon fails to load on powerpc64]

2016-06-04 Thread Mark Millard
On 2016-Jun-2, at 12:36 PM, Bryan Drewery wrote: > On 6/1/2016 6:39 PM, Mark Millard wrote: >> while filemon.ko now exists: >>> # ls -l /boot/*/filemon* >>> -r-xr-xr-x 1 root wheel 32064 Jun 1 17:59 /boot/kernel/filemon.ko >> it does not load: >>> #

Re: [CFT] WITH_META_MODE: Working incremental build [only on i386 and amd64] [filemon fails to load on powerpc64]

2016-06-02 Thread Bryan Drewery
On 6/1/2016 6:39 PM, Mark Millard wrote: > while filemon.ko now exists: >> # ls -l /boot/*/filemon* >> -r-xr-xr-x 1 root wheel 32064 Jun 1 17:59 /boot/kernel/filemon.ko > it does not load: >> # kldload -n filemon >> kldload: can't load filemon: No such file

Re: [CFT] WITH_META_MODE: Working incremental build [only on i386 and amd64] [filemon fails to load on powerpc64]

2016-06-02 Thread Justin Hibbits
On Wed, Jun 1, 2016 at 8:59 PM, Bryan Drewery <bdrew...@freebsd.org> wrote: > On 6/1/2016 6:39 PM, Mark Millard wrote: >> while filemon.ko now exists: >>> # ls -l /boot/*/filemon* >>> -r-xr-xr-x 1 root wheel 32064 Jun 1 17:59 /boot/kernel/filemon.ko >

Re: [CFT] WITH_META_MODE: Working incremental build [only on i386 and amd64] [filemon fails to load on powerpc64]

2016-06-02 Thread Mark Millard
On 2016-Jun-1, at 7:21 PM, Bryan Drewery wrote: > > The fix is easy, I am just wondering why there are 2 ABI formats > supported. If only one is normally used and the default then I'll only > support that one. > > Filemon hooks the syscall table. The only differences t

Re: [CFT] WITH_META_MODE: Working incremental build [only on i386 and amd64] [filemon fails to load on powerpc64]

2016-06-02 Thread Bryan Drewery
The fix is easy, I am just wondering why there are 2 ABI formats supported. If only one is normally used and the default then I'll only support that one. Filemon hooks the syscall table. On 6/1/2016 7:16 PM, Mark Millard wrote: > May be Nathan Whitehorn knows what is going on that preve

Re: [CFT] WITH_META_MODE: Working incremental build [only on i386 and amd64] [filemon fails to load on powerpc64]

2016-06-02 Thread Mark Millard
filemon.ko is required in order for WITH_META_MODE=yes to work for incremental builds. === Mark Millard markmi at dsl-only.net On 2016-Jun-1, at 6:59 PM, Bryan Drewery wrote: > On 6/1/2016 6:39 PM, Mark Millard wrote: >> while filemon.ko now exists: >>> # ls -l /boot/*/filemon*

Re: [CFT] WITH_META_MODE: Working incremental build [only on i386 and amd64] [filemon fails to load on powerpc64]

2016-06-02 Thread Bryan Drewery
On 6/1/2016 6:39 PM, Mark Millard wrote: > while filemon.ko now exists: >> # ls -l /boot/*/filemon* >> -r-xr-xr-x 1 root wheel 32064 Jun 1 17:59 /boot/kernel/filemon.ko > it does not load: >> # kldload -n filemon >> kldload: can't load filemon: No such file

Re: [CFT] WITH_META_MODE: Working incremental build [only on i386 and amd64] [filemon fails to load on powerpc64]

2016-06-02 Thread Mark Millard
[A top-posted error report for powerpc64.] On 2016-Jun-1, at 8:20 AM, Bryan Drewery wrote: > I've just enabled the filemon(4) build on all architectures in r301130. But on (built via powerpc64-gcc on the powerpc64 box): > # uname -apKU > FreeBSD FBSDG5C0 11.0-ALPHA1 FreeBSD 11.0-A