-
creith
I can send you the exact confiuration
-
creith
Anyway, the first thing would be the capsicumize the base system ... that would be a step
-
creith
I would love to help
-
creith
if a pledged application tries a system call, it is not allowed to, it will be aborted
-
creith
but the idea behind unveil was that an attacker can not see the difference between an unveil and an unexisting file, therefore ENOEnT
-
RhodiumToad
poke through src/usr.bin and see which ones (a) don't already link to libcasper (see Makefile) and (b) look like possible candidates for it
-
creith
@ RhodiumToad I will do
-
creith
Though I think the daemons are appropriate candidates ... but maybe that's just what I have been doing for too long
-
creith
usr.bin is fine
-
creith
what is the general philosophy ? trying to keep with Linux ?
-
RhodiumToad
philosophy of what exactly?
-
creith
well, one thing I like about OpenBSD is the idea of radical simplicity
-
creith
have a look at the echo.c at FreeBSD ... is this a show off of C11 ? NetBSD and OpenBSD keep it with a simple iteration over argv
-
creith
this is what I sometimes don't understand
-
creith
in the source code
-
RhodiumToad
what in there is C11?
-
» checkpoint has just lookped through /usr/src/bin/echo/main.c and could admit that man page for echo is bigger than the source code
-
RhodiumToad
looking at the history, it seems that once upon a time someone decided that echo could be made smaller by not using stdio (back when /bin could not be dynamic-linked this was more important, and still matters a bit for /rescue),
-
RhodiumToad
and then it was changed to use writev() to restore the previous performance
-
RhodiumToad
(we're talking 2002-2003 here)
-
creith
once upon time ... I would like to meet Ken Thompaon ... but it will never happen ,,,
-
» RhodiumToad remembers when you could boot off two floppies
-
creith
oh, writev() was 99 ... sorry, I get old
-
RhodiumToad
writev has been in BSD since... about forever?
-
RhodiumToad
since 4.2BSD anyway
-
RhodiumToad
and therefore since 1983
-
creith
I remember a Schneider CPC128 ... you didn't need floppies to boot
-
creith
1983 was UNIX very far away from me, I was 8
-
RhodiumToad
I first used unix in about 1988
-
RhodiumToad
and freebsd in 1997
-
creith
writev is that old ... ok ... forgive the young guy
-
creith
My first Linux was in 1996, the X configuration shredded my gf's monitor
-
RhodiumToad
looks like writev was added to the spec in XPG4.2
-
creith
hahaha
-
RhodiumToad
ah, the days of writing your own modelines for X
-
creith
I am not good in history ... I still think it's overkill for echo
-
RhodiumToad
using writev?
-
creith
oh yes, the modelines
-
RhodiumToad
looping over write() uses a lot of system cpu for echoing many arguments
-
creith
echo can be written in still plain 89 C in 20 lines ...
-
creith
hey, it was just an example .. the simplest I could think of
-
RhodiumToad
looping over puts() doesn't use much system cpu but, as I said, back in the days when /bin had to be static linked it bloats the binary quite a bit
-
RhodiumToad
arguably it could be changed back to using stdio now that it's dynamic linked
-
creith
FreeBSD tends to have bloated coat ... but hey it's Friday
-
creith
I don't care much about the 1970s
-
creith
UNIX survived becaused it was simple and therefore adoptable
-
creith
Greetings VMS ... rest in peace ... I love you
-
creith
I will go through usr.bin tomorrow
-
creith
Good night everyone
-
RhodiumToad
anyone know any reason why a usb thumb drive, unused but plugged in for some weeks/months, would decide to become extremely slow to read?
-
RhodiumToad
as in ~3MB/sec for a usb3 device on a usb3 port
-
RhodiumToad
I'm pretty sure it was not this slow originally
-
checkpoint
RhodiumToad: electrons caught in NAND cells become tired and need rest ?
-
RhodiumToad
that is _almost_ a thing :-)
-
RhodiumToad
flash cells do need to be written again after a certain number of reads
-
RhodiumToad
but (a) nothing was reading the drive and (b) I just completed a full read of all blocks and it's _still_ slow
-
checkpoint
is writing slow as well ?
-
RhodiumToad
haven't tried
-
RhodiumToad
but writing is usually pretty slow anyway
-
checkpoint
3MB/s is way too slow
-
RhodiumToad
indeed
-
RhodiumToad
esp. for a usb3 device
-
checkpoint
good old SD/MMC class 10 does 15MB/s on regular 4 bit socket
-
checkpoint
did you try reading it in different USB port ?
-
RhodiumToad
yes, no change
-
RhodiumToad
also if I stick a usb3 sdcard reader in the same port I can get 80MB/sec reads
-
RhodiumToad
sec, I should have another thumbdrive of the same type, unused since purchase - lemme find it
-
checkpoint
as it was long time powered, perhaps a voltage regulator got broken which leads to higher error rate
-
checkpoint
hence more retransmits/re-reads
-
RhodiumToad
ok, unused device of the same type is giving ~95MB/s
-
RhodiumToad
so it's definitely not the port :-)
-
jauntyd
whew!
-
RhodiumToad
no errors are being shown at the USB bus level, so if there are errors/retries then it's inside the device
-
RhodiumToad
interesting. write speed when writing zeros to the dodgy device is very high
-
RhodiumToad
oh wait, scratch that, it just dropped
-
jauntyd
95MB/s? I don't get but 55MB/s or so
-
RhodiumToad
it'll depend a lot on the device I suspect
-
RhodiumToad
fastest usb3 drive I have does >220MB/s
-
jauntyd
i've hit 200MB/s or so but it doesn't sustain
-
jauntyd
that's good
-
jauntyd
220 *whistles*
-
spork_css
Anyone know how to set what IP a jail uses as a source address when using iocage?
-
spork_css
I've got two external IPs on a jail - one "fixed", the other a CARP IP, which may or may not be up depending on the status of the other CARP member on another host.
-
RhodiumToad
vnet jail?
-
spork_css
The jail insists on sending traffic out the CARP interface even when it's in "BACKUP" mode.
-
spork_css
Nope, old-fashioned non-VNET.
-
spork_css
VNET is my next step if I can't figure this out, but I've never used VNET in production, so wasn't crazy about testing it out.
-
RhodiumToad
what do ip4.addr and ip4.saddrsel end up set to on the jail?
-
spork_css
I've tried changing the order in the "ip4_addr" parameter, and tried "ip4_saddrsel" set to "0" and "1" with the same result.
-
spork_css
Testing at home this was fine, but I also had a simpler setup with only a single interface - the actual hosts have an internal and external NIC which seems to play some role in this not quite working.
-
RhodiumToad
is the CARP address uses only for a service running in this jail, and not for anything else on the host?
-
spork_css
Actually, I take that back about "ip4_saddrsel" - with it set to "0", I can reach the internal network, the external only if the CARP IP is MASTER, and if I set "ip4_saddrsel" to "1" I lose connectivity to the internal network (which is where my DNS resides).
-
spork_css
Correct only on the jail.
-
spork_css
And I may have a need to move it from host to host in the future.
-
RhodiumToad
vnet's probably the way to go then
-
spork_css
Yeah, that would make it even more "portable" in that I wouldn't have to have any CARP junk in rc.conf.
-
spork_css
ALthough I'm not finding confirmation CARP on VNET is actually supported.
-
spork_css
I'm really puzzled on what setting "ip4_saddrsel" does to break the internal network.
-
spork_css
The jail (and iocage) manpages are not super clear on what exactly "ip4_saddrsel" - they both use language that references some other part of the manpage that I'm not seeing.
-
spork_css
But I feel like what it might be doing is forcing all the internal net traffic out the primary (external).
-
» spork_css goes to tcpdump this
-
spork_css
Yep, pinging something in the internal net sources the ping from the external.
-
RhodiumToad
remember that source address selection doesn't necessarily control what interface is used, just what the source address in the packet is
-
spork_css
Yeah, I'm seeing that with tcpdump - source from an external IP, but going out the internal net interface.
-
RhodiumToad
if source address selection isn't forced, then it should normally match the interface
-
spork_css
Just wish there was a way to specify (with "ip4_saddrsel" set to "0"), which IP, by default, traffic is sourced from inside the jail.
-
RhodiumToad
since the default is to try and route the packet to its destination, and pick the outgoing interface's primary address as the source address
-
spork_css
Config order doesn't do it.
-
RhodiumToad
the order of ip4.addrs matters only when normal source address selection fails to match one of the IPs that the jail is allowed to use
-
spork_css
And I have it backwards up there, I meant "(with "ip4_saddrsel" set to "1")" not "0".
-
RhodiumToad
vnet is at least potentially simpler to understand since the jail has its own network stack to itself
-
spork_css
This kind of puzzles me:
-
spork_css
[root@clwebX /home/spork]# iocage get ip4_addr haproxy02
-
spork_css
ext0|1.2.3.247,1.2.3.248,int0|10.99.88.241/32
-
spork_css
I would think 1.2.3.247 would be the default source address, but in any order, it always sources from 1.2.3.248 (which is the CARP IP). Just odd, seems like it should be configurable in some way.
-
spork_css
I do not use the "interface|IP" form for the CARP IP because then I end up with the an extra alias for the CARP IP.
-
spork_css
(manpage says specifying an interface forces creating an alias)
-
RhodiumToad
the one thing I'm unsure of is whether epair supports carp, it's possible it does not
-
spork_css
Anyhow, just wanted to check if I was missing anything obvious before I move to a completely new and different setup. :)
-
spork_css
I'm about to find out I think!
-
spork_css
This just does not seem to be true:
-
spork_css
"If a jail requests a specific IP address, the host attempts to add that address as a new alias. All traffic sourced from the jail uses the first IP assigned as the source IP."
-
RhodiumToad
I'd _guess_ it should because the common ethernet code handles it, and I think epair uses that
-
spork_css
But that's MWL and not the manpage...
-
spork_css
Maybe at some point I'm just going to end up using bhyve. :)
-
spork_css
I think that "first assigned IP is the source" really translates to "first IP *configured by the jail/iocage* is the source *if* no existing IPs are used by the jail" - meaning the CARP IP is already there, which in some sense makes it "first".
-
spork_css
I could also not assign the CARP IP to the jail and instead let the host's devd add/remove it with CARP state changes...
-
spork_css
Anyhow, thanks so much for talking me through this mess!
-
RhodiumToad
fascinating, the dodgy thumbdrive is sustaining a 20MB/s write speed (which is what it's rated for)
-
kenrap
RhodiumToad: 👍
-
» RhodiumToad 's irc client isn't good at emojis
-
kenrap
RhodiumToad: s/👍/*Thumbs up*/
-
kenrap
:)
-
RhodiumToad
and having zeroed the whole drive, I now get ~130MB/s read speed
-
jauntyd
dang, that's very good
-
jauntyd
would be for me anyways
-
hd1
anyone want to help me fix the scipy port?
-
jauntyd
i'm new to porting but i'd like to help. have room for a noob?
-
» RhodiumToad can advise
-
RhodiumToad
how is it broken?
-
hd1
it was the last time I installed it, trying again, to see if it still is, hold please?
-
hd1
WARNING: Ignoring invalid distribution ~equests (/mnt/extra/ec2-user/.virtualenvs/units/env/lib/python3.11/site-packages)
-
hd1
WARNING: Ignoring invalid distribution ~equests (/mnt/extra/ec2-user/.virtualenvs/units/env/lib/python3.11/site-packages)
-
hd1
those are the first lines when I try doing a pip install -e from the extracted make patch directory
-
jauntyd
-
VimDiesel
Title: Solving Python Ignoring Invalid Distribution - Python Pool
-
hd1
ok, pythran reinstalled without issue
-
jauntyd
^5
-
Beladona
Whats the best way to turn off drives power to avoid them from spinning?
-
RhodiumToad
depends on the drive
-
Beladona
-
VimDiesel
Title: Mozilla Community Pastebin/EFA3i7VM (Plain Code)
-
RhodiumToad
you can probably set the standby timer using smartctl
-
Beladona
Can I unmount the drives and use camcontrol standby adaX to turn off the spindle on HDDs and camcontrol idle adaX to spin it back up.
-
Beladona
RhodiumToad ^
-
Beladona
or I need `powerd`?
-
RhodiumToad
do you particularly need to unmount them?
-
RhodiumToad
(rather than just having them spin down when idle)
-
Beladona
those are backup drives. I don't want to keep them running except a bi weekly backup time
-
Beladona
RhodiumToad I would prefer full power off. But as those are on sata cable, I can't just plug them off
-
Beladona
-
VimDiesel
Title: Mozilla Community Pastebin/AH4Ktr2i (Plain Code)
-
Beladona
but I may want them to reuse them. so what are my options
-
RhodiumToad
if they're not mounted, then by all means try camcontrol standby
-
Beladona
RhodiumToad so umount, standy and mount again to use? thats all
-
RhodiumToad
should do
-
RhodiumToad
however, rebooting the machine will probably spin them up again even if not mounted
-
Beladona
RhodiumToad my/all hdd support this? I don't need EPC or whatever? also i don't need powed?
-
RhodiumToad
you don't need powerd. not all hdd support it, try it and see if it works
-
Beladona
ok. I usually do this : gelli attach /dev/adaXÂ Â <- this i the point where it is mounted?
-
Beladona
Current power state: PM0:Active or PM1:Idle(0xff)Â <---- its onn, as you said, even not mounted
-
RhodiumToad
that doesn't mount it, that just attaches it for decryption, but that will access the drive so it should spin up
-
Beladona
I am doing standby to check
-
Beladona
then maybe `zpool import ..` will
-
Beladona
then maybe `zpool import ..` will mount it
-
Beladona
How to check the device state after standby?
-
Beladona
that it was really on standby now
-
RhodiumToad
what does it report now for current power state?
-
Beladona
camcontrol epc ada3 -c status -> Current power state: PM0:Active or PM1:Idle(0xff)
-
Beladona
same as before. nothing changed
-
RhodiumToad
well it might not support it then
-
Beladona
despite standby
-
Beladona
EPC: Supported, NOT Enabled
-
Beladona
Low Power Standby NOT Supported
-
Beladona
Set EPC Power Source NOT Supported
-
Beladona
APM: NOT Supported, NOT Enabled
-
Beladona
RhodiumToad I am doing camcontrol epc ada3 -c enable
-
Beladona
Now, EPC: Supported, Enabled
-
Beladona
its still. Current power state: PM0:Active or PM1:Idle(0xff)
-
RhodiumToad
when you query the status, use camcontrol epc ada3 -c status -P
-
Beladona
same
-
Beladona
Current power state: PM0:Active or PM1:Idle(0xff)
-
RhodiumToad
camcontrol epc ada3 -c goto -D -p Standby_z
-
RhodiumToad
then camcontrol epc ada3 -c status -P
-
Beladona
that worked
-
Beladona
Current power state: Standby_z(0x00)
-
Beladona
I wonder
-
Beladona
Why it says active if I don't use -P
-
Beladona
camcontrol idle ada3 , camcontrol epc ada3 -c status -P
-
Beladona
Current power state: Idle_a(0x81)
-
RhodiumToad
some commands will bring it out of standby
-
RhodiumToad
without -P, that status option issues several commands
-
Beladona
so I need EPC: Supported for any of this to work?
-
RhodiumToad
yes
-
Beladona
no other option?
-
Beladona
so without -P , the other commadns make it active again?
-
hd1
-
VimDiesel
Title: In file included from scipy/stats/_stats_pythran.cpp:34: In file inc - Pastebin.com
-
hd1
that's the error pip install encounters from the port
-
hd1
incidentally, an install into the linuxulator works without problem
-
hd1
(using ubuntu)
-
RhodiumToad
hd1: what are you doing exactly?
-
hd1
still messing with the scipy port
-
RhodiumToad
no, what exact commands are you doing
-
hd1
pip install -e . from the work-py311/scipy-1.10.1 directory
-
RhodiumToad
why are you doing that?
-
hd1
because make install installs the package globally and I want it only in this vitrualenv
-
Beladona
RhodiumToad confusion. as per
serverfault.com/questions/1047331/h…pin-down-or-head-parking-in-freebsd , `camcontrol epc ada3 -c state -d -p standby_z` is used to disable spin-down (Standby_z) via EPC?
-
VimDiesel
Title: How do I disable hard disk spin down or head parking in FreeBSD? - Server Fault
-
RhodiumToad
but you don't want to disable it, do you
-
Beladona
no
-
Beladona
but the command says that it will disable it
-
RhodiumToad
hd1: that's not the port's problem. the port exists to build a package which you can install on your system
-
Beladona
but actually it PUT it on standby <-- desired
-
Beladona
hence the confusion
-
RhodiumToad
hd1: if you want to do something else, you're on your own
-
RhodiumToad
Beladona: that command is not the one I told you to use
-
RhodiumToad
goto != state, -d != -D
-
Beladona
oh I missed that
-
Beladona
thanks, i think that is all I need
-
Beladona
(I guess)
-
Beladona
No need for head parking either
-
Beladona
(I guess)
-
rtprio
probably ok if you don't plan on dropping your computer
-
Beladona
rtprio so power outage will hurt?
-
Beladona
How to know in depth, where is the disk consumed? which files take most space
-
pstef_
maybe ncdu
-
RhodiumToad
du -k | sort -rn
-
rtprio
Beladona: the heads won't hit the discs in that case
-
Beladona
RhodiumToad du -h -depth=2 /* | sort -rhb > /tmp/disk.txt ?
-
RhodiumToad
no
-
Beladona
I see
-
Beladona
rtprio on reboot, they will. I mean no danger in doing this standby/idle thing in power managment?
-
RhodiumToad
it's in all respects safer than having the drives running
-
Beladona
RhodiumToad you mean, having it on standby / idle is better and safer?
-
RhodiumToad
yes
-
Beladona
ok
-
qmr
Error loading module '/usr/local/lib/samba4/modules/vfs/fruit.so': /usr/local/lib/samba4/private/libsmbd-base-samba4.so: version SAMBA_4.16.11_SAMBA4 required by /usr/local/lib/samba4/modules/vfs/fruit.so not found
-
qmr
both of those files exist
-
qmr
huh restarting samba and it's working now
-
RhodiumToad
let me guess, you upgraded it while it was running
-
RhodiumToad
it wasn't complaining that the file didn't exist, it was complaining that it didn't define the symbol version that it was expecting
-
qmr
very possible
-
RhodiumToad
... fascinating, having overwritten this thumbdrive with random data, it's now performing at full speed for reads, >30x faster than before
-
kenrap
RhodiumToad: would this be something that's usb related or filesystem related?
-
RhodiumToad
can't be either
-
RhodiumToad
mostly I was testing with dd, bypassing the filesystem
-
pstef_
no UAS(P)
-
RhodiumToad
?
-
pstef_
I'm "complaining" about the lack of UAS(P) support in FreeBSD
-
pstef_
-
VimDiesel
Title: USB Attached SCSI (UAS/UASP) support and fallback to BOT
-
RhodiumToad
for this example, that's not really relevant
-
pstef_
for this example, perhaps not, I don't know what this example is
-
RhodiumToad
ludicrously slow reads from a thumbdrive, but it's now really fast again after overwriting it all
-
pstef_
ah, well, without much thought I'd be quick to blame the firmware
-
vkarlsen
Saved by randomness
-
qmr
Any ideas how my zfs on root resized before my eyes? it was 4.9 of 4.9 , then when I'm struggling to free some space 4.9 out of 16
-
RhodiumToad
it's very easy to forget about space used by snapshots
-
qmr
yes I removed many. but I'm confused why it would change the available space? the snapshots were also only hundreds of megs at most
-
qmr
then it suddenly became 4.9 out of 16. some housekeeping that happened many minutes later?
-
kyonsalt
hello,I met trap about the freebsd install mountroot error 19 problem. Even in usb mode or isoemu mode to load freebsd13.2-amd64-bootonly.iso.
-
Beladona
Unable to understand why I got rebooted when I tried to resume screen off by mouse ( I did this few hours ago `sleep 1; xset -display :0.0 dpms force off`)Â /var/log/messages:
pastebin.mozilla.org/1vTsbXLn
-
VimDiesel
Title: Mozilla Community Pastebin/1vTsbXLn (Plain Code)
-
redlegion
I'm having a hell of a time installing alacritty.info on FreeBSD
-
redlegion
I can't get it to set terminal capabilities correctly
-
redlegion
the weirdest part is that installing alacritty on the freebsd host doesn't even seem to allow TERM to be set to `alacritty`
-
kyonsalt
damn,I create a new usb stick with ventroy, debian could install. but freebsd13.2 still enter mountroot error 19 problem.`
-
Beladona
Disconnected
-
Beladona
Unable to understand why I got rebooted when I tried to resume screen off by mouse ( I did this few hours ago `sleep 1; xset -display :0.0 dpms force off`) /var/log/messages:
pastebin.mozilla.org/1vTsbXLn
-
VimDiesel
Title: Mozilla Community Pastebin/1vTsbXLn (Plain Code)
-
kyonsalt
OK,I think it's a bug of freebsd13.2.iso. I just try ventroy+freebsd12.4-bootonly.iso, it cloud install normally.
-
rtprio
redlegion: how are you installing it?
-
rtprio
kyonsalt: use the .img for usb sticks; what are you installing on?
-
rtprio
qmr: yes, i believe snapshot deletes happen in the background
-
Beladona
-
VimDiesel
Title: Mozilla Community Pastebin/1vTsbXLn (Plain Code)
-
rtprio
a crash would be my guess
-
markmcb
anyone know if much change is coming to bhyve sr-iov with 14? i can consistently trigger a crash when i start the install process for freebsd in bhyve using a chelsio T520 passed through pci device. the whole card will freeze about 2-3 mins. any attempt to reset the device triggers a panic.
-
markmcb
it's not critical. just wondering if i should report a bug, or wait and see in a few weeks.
-
michaeldexter
markmcb: Several of us have been tracking this on the bhyve call, notably John D and Santiago M. What is the key PR that is impacting you?
-
markmcb
michaeldexter: PR=pull request? i'm running on 13.2 RELEASE. Haven't tested at all with changes in STABLE or CURRENT.
-
michaeldexter
Problem Report.
-
markmcb
ah, sorry. i haven't reported it yet. i can browse and look for a match.
-
markmcb
i assume bugs.freebsd.org is the place to look?
-
michaeldexter
Do look at 234073 271456 270966 and 266325
-
markmcb
thanks, will do
-
michaeldexter
And possibly 269133 269133 263046. Thank you! Do report back and share any new information you can in the tickets.
-
markmcb
234073 for sure is still an issue. i'm the last comment on that one. that was on an X710-DA2, which seemed quirky in general. i've replaced it with a Chelsio T520.
-
markmcb
the rest don't quite match. i can passthrough the device and load the driver for it. shortly after though i'll experience the freeze, which kills the whole card, i.e., event the host loses networking.
-
markmcb
*even
-
michaeldexter
markmcb: Is the Chelsio giving you issues too?
-
markmcb
Yes
-
markmcb
the freeze i was describing is with the Chelsio
-
michaeldexter
Do mention that in the ticket if it’s not there already.
-
npn
I use Chelsio cards passed through into bhyve VMs for almost all cxgbe(4) development.
-
michaeldexter
Are you using SR-IOV?
-
npn
Are you passing through SR-IOV devices or the main PF (physical function)
-
npn
no I'm not using SR-IOV
-
npn
I know of a problem in 13.2 that seems to be fixed in 14-Stable
-
markmcb
T520-SO-CR, have 4 SR-IOV VFs set to passthough
-
michaeldexter
markmcb: Have you tested on 14?
-
npn
what is the exact failure? a bhyve hang or something else?
-
markmcb
SR-IOV works without issues in jails and the VFs not set to passthrough in iovctl.conf
-
markmcb
michaeldexter: not yet, was waiting for the first version i can get to with freebsd-update
-
npn
file a bug if you see the problem with 14
-
npn
and I'll fix it before release
-
npn
(if it's in the driver)
-
markmcb
npn: i'd have to trigger it again for specifics. i'll do that today and capture it all in a PR
-
michaeldexter
markmcb: Do you have hands-on access to the hardware or is it in a distant colo?
-
markmcb
hands on, it's in a rack in my garage
-
michaeldexter
markmcb: For quick tests, I use this script, which can dd a VM-IMAGE on a physical device, and boot it with a USB to SATA adapter:
github.com/michaeldexter/occambsd/blob/main/imagine.sh
-
VimDiesel
Title: occambsd/imagine.sh at main · michaeldexter/occambsd · GitHub
-
michaeldexter
Ping me if you have any questions though I am not always on IRC.
-
markmcb
ok, thanks
-
michaeldexter
NP
-
npn
I had a report of the 13.2 SR-IOV cxgbev driver failing to attach on a hyper-v host (no bhyve there). I could see PCIe problems (misconfigured BARs) even before an attempt to load the driver. I assumed there was a bug in the pcie code in 13.2 and tried 14.0-alpha1, which worked., and I dropped the debug.
-
npn
take a look at pciconf -lvbc before you load the driver (in case you see miconfigured BARs too)
-
michaeldexter
Noted
-
markmcb
npn: you check on the host or guest? i'm not sure what to look for to identify a misconfigured BAR. i see bar line items on the host, but not sure what they should/shouldn't be
-
npn
look in the guest. In my case one of the BARs had an address with all ffs in the upper bits and that's not a valid phys addr, and the BARs were not enabled either.
-
npn
boot the guest in verbose mode and the pcie drivers will print this info too when they enumerate the devices
-
markmcb
ok, i'll give that a look. thanks.
-
_xor
What are my options for a command included in base, that supports libxo ideally, to see which PIDs have open handle(s) to a given file? (specifically in my case, I'm looking to add a rule to devd that sends SIGHUP to any PIDs holding open /dev/dsp6 when my headphones become unplugged)
-
_xor
I know there's fstat, but from what I can tell, it doesn't support libxo, which means awk/cut/whatever to hack the output text.
-
_xor
My USB headphones come unplugged every once in a while and Firefox doesn't release /dev/dsp6 when there are tabs open with an audio player (even if paused). So I figure I'll add a short script that's triggered by devd for the headphones to get a list of PIDs holding it open and send SIGHUP so that it gets released. When the headphones are plugged
-
_xor
back in, they don't show up as a dev device until dsp6 is released (and I don't want to just tell it to create a new dspX device and set it as the default).
-
Erhard
Anyone know of a tool that would let me spoof a response to a broadcast packet to then reply with an address on a different subnet? I have a device that only uses broadcast packets to find the server to connect to, and doesn't permit direct ip entry in the client. I'd like to have the server on a different subnet, but the client can't find it because it will only find it via broadcast.
-
vxwarlock
Erhard > broadcast L2 feature | cannot leave the subnet it is on
-
Erhard
Yeah, that's the issue. I think I may need to listen for the broadcast and sniff the protocol and reply with the correct ip
-
Erhard
The client is closed source and they refuse to allow direct ip entry because they think it might confuse users (idiots)
-
Erhard
But my wifi is on a separate subnet and I would like to connect from it...
-
vxwarlock
If you are in a different subnet, there should be a routing once in a while.
-
Erhard
Not sure I know what that means. There is routing, and that is via a FreeBSD box.
-
Erhard
BUt the clinet owuld be on wifi, which is a different subnet from the LAN where the server is.
-
vxwarlock
192.168.1.0/24 wifi ; 192.168.2.0/24 cllient = L3 routing
-
Erhard
Yeah. I have that setup... but the broadcast bit is layer 2
-
Erhard
Maybe I can do an IP alias.. I guess I will do some more research
-
vxwarlock
Sorry, I don't fully understand what you want to do. I can't help.
-
TommyC
Erhard: do you need a fully fledged tool, or will a framework that's done some heavy lifting be enough?
-
TommyC
(albeit you have to know how to use the framework, but still)
-
Erhard
It's OK. I will do some more research. What I want is client on 192.168.0.0/24 to connect to server on 192.168.1.0/24, but the client will ONLY locate the server via broadcast, and does not permit entry of a server IP.
-
Erhard
It's a one off for this one client/server.
-
Erhard
Can be hacky.
-
TommyC
Erhard: If you're familiar with python, I'm 99% sure the python scapy module can do what you want.
-
Erhard
If I can sniff the ptotocol the client uses to sommunicate with the server via broadcast then perhaps I can mimic that with python
-
Erhard
scapy? OK. I will look at that, thanks.
-
Erhard
This looks good. Thanks. bbl
-
markmcb
michaeldexter: following up from earlier, I added 273372
-
markmcb
npn: see above message
-
nevafrost
Hey, new to freebsd I have issues with pkg's network speed I tried using mirrors but fastest I get is 400kb/s
-
nevafrost
I tried to post the issue on freebsd forums before but coudn't find a solution
-
skered
Who do you have to poke to get zfs-get to list props in alpha sort? All things zfs are now an upstream project?
-
skered
sys/contrib/openzfs makes me thing it is
-
markmcb
I see "ALPHA" referenced in the freebsd-update man page. is that a normally available option? looking at the 14 schedule, i only see BETA referenced.
-
debdrup
markmcb: I think it's an artefact of the manual pages being built on 14-CURRENT, which is technically speaking 14.0-ALPHA2 right now (if it hasn't moved onto ALPHA3)
-
debdrup
skered: github.com/openzfs/zfs