-
jrm
Huh.. `block out quick user _user` is blocking icmp traffic for all users. Is there not away to only block outgoing traffic for a specific user?
-
jrm
That's a pf rule.
-
rrahl0
hi, I want to comission my old dell latitude 5490 as a server, but for some reason, the screen doesn't turn off when I close the lid. is there another way for achieving this? (i am on 13.5)
-
AmyMalik
do you need the screen off, or is brightness minimal an option?
-
rrahl0
turned off would be best. as the laptop itself would run 24/7
-
AmyMalik
is there anything under hw.acpi.video.lcd0.active, and what happens if you try to set it to zero
-
CrtxReavr
Try it and report back.
-
rrahl0
unknown oid
-
AmyMalik
apparently acpi_video requires that any DRM-related kernel modules be loaded; for that machine you would want to load i915kms, which should be available in the packaging system and/or the ports tree
-
rrahl0
I already have that installed, as I need the gpu for a workload
-
rrahl0
(and loaded)
-
AmyMalik
then kldload acpi_video
-
AmyMalik
then retry sysctl hw.acpi.video.lcd0.active=0
-
rrahl0
when I load acpi_video, the hw.acpi... is set to 0 already
-
AmyMalik
oh blast, that's not so good
-
rrahl0
yeah did set it to 0 and nothing
-
AmyMalik
try setting the brightness under the same sysctl tree to zero; for me on my thinkpad that results in the backlight being off entirely but the screen remains (invisibly) on and thus still vulnerable to burn-in. it seems to do some arcane resetting when I pull it off charge though
-
rrahl0
just a question for the hw.acpi.video.lcd0.active. I set it to 1 and then wanted to set it back to 0. but it won't go back to 0
-
AmyMalik
o_O
-
rrahl0
yeah the output from the command is basically 1 -> 1
-
AmyMalik
cripes
-
AmyMalik
i think i had that happen to me as well
-
CrtxReavr
Taht something that needs to be set in /boot/loader.conf ?
-
rrahl0
AmyMalik: when I set the brightness to anything, nothing changes
-
AmyMalik
crap
-
AmyMalik
you might just have to deal with the screen staying on, unless you have a GUI locally (which I don't recommend on a server)
-
rrahl0
yeah. not wanting that :S
-
rrahl0
how I hate that device :( had already some (other) issues with that on linux
-
rrahl0
have another 2 questions then, as I am still very much new to BSD. will freebsd 15.0 get zfs 2.4.0 release or will it stay on rc4? kinda feels weird with that
-
rrahl0
and the second one, can I somehow find out why libvirt doesn't build the linux support with it? (I still have some "legacy" things I have to run)
-
AmyMalik
... this'll sound stupid, but `apm -d enable` has a tiny but non-zero chance of doing something. hopefully that something is not bricking the entire device.
-
rrahl0
nothing...
-
rrahl0
I wonder if I should just put my thinkpad as a server and use the dell as my desktop
-
AmyMalik
well that's good at least, it didn't break the entire bus. but drats.
-
AmyMalik
if the thinkpad kills the screen on closedown (mine appears to), then maybe
-
AmyMalik
but if you like using it more than using the dell..
-
rrahl0
not really. bought the thinkpad only because the dell had its issues as a desktop on linux. well the thinkpad has other issues :( (some hw)
-
rrahl0
well I guess I have to make friends with an ISO keyboard (again). and figure out how to install KDE (wayland) on freebsd
-
rrahl0
AmyMalik: thanks. will see what I can do
-
Macer
is it possible to use the ports tree as a user?
-
RavenJoad
How do people store service configs in repos and deploy them to FreeBSD systems? I want to mess around with pf as a firewall/router and want to treat it as an appliance. If something gets messed up, just nuke the machine, copy/deploy configs, and restart.
-
llua
with config management tools, like puppet, ansible, etc.
-
RavenJoad
That's what I was thinking too. I have set up Salt for some other experiments in the past. Salt didn't look like it supported the BSDs well though.
-
llua
they dropped support for it, yeah
-
llua
i am stuck with a old setup of it with my homelab
-
RavenJoad
NGL, I wish I could configure jails the same way I can configure podman containers. That would be the ideal thing. It feels like Service Jails and Thin Jails are almost exactly what I would want from an FS side.
-
llua
you can use podman on freebsd
-
RavenJoad
I missed that. That's neat. I would love the kind of integration with the system management daemon or init that Podman gets with systemd. Ideally, from one machine, I deploy the jail config, and the remote system makes that happen. These jails would run pf, kea-*, NFS, CIFS, etc.
-
Macer
adaptive doesn't seem to be working with my ryzen very well
-
Macer
it hovers at 2.8GHz but mostly sticks at 3.6GHz unless i set powerd to minimum
-
Macer
and it definitely does not throttle per core
-
Macer
seems like powerdxx works though
-
kerneldove_
best hosted email service?
-
rtprio
worst internet provider?
-
AmyMalik
the one you have no choice but to use
-
rtprio
isn't that always the case
-
vortexx
good morning, I tried to get into my tmux sessions today but as root I'm getting this: tmux a
-
vortexx
open terminal failed: not a terminal
-
vortexx
echo $TERM
-
vortexx
xterm-256color
-
mzar
vortexx: it happens after upgrade
-
ridcully
vortexx: you got the tmux update and this it has breaking changes
-
ridcully
vortexx: the errormessage is a red herring. kill the server and start anew or try with the old version to gracefully shut down
-
mzar
server ?
-
mzar
tmux
-
ridcully
the tmux server instance you are trying to resume
-
vortexx
will try to downgrade then, thanks
-
vortexx
ridcully: ok killing the tmux server fixes the issue
-
rwp
vortexx, Hint: Type in "pkg info -D tmux" and read the message that appears at upgrade time.
-
Koston
tmux _always_ has breaking changes
-
Koston
I armored my tmux.conf with some version checking to be more resilient against the differences. the next tmux minor version upgrade broke the version check syntax itself.
-
rwp
Koston, Oh the irony!
-
vortexx
rwp: cheers
-
vortexx
must have missed that message as there were a whole bunch of upgrade messages that time
-
ridcully
in linux one seem to be able to run the old/still running tmux version via /proc - is there some way to do this on fbsd?
-
ridcully
otherwise instead of downgrading, take a look at /var/cache/pkg - maybe the prev package is still there. should be enough to extract and run to close your sessions
-
vortexx
ridcully: I didn't downgrade in the end, just killed the tmux-server as suggested and everything was fine after that
-
ant-x
Hello, all. Do you know of a SOCKS5 server avaialbe for FreeBSD, which can chain itself to another SOCKS5 proxy? That way, I wantto create a proxy open into the wild (with authentication, of course), operating via a local created via `ssh -D'.
-
mage
hello
-
ant-x
Guten TZAG.
-
mage
I have a question regarding ZFS, I'm dumping a ZFS dataset with something like $> zfs send zroot_srv/data/jails/builder/jails/foobar | gzip > /tmp/foobar.gz
-
mage
and I was wondering: could I use this dump with zfs receive on any machine?
-
mage
are there any imcompatibilities regarding different ZFS versions ?
-
mzar
sure, they are, check zfs -V and zpool status, zpool status, zpool get all yourpoll, and consult zpool-features(7)
-
Macer
so is ti just not possible to have the bridge interface for jails on the same subnet as the jails themselves?
-
Macer
i think that's where i was having the problem
-
Macer
which doesn't make sense because it seems like that is a rather normal thing to do
-
Macer
maybe it was from adding the ip on the bridge interface as an alias?
-
Macer
Mem: 221M Active, 51G Inact, 847M Laundry, 7975M Wired, 1572M Buf, 2335M Free
-
Macer
ARC: 2058M Total, 974M MFU, 639M MRU, 681K Anon, 26M Header, 417M Other
-
Macer
is inactive memory interfering with arc? 🤔
-
Macer
-
Macer
i'm reading this trying to figure out how arc can get priority over inactive cache that's "stuck" in memory
-
nimaje
Macer: yes, you can use the ports tree as user, you have to ensure that your user can write to the required directories, so you should set WRKDIRPREFIX and DISTDIR and maybe PORTSDIR (if you want to have it somewhere else than /usr/ports, I guess you do) and PACKAGES (to have one directory of packages). Of course installing packages still needs root privileges as that affects the whole system
-
nimaje
(except for INSTALL_AS_USER=yes pkg --rootdir <some directory writeable by your user> install … )
-
Macer
nimaje: ah i meant a user using exports in their shell.rc and building / installing ports into their home dir
-
Macer
i'm more at a loss to why i have 56G of inactive memory and 2G of arc :/
-
Macer
is there some setting to give arc more priority than inactive cache? or maybe force swapping inactive out a bit faster
-
Oks4
Macer: do you have a need for different jail subnet? i have always just used the external network for everything. seems like having a additional layer of nat would be just additional layer of headaches
-
Macer
Oks4: the jails are on a vlan .. the host is on an admin subnet
-
Macer
but with the host i was trying to smb share something to the jails since host/jail re on different ADs
-
Macer
so permissions became an issue with nullfs
-
Macer
sysctl: unknown oid 'vm.swap_idle_enabled'
-
Macer
did this get changed?
-
Oks4
ahh. I dont know anything about smb or ad :(
-
nimaje
hm, I guess you could make a directory prefix in your home, use that as root dir for pkg and set everything up, so that that is used as well (add to PATH, …)
-
Macer
nimaje: yeah. i figured that if you just exported the proper dirs it would be possible for a user to just build things from the ports tree and install it in their home dir as long as they set paths so it all works
-
Macer
i mean i get that's probably going to eat up space but being able to install pkgs as a user without intervention so long as the ports tree is available..
-
Macer
too bad fbsd doesn't have flatpak :)
-
nimaje
but no idea if there is a way in the ports tree to make make install work with that pkg root dir
-
Macer
vm.swap_idle_enabled <- weird... i keep seeing this as an option but sysctl seems to think it doesn't exist
-
Macer
-
nimaje
hm, I have it here on 14.3
-
Oks4
Macer: if it is of any help here is my /etc/rc.conf.d/netif . One physical interface is for admin network (and admin network jails) where another is for all VLANS. I'm not sure if it is optimal but seems to work
paste.jan.systems/trewhilyor
-
Macer
sysctl vm.swap_idle_enabled=1
-
Macer
sysctl: unknown oid 'vm.swap_idle_enabled'
-
Macer
Oks4: yeah i was trying somethign similar except in my case i was trying to add an alias ip to the bridge in order to use smb between a jail and host.. not the best way to do things but it was the only option i had at the time
-
Macer
nimaje: maybe that was renamed in 15?
-
Macer
or maybe removed?
-
Macer
i'm trying to find a list of tunables in the handbook
-
nimaje
I don't see anything about that in the release notes, but that's why I included the version
-
Oks4
`sysctl -ad` to get a list and description
-
Macer
yeah i'm trying ot hunt it down
-
Macer
but i don't see anything that performs the same function
-
nimaje
hm, the only reference to it in the current source tree I can find is in tools/tools/sysdoc/tunables.mdoc, even if I search with --ignore-case 'swap.*idle'
-
Macer
yeah. weird.
-
Macer
i mean that kind of seems like what i really need heh
-
Macer
because something is cramming stuff into ram and it's not going away
-
Macer
i wonder if there's a way to flush the inactive memory faster
-
Macer
yeah i'm at a loss here. i'm stuck with a lot of consumed memory and very little arc and can't seem to tune my way out of it
-
Macer
i'll have to look at that when i have more time
-
nwe
has someone get cdk8s to work in freebsd?
-
Oks4
Macer: I think arc is dynamic. If you mass access some files it should start to populate.
-
nimaje
just had the idea to check releng/14.3 for swap_idle_enabled there I get more hits with --ignore-case 'swap.*idle'
-
Pauli1
sysctl -a | grep swap
-
Pauli1
sysctl -d vm.swap_idle_enabled
-
Pauli1
?
-
Macer
Oks4: I think in this case it is stuck at 2GB because of inactive memory pressure.
-
Macer
Pauli1: it’s not there.
-
Macer
sysctl -d vm.swap_idle_enabled
-
Macer
sysctl: unknown oid 'vm.swap_idle_enabled'
-
zi
Macer: it's there in 13 and 14. are you on 15 by any chance?
-
Macer
Yes
-
Macer
So I guess removed? I’m still not sure if that would help. Is there an inactive memory max tune?
-
zi
try skimming sysctl -da|grep -i swap
-
zi
hmm they do seem to have disappeared
-
Macer
Yeah lol.
-
rwp
Macer what does "top -b | grep Mem:" say?
-
rwp
-
Macer
Mem: 135M Active, 50G Inact, 764M Laundry, 8039M Wired, 1572M Buf, 3934M Free
-
Macer
ARC: 2069M Total, 1022M MFU, 593M MRU, 873K Anon, 27M Header, 424M Other
-
Macer
That’s what I’m seeing in top.
-
Macer
I’m not seeing this behavior on my nas which is not running jails. I wonder if rclone + jails are to blame.
-
Macer
OK. So it was my jellyfin jail. At least now I know where it is coming from.
-
Macer
Mem: 395M Active, 195M Inact, 436M Laundry, 6460M Wired, 55G Free
-
Macer
I set a cap on its ram.
-
rwp
Jellyfin appears to be like Firefox/Chrome using all available memory unless someone stops them from doing so.
-
rwp
If you have the swap for it then inactive pages would be in the candidate list to be pushed out to swap if the system needed the memory for other purposes. I saw that you had 50G of inactive pages.
-
rwp
I am looking at 17G of inactive pages here on my desktop and it is all Firefox here.
-
scoobybejesus
I have an rctl.conf in one of my jail directories for limiting RAM usage. jail:jailname:memoryuse:deny=8g/jail
-
scoobybejesus
had to also do: kern.racct.enable=1
-
bombuzal
-
Macer
blasted .net
-
Macer
i didn't have it capped with rtctl though so hopefully that helps.
-
AmyMalik
I denied memory use to Firefox over like 5G and it broke. Pages started forever loading. It also uses 3GB of RAM idling.
-
AmyMalik
Like if I close all my tabs, it's still huge.
-
ant-x
AmyMalik, RIP FireFox. Viva Dillo, Viva Kristall!
-
AmyMalik
Idealism works until you have to actually do things.
-
ant-x
Only because you are often forced into the bloated corporate infrastructre.
-
regis
-
scoobybejesus
looks like freebsd has the ladybird browser. neat. I wonder how well that's doing
-
rwp
Chrome is the same as Firefox. Chrome is the engine in something like 85% of all of the other web browser flavors. So you can't even escape Firefox to Chrome on memory piggy-ness use because Chrome is just the same.
-
rwp
I believe this pressure from browses is why we keep increasing out desktop memory. 4G. 8G. 16G. 32G! 64G!! Infinity G!!! It will never be enough. We just keep pushing forward hoping for the best regardless.
-
ant-x
IMHO, Chrome is worse: <
contrachrome.com> .
-
wavefunction
Turns out (until recently) getting more resources is cheaper than paying someone to optimize.
-
ant-x
Althogh Mozilla are aggressevly pushing AI into FF.
-
AmyMalik
They're ultimately both controlled by Google.
-
ant-x
Is FF not a wee-bit more independent?
-
AmyMalik
I may be wrong but I suspect that when I was a kid, you could have a desktop cube, a multi-protocol IM (still necessary today, for your information), email check, and do tasks that are properly a web browser's demesne with something like 1G of RAM. I don't know how much swap one would've had at the time, but I imagine that I'm giving that 1G estimate including all swap space.
-
AmyMalik
ant-x, Would surprise me.
-
wavefunction
Yep. And when you have webkit (Apple -> Google), it's all the same engine underneath. Ladybird and whatnot will need to be bug-for-bug compatible or you won't be able to submit your taxes online or whatever.
-
AmyMalik
wavefunction, You won't be able to do your taxes online even if it is bug for bug compatible. The CRA won't let you do it.
-
wavefunction
ant-x: FF is Not independent. Nominally yes, but in reality no.
-
wavefunction
AmyMalik: CRA?
-
ant-x
Hopefully, the dependency on bugs will fade. Even now many corporate websites work in FF OK.
-
AmyMalik
The revenue department in Canada.
-
wavefunction
AmyMalik: Fair - I was more using that as a stand in for "doing <important task online>"
-
wavefunction
So, the webkit engine isn't bad. How the engine works is fine, and having Google/Apple/Moz throw money at the engine is also fine. I think the big question is around the UI and user-controls.
-
wavefunction
If we can say "unload these tabs" and the engine actually releases the memory, $SUCCESS
-
AmyMalik
2.5 G of RAM at idle, I think at that juncture you have to throw the entire bus away.
-
wavefunction
That much ram at idle, I'd wonder what it's all doing in the background. "Is there an option to unload Pocket?"
-
wavefunction
etc
-
AmyMalik
I have a few addons in, but even without them it's no better.
-
AmyMalik
(like I created an empty profile and it was still just as bad)
-
wavefunction
That's what I mean though - what AI crap, or acconut sync, or local-translation module is getting loaded up because Mozilla said so
-
AmyMalik
One dreams of having more RAM to be able to do more with their computer, not to be able to keep doing what they did last year.
-
ant-x
^ Check.
-
hodapp
and *has* to only dream of it, because of OpenAI's antics in the RAM market driving the prices waaaaaaay up
-
Macer
and then jellyfin won't start with no logs 🤦🏻♂️
-
markmcb
was toying with mac_do and mdo. seems a good design choice, but wouldn't it make sense to still have the option for the user to enter their password? i.e., while it guards against sophisticated attacks doesn't it open up more the simple "I typed something on your unlocked computer" attack?
-
AmyMalik
hodapp, Even before that, though.
-
nimaje
I like the UI of qutebrowser, but yeah qt-webengine is a bit of a memory hog being chromium based
-
AmyMalik
I was basically expanding RAM capacity to keep up. Compilers were getting bigger, web browsers of course, email clients, IMs were moving into the browser, those that didn't work getting bigger