-
skyenet
Does FreeBSD have anything similar to Linux's /proc/pressure/memory or MacOS's NOTE_VM_PRESSURE, where a program can be notified when the system/cgroup is low on memory
-
clod
skyenet: not that I'm aware of
-
skyenet
clod: hmm, is there some API that could still give similar information? perhaps via polling
-
glenny1
does FreeBSD have any kind of protection that prevents it from showing something as associated with a privatekey in a file?
-
clod
closest option according to searhes are vm.stats.vm.v_free_count and things like that
-
clod
skyenet: polling with sysctl
-
clod
sysctl vm.stats.vm.v_free_count vm.stats.vm.v_free_min vm.stats.vm.v_free_target vm.stats.vm.v_inactive_count
-
glenny1
nm, i realize what i did wrong
-
glenny2
i am planning to post my issue with my sound card to the FreeBSD forums. what information should i include?
-
johnjay
at minimum release number (uname) and your chipset type. also kldstat i'd imagine to show what sound drivers the kernel has loaded
-
nimaje
glenny2: putting /var/run/dmesg.boot on
dmesgd.nycbug.org/dmesgd and linking that would also be a good idea
-
runxiyu
patch to -wireless
-
ant-x
rwp, I have tried ``camcontrol apm da0 -l 254'' -- no effect.
-
runxiyu
-
runxiyu
thoughts?
-
runxiyu
installing arcanist
-
polarian
so I got a null modem adapter and I still cant seem to figure out how to get serial to work
-
polarian
I see the interface server side
-
polarian
client side I have a DB9 M/F NM adapter plugged into a through cable plugged into my laptop usb port
-
polarian
I dont see anything in dmesg
-
polarian
and ls /dev/tty* shows no changes
-
polarian
this is starting to feel helpless
-
ant-x
polarian, Have you tried the mailinsg lists, the official issue tracker?
-
polarian
ant-x: this isnt a bug, this is a me issue
-
polarian
and I dont like using mailing lists as I make a fool of myself
-
polarian
lol
-
ant-x
What? Did you develop all the hardware and components involved :-?
-
polarian
no
-
polarian
the point is, I cant figure out how to get it working
-
ant-x
It may not be a 100% you-issue, then...
-
ant-x
Better make fun of yourself and get it working than vice versa, then.
-
psycorama
serial port issues are crossed RX-TX lines, 80% of the time
-
polarian
psycorama: elaborate, you want to cross them so that RX is connected to the TX on the other end, and vice versa
-
polarian
do you mean that you have crossed it again so that you have RX crossed to RX?
-
psycorama
no matter how much attention i pay for wiring it up. 80% of the time i'll have to cross it again
-
psycorama
usually you'll net to connect RX to TX (as both sides are labeled as seeing themself)
-
polarian
It worked fine when I was using usb ttl cables
-
polarian
soldered together RX-TX TX-RX
-
polarian
that worked flawlessly, issue is I cant decrypt a FDE using that
-
psycorama
the null-modem adapter, does it expect rs-232 signal levels?
-
psycorama
but your real problems seems to be, the adapter not being recognised.
-
polarian
psycorama: JCOM port on motherboard, connected to it is
startech.com/en-us/cables/plate9m16 which shows up within the server dmesg, so success there
-
polarian
-
polarian
with a generic through DB9 --> USB cable
-
polarian
I cant for the life of me plug this into any device for serial access
-
polarian
I wonder if I plugged in the adapter the wrong way to the motherboard
-
polarian
there was no marking on the motherboard which is pin 1
-
polarian
so I just yoloed and plugged it in one way
-
polarian
and it showed up
-
polarian
So I assumed it was plugged in correctly
-
polarian
maybe I should flip it around and see?
-
polarian
wait dumb question I should totally do that xD
-
psycorama
what can possibly go wrong? :)
-
polarian
I blow the motherboard :p
-
psycorama
that might be expensive
-
polarian
but apart from that I honestly dont know what more I could try
-
psycorama
the connector plugged into the motherboards JCOM port is totally passiv. so the OS should see the port regardless of anything plugged into it.
-
polarian
psycorama: weirdly enough it doesn't...
-
polarian
ttyu0 didnt exist until I plugged into the JCOM port
-
polarian
or maybe im just blind
-
polarian
but I doubt it
-
polarian
but yeah I assumed it would be passive, its just an adapter
-
psycorama
there might be some shenanigans whith a sense pin against the gnd/shield.
-
polarian
lemme flip it around and see what happens
-
psycorama
is there documentation for the board?
-
polarian
nothing about the JCOM port funny enough
-
polarian
and honestly I forgot which board it is
-
polarian
and im not stripping the server to find out
-
polarian
if I dont need to ofc
-
psycorama
yeah, understandable
-
f451
polarian: whats the serial problem?
-
polarian
f451: well the problem is nothing shows up on the client side
-
f451
is the client side freebsd?
-
polarian
yes
-
polarian
and the server side is freebsd
-
f451
whats the cable? null modem or ttl <> usb
-
polarian
listed above
-
f451
i cant see it as i had to reboot
-
polarian
-
f451
ok lemme look
-
f451
dumb q but is the port turned on in the bios?
-
polarian
f451: I dont see anything about it in the bios lol
-
polarian
-
polarian
and theres a /dev/ttyu0
-
polarian
server side
-
psycorama
does connecting RX-TX on server (and client) give you echo on the consoles?
-
f451
ok - that
bpa.st/UHPA thats server?
-
f451
and it's /dev/ttyu0 not /dev/ttyU0
-
f451
?
-
polarian
f451: yes
-
polarian
U0 would be usb based
-
polarian
afaik
-
f451
ls -lah /dev/cua* ?
-
f451
no - U) the caps means carrier is high
-
polarian
-
f451
U in caps in that context means the carrier is high
-
polarian
ah
-
polarian
makes sense
-
f451
i have 2x serial ports connected /dev/cuaU0 /dev/cuaU1 both with init and lock
-
polarian
wait did you want this on the server or clie nt
-
polarian
this is still server side jsyn
-
polarian
I said to psy that I would flip around the connector on the mobo
-
polarian
see if it helps
-
f451
yes those things i posted were from the client part
-
polarian
there is no pin on the board
-
polarian
f451: well the server has cua and tty
-
f451
let me check my server side
-
polarian
im currently mid make installworld, in 1 min I will pull the server apart and flip the connector on the mobo
-
polarian
see if that does anything
-
polarian
theres no pin markings so I just plugged it in one way and hoped it would work
-
polarian
and then forgot about it while waiting for the nullmodem adapter
-
f451
hehee
-
polarian
if that makes no difference then im clueless
-
polarian
I dont see much more what I can try, server side looks fine
-
f451
what i was going to suggest was if, on booting you saw, once removed, still, the 16550A uart
-
f451
that card thing
-
polarian
its an adapter
-
polarian
so it might still show up
-
f451
if you pulled that do you still see 16550A when the server boots in dmesg
-
polarian
but I dont remember seeing a ttyu* without having the header in use
-
polarian
so maybe theres a pin there to detect if a adapter is connected?
-
polarian
I dont know how JCOM works so yeah
-
polarian
f451: will pull it boot it and then I will flip it around then
-
f451
id like to make sure its the card being detected which is why im saying pull it
-
polarian
yeah
-
f451
btw on a rpi1b 'server' - the ttl end of the serial is plugged into rpi4 gpio pins to get console, the other end into a usb port on the rpi1
-
f451
has /dev/cuaU0
-
f451
same with /dev/ttyU0
-
f451
i guess the rpi1 is also a 'client' thinking about it
-
f451
brb
-
polarian
f451: I cant even decrypt my server at this point as all the keyboards are defective lol
-
LXGHTNXNG
congrats
-
polarian
-
polarian
still there with flipping the connector to the mobo
-
polarian
theres also uart: ns8250: UART FCR is broken (0x1)
-
polarian
but this afaik means nothing
-
polarian
I read in some bug that this wont cause any issues
-
polarian
nope still nothing
-
polarian
lemme dmidecode the mobo and see if I can find anything in the docs but im clueless on what to do
-
polarian
-
polarian
interfaces
-
polarian
-
polarian
this is with NOTHING plugged into the jcom port
-
polarian
there is a keyboard ethernet and power, nothing else plugged into the mobo
-
polarian
lemme dmidecode and see if I can find the mobo
-
mage
anyone is using Anubis ? I've added -difficulty 4 to the rc.conf but I'm still getting 2 ... any idea?
-
mage
I've set anubis_args="-difficulty 4 -target "
0.0.0.0" -bind "192.168.0.50:8923" -hs512-secret xxx -cookie-dynamic-domain"
-
mage
(there is an HAProxy in front)
-
polarian
f451: omfg, maybe both cables are nullmodems, but wait no that means one would counteract the other
-
polarian
-
polarian
so I dmidecoded and found the mobo, and found this
-
polarian
the pinout for it
-
polarian
-
polarian
the pinout for the plate adapter is a through adapter, cool
-
polarian
-
polarian
thats the rs232 pinout
-
polarian
2 is receieved and 3 is transmit
-
polarian
so a nullmodem will cross 2 and 3 over
-
polarian
and the pinout from the mobo shows pin 2 is rx and pin 3 is tx
-
polarian
so with through, you would have rx-rx tx-tx
-
polarian
-
polarian
no pinout but if startech is to be trusted, the rx/tx pins are flipped
-
polarian
wait I wonder if it matters what way around the M/F is
-
polarian
because its plugged in F/M
-
polarian
maybe this is going to need some electronics testing
-
polarian
using a multimeter and some paperclips
-
f451
back
-
f451
polarian: in an x2 box theres a standard serial port, it's that old
-
f451
i use this:
-
f451
-
RP
Hi,I don't suppose anyone could tell me how to list the open files/locks an nfs client has on a freebsd based nfs server?
-
RP
We've a freebsd nfs server and a load of linux clients. The server shows nfsd at 5580% cpu, 10-15k of open files and a few hundred locks for most of the clients according to nfsdumpstate. The linux nfs clients don't seem to think they have any open files/locks.
-
elivoncoder
hi rp, id be interested in that too
-
RP
I'm open to any pointers on how to debug something like this...
-
rwp
Honestly I would probably start by rebooting the nfsd server so that it would start from a known good state. nfsdumpstate immediately after boot. Then watch to see if there is some resource leak happening.
-
RP
The server does this every Friday, we reboot the clients every Monday. I suspect it builds to the point it breaks
-
RP
so yes, I can reboot it but that isn't really going to help me
-
rwp
Hmm... Well... I have no more ideas. Good hunting!
-
RP
thanks! :)
-
lts
Reboot more often? :-)
-
RP
I thought bsd was better than that! (he says laughing) :)
-
lts
It should be, but sadly the lack of resources sometimes shows
-
RP
I know the feeling. FWIW I'm from the Yocto Project and the server in question sits in the middle of our CI which is currently dead in the water due to this :/
-
mason
RP: Which NFS protocol are you using? That might matter for this.
-
mason
Ooh... And you're not running straight FreeBSD on your NFS server.
-
mason
(At least, that's what I'm gathering from "freebsd based".)
-
RP
mason: nfs 4.2
-
mason
There are a couple knobs noted here, at least one lock-related:
man.freebsd.org/cgi/man.cgi?query=nfsv4(4)
-
RP
mason: it should be a standard freebsd install of 14.4
-
RP
mason: I hadn't spotted that page, I'll have a better read. I think we just use file locking, not byte range locking though
-
mason
I'd be curious what locks are being held. Might be possible to explore with DDB.
docs.freebsd.org/en/books/developer…kerneldebug/#kerneldebug-online-ddb
-
RP
Unfortunately this system is doing other things I really don't want to interrupt so that kind of debugging may not be a good idea. Is there any other way to find out the locks being held?
-
mason
RP: There's lockstat, but you'll want to set that up in advance.
-
mason
RP: Hm, I've never used this, but I just noticed /usr/sbin/clear_locks
-
mason
lockstat might not be useful - wrong locks :P
-
RP
so many different kinds of locking...
-
mason
RP: Might be worth sending an email here to get some targeted advice:
lists.freebsd.org/subscription/freebsd-fs
-
mason
RP: Also looks like you can run rpc.lockd with debugging turned on.
-
RP
thanks, I'll send something and ask
-
spork_css
should "mount_udf" be able to mount a win 10 install dvd/iso?
-
mason
I'd welcome critiques here. I'm very, very new to pkgbase:
wiki.freebsd.org/MasonLoringBliss/PkgBaseChroot
-
jbo
everyone is new to pkgbase.
-
skered
pkg-version doesn't work with pkgbase?
-
mason
jbo: pkg search confirms that there is FreeBSD-set-base-jail-15.1 and some related jail packages and I bet I should be using those instead. Will test them this weekend.