-
polarian
if there is duplicate pkgs provided by two separate pkg repos, how does pkg prioritise?
-
polarian
which will it pick?
-
polarian
assume both packages are equal?
-
polarian
I assume otherwise its the latest version?
-
voy4g3r2
polarian: there is a priority variable in the /etc/pkg/*.conf area so for each entry, if you set priority: <some number> the higher the number it sets that as "default"
-
voy4g3r2
so if you have 3 repos, repo 1 - priority: 100 repo 2 - priority: 50 3 - priority; 2 5
-
voy4g3r2
it will ook at the 100 one first and pull from there
-
voy4g3r2
man pkg.conf goes into a little more detail on it for you, which was my reference to get the answer :)
-
voy4g3r2
another angle of the same question is under man pkg-repository
-
yelnah
ivy remember the ordering of rules in pf.conf, last match wins unless 'quick' is used. So if you have 'pass ....' then a later 'block ...' that matches will win
-
ivy
yelnah: yes. the issue wasn't related to that.
-
nimaje
ek, hmjsp: wireguard doesn't have a concept of server and clients, only peers and they can't choose an IP address themself, it has to match on both sides of the tunnel, else routing won't work
-
polarian
voy4g3r2: thanks, sorry I didn't RTFM
-
voy4g3r2
polarian: its all good.. i recently went through a similar situation.. while i was building llama.cpp it was picking ports and not what iw as building.. it was about priority :)
-
o0x1eef
What card are you using for llama.cpp?
-
voy4g3r2
nvidia gtx 3050 w/8 gig
-
o0x1eef
This is on FreeBSD? How do you find the lack of CUDA support?
-
voy4g3r2
works well for the inference testing and agent playing
-
o0x1eef
Huh, good to know
-
Shirkdog
Best I have done is run claude code in a jail...
-
o0x1eef
I'm gonna give it a try. I did GPU passthru with a Linux VM but such a horrible experience that I abandoned it. I don't want to sysadmin a Linux box.
-
voy4g3r2
Shirkdog: yeah that is not the same
-
o0x1eef
voy4g3r2 Which driver are you using?
-
o0x1eef
I'm going to give nvidia-drm-kmod a shot.
-
o0x1eef
if this works well I owe you a coffee :)
-
Shirkdog
voy4g3r2: 100% I am aware :) I had spent time trying to get pass-thru to bhyve for nvidia but just moved on.
-
o0x1eef
Wise choice lol
-
Shirkdog
I had a 32GB RAM windows laptop with an RTX 3060 and still was not impressed with running models locally...but will look at this again.
-
o0x1eef
I'm in a similar boat. I have an RTX 3060 SUPER with 16GB of VRAM. I had to jump hoops to get passthru working, including a custom patchset to base, then when it worked, the LLM performance was terrible. Not just speed, but its ability to reason. Anything better was out of reach. But curious to see how it works on FreeBSD native this time.
-
technomancy
I mean, that sounds consistent with my understanding; local models are mostly a joke
-
MelanieUrsidino
hi
-
Shirkdog
I believe there is a way to pair things down to be very useful...but in the same way that you could process network traffic if you tune a driver to only look at the information you care about.
-
voy4g3r2
o0x1eef and Shirkdog: Yes, models are just models and a dance.. the harness is helpful and focusing on what you want to achieve.. big models will NOT work with either of those vram sizes.. but seeing how you can iterate without burning tokens.
-
Shirkdog
and that would be a fun use case for FreeBSD
-
MelanieUrsidino
i mean, idk, you might do better to write your AI tools to run entirely on the CPU and main RAM, slower though it will be
-
o0x1eef
I didn't even remember the correct card :) It's - nvidia0: <NVIDIA GeForce RTX 4070 SUPER> on vgapci0
-
thermos
setting up a new server, after hitting "Install" in the guided zfs-on-root menu, it hung for about 8 minutes then finally just dropped me to the login prompt. Logged in as root, ran zpool list and nothing was created, anyone know if this is an issue?
-
nimaje
zfs-on-root setup should create a pool "zroot" which should get listed by zpool list, so no idea what happend for you, what does mount say?
-
thermos
XD same, didn't check mount - it looked like the installer shell as nothing was configured. reinstalling now to see (this happened with pkgbase if it makes a difference).
-
nimaje
hm, how did you login as root? the installer shell wouldn't have the root password you choose in the installer
-
thermos
correct, root & no password
-
thermos
so far same thing, hanging, waiting for it to drop me to the shell..
-
nimaje
just checking, you did choose some disk for the zpool?
-
thermos
hah yes
-
thermos
when it hits shell again, I'm going to try with the "Distribution Sets" option - assuming there will be an upgrade path to pkgbase for 16. My other machine on 14.3 I've refrained from upgrading because the path from 14.3 to pkgbase was hairy last I checked
-
thermos
interesting.. worked this time around
-
rdr
that's cuz you're insulated
-
lts
Path to pkgbase is easy _if_ you upgrade to 15 first
-
lts
Pkgbase at 14.3 and then upgrade to 15 is less easy
-
thermos
word thanks
-
JurassCZ
Hi guys, I’m a bit confused about the FreeBSD dump command when using it to back up an entire filesystem to an external SSD.
-
JurassCZ
Do I understand correctly that there is a limitation or quirk that effectively prevents backing up directories like /usr and /home to an external drive as part of the same backup?
-
JurassCZ
On my ssd disk with freebsd, i have placed everything in one partition.
-
rtprio
i feel like now there are better ways to back up than dump
-
rtprio
but if you have a single partition / then you only need to run dump once
-
rtprio
if you had a classic, / /usr /var you would need to run the command dump a total of three times
-
JurassCZ
Ok, I use Restic for backups on my Debian system.
-
JurassCZ
I was reading this thread:
forums.freebsd.org/threads/questions-about-backup-with-dump.62698 and saw people saying that dump can be quite slow, so both backup and restore may take hours.
-
JurassCZ
I’m a bit confused now. I thought FreeBSD was supposed to come with “batteries included,” but dump doesn’t look very practically usable to me. Am I missing something here? ;-)
-
JurassCZ
It looks to me that backups are incredibly important, and so I would expect that BSD would have included goo solution for them in the base system, am I missing something?
-
o0x1eef
ZFS
-
JurassCZ
Yeah, I know ZFS supports snapshots, but that is not really what I mean.
-
JurassCZ
I need backups on external drives, because the laptop can be lost, stolen, or the internal disk can fail. In that situation, ZFS snapshots alone do not help much, at least as I understand it.
-
JurassCZ
So I would expect there to be one clear, recommended way to make a proper backup to an external drive. But instead, I’m seeing one supposedly “super slow” method using dump, and another only partially applicable method using ZFS snapshots.
-
JurassCZ
That looks a bit strange to me. A user needs one proper, reliable, and reasonably convenient way to back up the system to an external drive.
-
technomancy
you could always try rsyn---ah shit never mind
-
rtprio
there are dozens of other tools, but dump is not much more complicated than a 'tar -cvf'.
-
rtprio
JurassCZ: not usable depends on how you're using it / how you expect it to work
-
rtprio
i also use restic to a s3 style endpoint. it does de-duplication and i can restore a single file from a snapshot rather than having to restore the whole parition
-
ek
I use UrBackup and have been pleasantly surprised by it's usefulness.
-
ek
JurassCZ: What kind of backup, exactly, are you looking for?
-
o0x1eef
Why rule out ZFS? You can take a recursive snapshot that includes all of your datasets, send it to a file, or to another machine.
-
ek
o0x1eef: Exactly. I only use UrBackup for (mostly) testing (and I maintain the port, so I kinda gotta make sure it works.) Otherwise, ZFS has been super solid for me for a very long time.
-
ek
But, if they're using UFS (which it sounds like), that isn't an option.
-
ek
JurassCZ: Also, "dump" isn't necessarily "slow" at all. It depends on how much data you're transferring and how you're (un)compressing the data before and after transfer. If at all.
-
JurassCZ
Ok didn't knew that ZFS snapshot can be send externally.
-
o0x1eef
I think the question was more like, what's the standard way on FreeBSD, and I think it is ZFS. IIRC UFS is not the default.
-
ek
JurassCZ: Yep. ZFS snapshots can be sent directly to a disk, to a file, to another dataset for safekeeping, etc... You can basically send a snapshot anywhere.
-
JurassCZ
<o0x1eef: right, ZFS then
-
ek
o0x1eef: I agree. I'm sure there are certain cases that require UFS. But, if you have no absolutely reason to use it, I would always recommend ZFS as the filesystem.
-
voy4g3r2
-
voy4g3r2
check this utility out
-
voy4g3r2
zfs send / zfs receive / zfs snapshot are all your friends :) can send anywhere
-
ek
Sanoid is a pretty nice tool!
-
ek
I wrote all my own scripts years ago for automating snapshots and eventually migrated over to sanoid a while back. It's just too simple and I don't need to maintain my scripts anymore. :)
-
ek
I'm getting lazy in my old age.
-
o0x1eef
s/lazy/wise/
-
voy4g3r2
nah, it is the whole learn how to do something yourself and when you comes across something better, use that :)
-
ek
o0x1eef: I dunno about all that!
-
voy4g3r2
it is like, learning how to do electrical in a house and can do basics but when it gets to large jobs let the professionals do it
-
ek
voy4g3r2: I agree. I still try to help out where I can, though. I certainly don't want OSS creators to only feel used. :)
-
ek
I give back!
-
o0x1eef
If you're a builder/programmer it helps to realize your time is finite so you have to choose what makes you happy, and too many projects is a quick way to ruin that
-
voy4g3r2
ek: do unto others what you want doen to yourself
-
voy4g3r2
pretty simple train of thought
-
ek
o0x1eef: Completely agree. That's why I try to help out where I can. If I'm reporting a bug, I like to also submit a patch along with it (when I can). Hopefully, this saves the real devs time.
-
ek
Not just a, "Hey! This doesn't work!"
-
voy4g3r2
oh speaking of bug.. wonder what happened with that make fetch thingie you helped me with ek
-
voy4g3r2
submitted a report..
-
o0x1eef
Sounds like being a good open source citizen :)
-
ek
Oh. The refetching thing?
-
ek
o0x1eef: I do my best when I can.
-
o0x1eef
Whether I submit a patch or not usually depends on how out of my depth I am. I don't know how to design a language, or any of the mechanics around it like a VM, so if I find a language bug, I'll do my best to report it, but I won't try to fix something I'm clueless about. That's usually how it goes.
-
ek
o0x1eef: Same. Hence I mentioned "when I can". If it's totally out of my element, I just provide as much information as I can.
-
ek
Again, not just a "This don't work! Please fix! DERP!"
-
ek
Usually, between a couple buddies and myself, we can at least provide a reasonable patch or a good starting point. Helps to have smart around!
-
JurassCZ
Thanks
-
ek
JurassCZ: Sure thing. Give ZFS a shot and if that doesn't work, we can explore more ideas.
-
ek
Good luck! I don't think you'll need it... It's ZFS. But, yeah.
-
o0x1eef
:D
-
ek
voy4g3r2: What bug did you submit for the python fetch issue?
-
ek
voy4g3r2: Never mind. I found it.
-
ant-x
Great: people submitting bugs!