-
kevans
kerneldove: cpuset would pin it to whatever cores you limit it to, rctl would let it run on all but potentially throttle it every second or so
-
kerneldove
kevans, is the throttling smooth and just slows down jail's usage or is it an abrupt halt kinda thing?
-
kerneldove
is cpuset more efficient or any other advantage to using it vs setting rctl pcpu to 100%?
-
kevans
kerneldove: my recollection of how the cputime rctl is implemented is that it's not really smooth, but worth trying for yourself anad observing
-
kerneldove
ok i'll just cpuset 1 core for each jail, then use rctl to limit memory. ty kevans
-
SponiX
-
kerneldove
if aesni kernel module is included by default now, why's it still (as of 14.3) added to /boot/loader.conf pls?
-
kerneldove
specifically aesni_load="YES"
-
kerneldove
and i see also cryptodev_load="YES" is still in 14.3 /boot/loader.conf, but i thought if aesni is used (and it's included by default in GENERIC supposedly) then cryptodev shouldn't be loaded also
-
ivy
kerneldove: according to usr.sbin/bsdinstall/scripts/zfsboot, it's added automatically if you install on GELI to ensure crypto is accelerated. this seems reasonable because aesni might not be compiled into the kernel
-
kerneldove
but it's added automatically to GENERIC right? aesni i mean
-
ivy
cryptodev is what lets you use hardware crypto (like AES-NI) from userland, so you need both if you want to do that and your hardware has AES-NI
-
ivy
yes, aesni is in GENERIC, so if you're running GENERIC you can remove that from loader.conf
-
kerneldove
i searched GENERIC for "aes" didn't find. is it implied with device crypto?
-
ivy
-
kerneldove
-
kerneldove
shouldn't they match?
-
ivy
-
kerneldove
wtf
-
ivy
the master branch should probably be deleted from github, it doesn't exist in src anymore, i'll mention that to imp
-
kerneldove
tyvm
-
kerneldove
surprised github didn't give option to redirect master -> main
-
kerneldove
so if we have aesni loaded, which is automatic with GENERIC, we also want cryptodev loaded so the aesni can be used from userspace?
-
ivy
probably yes, although i'm not sure how userland consumers handle this... AES-NI isn't privileged so they could just call it directly if they have support
-
kerneldove
hm ok. i read (can't find link now) that dev crypto which is included in GENERIC supercedes cryptodev which is older and slower so cryptodev isn't actually needed anymore. know anything about that?
-
ivy
i don't know the answer to that
-
kerneldove
-
kerneldove
-
ivy
that seems like a different issue to do with openssl using cryptodev instead of its own AES-NI implementation... and it's 10 years old so it might have been fixed
-
ivy
> I don't think that OpenVPN requires cryptodev, it uses OpenSSL's evp engine which is capable of using the AES-NI instructions without using the aesni module. If OpenSSL finds cryptodev and aesni is loaded, then it will use cryptodev and slow things down.
-
kerneldove
but
redmine.pfsense.org/issues/5976 where it talks about perf being lower it doesn't mention openssl so maybe it's more general?
-
kerneldove
but yea it is pretty old issue
-
kerneldove
i guess since 14.3 adds cryptodev_load="YES" i'll use it too. i figure devs would have removed it by now if it was actually better to not have it
-
kerneldove
do you know how we can see if 15 still adds it? i'll look for " usr.sbin/bsdinstall/scripts/zfsboot" in a 15 branch
-
ivy
i found it with "git grep aesni_load", so try that
-
kerneldove
-
ivy
yes, main is 15 (at least for now, it will become 16 shortly when stable/15 is branched)
-
kerneldove
-
kerneldove
-
ivy
zfsboot adds aesni, not cryptodev, i don't know where cryptodev_load comes from off hand
-
kerneldove
-
kerneldove
-
kerneldove
looks like it's on its way out as of 15!
-
kerneldove
we got to the bottom of it together
-
kerneldove
github.com/freebsd/freebsd-src/blob…in/bsdinstall/scripts/zfsboot#L1403 looks like aesni_load="YES" IS still added to loader.conf when zfs encryption (geli) is enabled as of 15
-
kerneldove
so i'll use it too
-
kerneldove
ty
-
_opr
hi everyone, recently i discovered we can run docker in freebsd with docker-machine, for some reason my laptop likes this virtualbox more than bhyve. i'm saying this only because when running bhyve, cpu is going up to 80 degrees but with virtualbox, cpu barely raises temp. I cannot find any source distinguishing these two performance wise, far as I know docker should have the same con as resource consuming
-
_opr
as bhyve. anyone has any tips? Thanks.
-
kerneldove
wow
-
kerneldove
i thought bhyve was prety mature?
-
tsoome
file a bug.
-
pertho
How do I run /usr/local/wine-proton/bin/pkg32.sh install wine-proton mesa-dri in a Jail? I am getting an error: pkg -o ABI_FILE=/usr/lib32/libc.so.7 -o INSTALL_AS_USER=true -o RUN_SCRIPTS=false --rootdir /home/jailuser/.i386-wine-pkg install wine-proton mesa-dri pkg: Unable to determine the ABI, none of the ABI_FILEs can be read.
-
pertho
(there is no /usr/lib32/libc.so.7 in the jail.. presumably for security porpoises :) )
-
ivy
pertho: you probably need the lib32 set to install 32-bit package, that includes 32-bit libc
-
pertho
I installed the jail with Bastille.. guess I had to modify it . thanks!
-
pertho
what's the best way to make sure linprocs (/proc) is mounted in the jail?
-
ivy
set allow.mount.linprocfs (read the note in jail(8)) then you should be able to mount it in the jail's /etc/fstab
-
pertho
ah right.. so the allow.mount.linprocfs needs setting first then add it to the /etc/fstab?
-
ivy
hm, although looking at the rc script, jails may not mount from fstab
-
ivy
apparently /etc/rc.d/linux is supposed to do this, but it looks like it's not set up to run in a jail
-
ivy
as a workaround you could mount it using a jail-specific fstab on the host (mount.fstab)
-
pertho
bastille has a fstab under jails/jailname/
-
pertho
but I'm not sure what to put in it to mount /proc
-
pertho
would have thought I would need to nullfs mount /proc from the host?
-
ivy
do you want Linux /proc or FreeBSD /proc? usually linprocfs is mounted on /compat/linux/proc
-
pertho
hmm that's a good question.. I was testing this WINE app with FreeBSD's /proc but I wonder if Linux's /proc would be more compatible with it since this WINE app uses some linuxisms to detect things..
-
pertho
because I don't fully trust the app, I want to send it to jail :)
-
mosaid
Hi
-
ivy
well, either way procfs(4) and linprocfs(4) both document the required fstab entry, so if bastille has an fstab for the jail, you can put it there. normally a jail fstab needs the jail root prepended to the mountpoint, but i don't know if bastille works like that, i've never used it
-
mosaid
got another strange staff here :P
-
mosaid
I fixed it but wanted to mention that since the new upgrade, I am getting wrong architecture error Msgs when using pkg add; to install some old stuff..
-
mosaid
For example: wrong architecture: FreeBSD:11:amd64 instead of FreeBSD:13:amd64
-
mosaid
I even can't force install it, this wasn't happening in 13.2
-
pertho
ivy: 'bastille mount <jailname> /compat/linux/proc /proc' seems to have done the trick
-
divlamir
To make it persistent you should add it to the jail's fstab: `bastille edit <jail> fstab`
-
pertho
if I wanted to trace whether a WINE app I'm running is failing due to W^X or ASLR constraints, what's the best tool to determine that? ktrace/kdump doesn't seem to give enough useful output. Do I try dtrace? (I've never used dtrace before)
-
pertho
also the WINE debugging is a bloody nightmare.. produces gigs of logs which are near impossible to parse
-
divlamir
Try truss(1)
-
pertho
doesn't seem to help either.. I get a bunch of freebsd32_mmap() calls which end in ERR#12 'Cannot allocate memory'
-
pertho
is it normal for truss to keep running and make the cpu race after the app has quit?
-
pertho
the app I'm truss'ing keeps running in the background somehow
-
pertho
I don't think truss(1) is the right tool for this
-
divlamir
If it's some old Windows program you may change the Windows version to an older one in winecfg. Or just run it in a vm
-
Ltning
Is there a public progress bar for the package builders? :)
-
[tj]
yeah
-
[tj]
-
[tj]
is the in progress main build
-
Ltning
Oh wow. Just found out why that link didn't work last time I tested -- *.freebsd.org is on my unbound blocklist. Wtf.
-
ivy
rude
-
Ltning
Very.
-
[tj]
don't leave that page open
-
[tj]
its pull a 7MB json file in a loop
-
Ltning
Oops. I SSH'ed in and pkill -9 firefox now. Sorry :(
-
mosaid
I think we need something like LTS for Freebsd
-
mosaid
Still fixing many broken stuff, while I will need to upgrade after 7 months for now..
-
mosaid
*from
-
mzar
LTS ? each major release is LTS
-
mosaid
mzar: even minor ones break
-
mosaid
Look at Solaris it's LTS lasts for nearly +25 years
-
kevans
we have a hard enough time supporting releases that are only 4-5 years old
-
kevans
realistically we do not have the resources
-
mosaid
I am a desktop user, FreeBSD devs need to take care of us
-
kevans
are you funding freebsd development?
-
ivy
the oldest supported Solaris release was released in 2015, which is 10 years ago, comparable to Ubuntu and RHEL, and if you've used Solaris, you know that patches frequently break things - the update releases are just as risky as upgrading FreeBSD x.y to x.y+1
-
kevans
this is very demanding without a plot for where the resourcing comes from
-
mosaid
heh, no
-
kevans
the reality is that we're a volunteer project without a real corporate backer to make things like this feasible
-
mosaid
kevans: I can make something better, if you need resources I can afford a big part of it
-
ivy
fwiw, if you have money, you're free to provide your own support for older freebsd releases for as long as you want
-
ivy
there's no actual reason freebsd.org needs to do that, necessarily
-
ivy
(also, i tend to think ports support is a much more serious issue, but no one wants to fund that because most large corporate users aren't using ports, because it's not reliable, so kind of a vicious circle)
-
mosaid
Then you need resources for ports?
-
ivy
ports is a complicated problem, i don't think you can just throw money at it
-
mosaid
Not money
-
ivy
src is pretty straightforward in comparison
-
mosaid
but Servers
-
mzar
mosaid: sure, we need, CPU cyccles for building, hands for testing and maintaing ports tree, feel free to help
-
ivy
servers would improve build times, but what it really needs is developers, and maybe management
-
mosaid
How much resources do you have right now?
-
kevans
sorry for being dick-ish here, this is a thing that comes up not infrequently and often folks just don't understand how our project is developed
-
mzar
mosaid: TBH, desktop users are key users, don't hesitate to install FreeBSD on you PC
-
mosaid
I never used any kind of OS rather than Freebsd for nearly 6 years
-
mosaid
and I liked it
-
mzar
OK, that's excellent
-
mosaid
But when upgrade time comes..
-
Ltning
I found that when upgrade time comes I often mess things up because I didn't RTFM and still do certain things the same way I've done it for 20+ years :D
-
mzar
I am running old school upgrades, (make ...) that's best, supported since the beginning
-
mosaid
mzar: my installation is super complicated, new stuff + old stuff (really really old stuff)
-
mosaid
easy to break
-
lessless2
I'm trying to setup Skylake GT2 [HD Graphics 520]. Do I only need to install drm-kmod and add i915kms to the kld_list?
-
mosaid
every time I update something will surly break
-
mzar
same here, my systems were installed in early 2000s and are continuously upgraded (those from 1990 are already wiped)
-
mosaid
Old user then.. nice :)
-
mosaid
lessless2: I think yes
-
mosaid
-
mosaid
see this very useful
-
mosaid
Back again to resources, I will try to afford some of my servers in near future
-
mosaid
if you needed that
-
kevans
physical resourcing isn't the only consideration in a request like that, though
-
kevans
like, yes, we would need more builders, more space to mirror out packages, etc., but we also need the people-resources to actually backport on that kind of timeline
-
kevans
even just four years down the line, the tree will look significantly different than it does today
-
kevans
things get more and more non-trivial to backport, that time has to come from somewhere
-
mzar
kevans and all involved: good job, thanks for your hard work !
-
mosaid
Some strange question could I run Linuxulator with centos and ubuntu installed in same time?
-
mosaid
Like will it cause some problem when sharing the same directories
-
nxjoseph
mosaid: there is a sysctl value: compat.linux.emul_path: Linux runtime environment path. I think that means only one linux emulation environment can be run at the same time.
-
nxjoseph
it defaults to /compat/linux
-
kerneldove
on all my servers i see like 8 getty command processes running in ttyin state. is that ram going to waste?
-
» ivy ponders rewriting ports in lua
-
nxjoseph
* asdasd
-
nxjoseph
ivy: how did you write your last msg?
-
ivy
nxjoseph: it's called in action, in most IRC clients "/me does something" is the command for it
-
ivy
s/in action/an action
-
» nxjoseph tries to try his new knowledge
-
nxjoseph
ivy: thanks!
-
nxjoseph
im new in irc
-
rwp
nxjoseph, Most IRC clients consume lines that start with a / such as /me or /join or /part. But what if you want to start a line with something like /usr/local/bin ? In that case use the /say action. /say /usr/local/bin will not consume the /usr part as a command and will say it.
-
regis
rwp: / /
-
rwp
kerneldove, Multiple processes will share code pages in memory. You need to have at least one getty running for being able to log into the console. Having a small number of additional of those processes running will consume a miniscule amount of copied-on-written data memory since there is little data there. Having 8 getty processes versus 1 or 2 is insignificant of resources but hugely useful when needed.
-
rwp
It's also a good reason that having swap configured is useful. If the kernel needs memory and there are pages wasted holding something that isn't being used then those pages can be pushed to swap storage and the ram freed up for use for other things. It's all dynamic, automatic, and useful.
-
kerneldove
ah ok
-
kerneldove
tyvm
-
_opr
kerneldove: yes, that's the beauty of it i'm 100% sure. but what's happening is intersting, running docker microservices for a web doesnt cause as much cpu as bhyve... if i want to fire up like 3 byhve hosts on my laptop, it would burn... not sure why.
-
_opr
tsoome: XD they will say go back to dig yourself why.
-
kerneldove
_opr maybe file a bug with a reproducible case?
-
_opr
kerneldove: problem is is this qualified as a bug, no issues when using bhyve and it's solid, just performance wise, eating a lot of CPU and that's it. It's always the case, fireup byhyve host, my laptop CPU is about 70-80 degrees, yet not much impact from those docker containers (3 at least). What I have in mind is these containers are all running in one docker-machine host on virtualbox, but again, it's
-
_opr
virtualbox we're talking about. Just my guess. I'll see what I can do. thx guys.
-
kerneldove
_opr, sure, performance outliers are helpful for devs to know about. just do all you can to make it concise and include reproducibility steps
-
kerneldove
devs are really good about addressing bug reports when we make it easy for them
-
TommyC
Usually I just say "it doesn't work" and pat myself on the back for another fine bug report. /s
-
_opr
XD
-
_opr
kerneldove: Thanks for the tips.
-
kerneldove
yw