View previous topic :: View next topic |
Author |
Message |
0x1000000 n00b
Joined: 22 Apr 2024 Posts: 8
|
Posted: Thu Jun 27, 2024 7:43 am Post subject: Firefox makes nfs_client calls |
|
|
I hope this is the right place to ask this, but I noticed some odd behaviour with Firefox 127.0.2, which I didnt experience on any other distro.
After running udevadm monitor on a fresh Gentoo install I noticed these logs whenever I open a new tab or close a tab in Firefox:
Code: | monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent
KERNEL[63.285539] add /fs/nfs/net/nfs_client (nfs)
UDEV [63.286868] add /fs/nfs/net/nfs_client (nfs)
KERNEL[76.371926] add /fs/nfs/net/nfs_client (nfs)
UDEV [76.373625] add /fs/nfs/net/nfs_client (nfs)
KERNEL[161.674943] remove /fs/nfs/net/nfs_client (nfs)
UDEV [161.675942] remove /fs/nfs/net/nfs_client (nfs)
KERNEL[271.534514] add /fs/nfs/net/nfs_client (nfs)
UDEV [271.535863] add /fs/nfs/net/nfs_client (nfs)
KERNEL[272.113971] add /fs/nfs/net/nfs_client (nfs)
UDEV [272.114288] add /fs/nfs/net/nfs_client (nfs)
KERNEL[340.462165] add /fs/nfs/net/nfs_client (nfs)
UDEV [340.463568] add /fs/nfs/net/nfs_client (nfs)
|
Code: | [ebuild R ] www-client/firefox-127.0.2 USE="X clang dbus gmp-autoupdate jumbo-build system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp -debug -eme-free -geckodriver -hardened -hwaccel -jack -libproxy -lto -openh264 -pgo -pulseaudio (-selinux) -sndio -system-png -telemetry (-valgrind) -wayland -wifi" L10N="-ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -ca-valencia -cak -cs -cy -da -de -dsb -el -en-CA -en-GB -eo -es-AR -es-CL -es-ES -es-MX -et -eu
-fa -ff -fi -fr -fur -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -ia -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mk -mr -ms -my -nb -ne -nl -nn -oc -pa -pl -pt-BR -pt-PT -rm -ro -ru -sc -sco -si -sk -sl -son -sq -sr -sv -szl -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW" LLVM_SLOT="17 -18" |
I dont use nfs and I dont have anything nfs related installed so these logs concern me. Is this normal Firefox behaviour on Gentoo? Thanks for the answers in advance! |
|
Back to top |
|
|
0x1000000 n00b
Joined: 22 Apr 2024 Posts: 8
|
Posted: Fri Jun 28, 2024 12:06 pm Post subject: |
|
|
I did some testing within a VM it seems like portage as well triggers these nfs_client events whenever I emerge a package, but it only happens with gentoo-sources and git-sources, with gentoo-kernel-bin it doesnt happen.
I barely touched the .config for both gentoo and git sources, all I did was enable XFS support, so this seems like default behavior.
I still dont understand why it happens though. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20476
|
Posted: Fri Jun 28, 2024 1:18 pm Post subject: |
|
|
I see similar behavior in 115/esr: Code: | $ udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent
KERNEL[146811.077176] add /fs/nfs/net/nfs_client (nfs)
UDEV [146811.082690] add /fs/nfs/net/nfs_client (nfs) | I do have NFS support in the kernel. I've rebuilt it without some stuff I don't think needs to be there including NFS, but I haven't installed it yet. I may do that next week. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
0x1000000 n00b
Joined: 22 Apr 2024 Posts: 8
|
Posted: Fri Jun 28, 2024 1:36 pm Post subject: |
|
|
pjp wrote: | I see similar behavior in 115/esr: Code: | $ udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent
KERNEL[146811.077176] add /fs/nfs/net/nfs_client (nfs)
UDEV [146811.082690] add /fs/nfs/net/nfs_client (nfs) | I do have NFS support in the kernel. I've rebuilt it without some stuff I don't think needs to be there including NFS, but I haven't installed it yet. I may do that next week. |
After disabling NFS support in the kernel config these events are gone I can confirm that, but I still find it weird that this happens in the first place, especially because it doesnt happen with gentoo-kernel-bin or on other distros (I tested Arch Linux). |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20476
|
Posted: Fri Jun 28, 2024 1:49 pm Post subject: |
|
|
Maybe there is a specific kernel option that differs among them? My first thought was a USE flag, but not many seem obviously related to network activity. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
0x1000000 n00b
Joined: 22 Apr 2024 Posts: 8
|
Posted: Fri Jun 28, 2024 2:37 pm Post subject: |
|
|
pjp wrote: | Maybe there is a specific kernel option that differs among them? My first thought was a USE flag, but not many seem obviously related to network activity. |
I compared the NFS related kernel options (grep -i nfs) in gentoo-sources .config with gentoo-kernel-bin /proc/config.gz and I noticed that CONFIG_NFS_FS is built as a module in gentoo-kernel-bin, so after changing it to a module in gentoo-sources as well, the nfs_client events were gone.
Im not familiar with NFS at all, do you have any idea why portage and firefox trigger these events at all? |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1901
|
Posted: Fri Jun 28, 2024 2:53 pm Post subject: |
|
|
This is most likely related to sandboxing or namespacing mount points and the kernel is considering all fs types |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20476
|
Posted: Fri Jun 28, 2024 10:56 pm Post subject: |
|
|
0x1000000 wrote: | with gentoo-kernel-bin /proc/config.gz and I noticed that CONFIG_NFS_FS is built as a module in gentoo-kernel-bin, so after changing it to a module in gentoo-sources as well, the nfs_client events were gone. | That makes sense. If you aren't using any NFS based files systems, then the module wouldn't be loaded. If you try again and manually load the module, it will probably print the messages.
@grknight,
Than you. I would never have guessed that. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
|