-
kerneldove
best option to query how many pages in and pages out swap has done recently? vmstat # outputs a ton of info not just paging, vmstat -s outputs lots of paging info but totals, not recent
-
kerneldove
and if vmstat is my best option, what's the best way to smooth the paging pi po values? second by second sucks because it's erratic. would i run vmstat 60 to get the total per minute then divide pi and po by 60 to get the secondly avg?
-
kerneldove
oh it looks like vmstat 60 does its own smoothing!
-
kerneldove
what does -w / wait do? i read the man page entry for it a few times but i don't get it
-
V_PauAmma_V
See the EXAMPLES section.
-
kerneldove
oh i had them mixed up, now i get it ty!
-
kerneldove
is there no way to limit the output to just the 'page' info, or more specifically just pi/po ?
-
V_PauAmma_V
Maybe with the --libxo option?
-
kerneldove
ya but that doesn't let me filter the output, just gives me json output i can then filter myself
-
kerneldove
which i'll do if i have to i was jc
-
» V_PauAmma_V nods.
-
kerneldove
btw the vmstat first output is since machine boot up i guess? there a way to skip that?
-
kerneldove
is there a way i can see if my disk io is clogged?
-
zi
gstat
-
kerneldove
ty zi! do you know what %busy means? does it mean that 100% is when disk io is maxed out and less than that means it has more io capacity?
-
zi
man gstat?
-
kerneldove
nothing for "busy"
-
kerneldove
ok found some info on a webpage
-
kerneldove
damn i wish gstat supported libxo output
-
kerneldove
it's a great util
-
adavis
Koston I haven't in much detail, the logs are pretty sparse:
gist.github.com/Davis-A/1eddd07d8ca84b7ce8ae979b230ec11f
-
ivy
kerneldove: there is a thread on dev-commits-src-all@ about your unbound problem:
lists.freebsd.org/archives/dev-comm…ts-src-all/2025-October/061576.html
-
angry_vincent
thx for DISTDIR fixes
-
kerneldove
ivy where in that page does it talk about the issue i had? or was it in response to what i brought up or? i searched page for SNDBUF and SOCKOPT but didn't get matches
-
kerneldove
-
ivy
right, i linked the first message in the thread, jlduran's reply mentions your issue
-
kerneldove
"it's not just you, a user on IRC also reported this issue on a system
-
kerneldove
with 256GB memory. i would be inclined to add so-sndbuf: 0 to the
-
kerneldove
default configuration, but i haven't looked at the actual problem
-
kerneldove
here in detail (i don't use local_unbound myself)." fwiw, i pkg install unbound, not local_unbound
-
kerneldove
-
kerneldove
if more info is requested i'll provide it or help out where i can
-
kerneldove
sorry i didn'topen a pr, i've just been burned so many times by so many software projects where i open really nice bug reports that i put a lot of time into and nothing ever happens that i'm nihilistic
-
kerneldove
you're helping to fix me tho so ty
-
lnnk
Is anyone daily driving BSD?
-
lnnk
On PC or laptop?
-
ivy
for desktop? not currently, i have in the past. assuming you mean FreeBSD
-
Koston
I am
-
kerneldove
innk i use fbsd daily on desktop and server
-
kerneldove
have for like 5 years now
-
kerneldove
i need recent swap paging info. is there no way to make vmstat not output stats since last reboot for the first output? i've read over the man page and don't see a way
-
ivy
kerneldove: vmstat 1 2 | tail -1 ?
-
ivy
this makes me wonder:
-
ivy
procs memory page disks faults cpu
-
ivy
r b w avm fre flt re pi po fr sr ada0 ada1 in sy cs us sy id
-
ivy
0 0 0 4.6T 3.6G 1.6k 5 1 0 1.8k 4.6k 0 0 273 22k 11k 1 7 91
-
ivy
is it reporting free virtual address space as avm? i do not have 4.6TB of memory, so this doesn't seem accurate
-
kerneldove
that seems to work, ty, but it's pretty convoluted to not be able to just pass an option and not get the 'since reboot' data
-
ivy
ah, avm is "mapped virtual memory"
-
ivy
kerneldove: vmstat reports counter data, so it has to run at least twice if you want real-time data
-
kerneldove
weirdly the output with the tail part looks diff than when the tail part isn't on there. without tail, stuff like avm has G suffix, with tail, avm looks to be in bytes
-
kerneldove
like wtf
-
ivy
kerneldove: refer to the description of -h in vmstat(1)
-
kerneldove
but why can't it do that internally and suppress the 'since reboot' part
-
ivy
well, you're welcome to add a flag to do that, although i'm not sure i really see the utility
-
ivy
s/vmstat(1)/vmstat(8)
-
ivy
but in general, the answer to "why doesn't it do X?" is that you didn't submit a patch to make it do X yet :-)
-
tsoome_
historical reasons:)
-
kerneldove
because i'm trying to parse json output of, say, last 60 seconds rather than since reboot, for system monitoring. so i gotta pass -c 2 and ignore first row
-
ketas
it's wtf, but allwinner h3 r*ALSO* boots with uboot at 128k, not 8k as everyone but 1 says
-
ketas
doh i fingered the red colodcode off
-
tsoome_
IMO, even for human interface the counter value "since boot" is useless, so it has to be artefact from initial implementation and noone cared to drop it...
-
ketas
if i would have knew this before, i would have went direct gpt eh
-
kerneldove
tsoome_, ya it would be great if there was an -o(ption) to suppress the 'since reboot' data. then it atleast preserves historical behavior
-
kerneldove
tsoome_, do you know what -w wait does? obviously it throttles readings for # seconds, but how does it affect the values? i've tested and it doesn't sum the values up. it seems more like it kinda averages/smoothes them over the period of time?
-
tsoome_
ok well, if you build your statistics collector by using absolute values (and calculating difference from last run), then vmstat 1 1 would make sense...
-
kerneldove
that doesn't really make sense in context of pi po data
-
tsoome_
-w and -c are same as wait and count arguments.
-
kerneldove
ya i know
-
kerneldove
will -w average 5 seconds of pi/po data?
-
kerneldove
it doesn't sum it i know that
-
Koston
ivy, there is no such thing as "free virtual memory"
-
ivy
Koston: i disagree, there is a limit to the size of virtual memory, so used (mapped) virtual memory subtracted from total vm size would be free virtual memory :-)
-
tsoome_
kerneldove its just counter value during 5 seconds.
-
kerneldove
tsoome_, not of pi po it isn't
-
Koston
ivy, well technically you're correct, but that's hardly meaningful on any 64bit architecture
-
kerneldove
otherwise they'd continually grow or smth
-
Koston
ivy, and even then it would only apply per process
-
ivy
Koston: it somewhat is, since no 64-bit architecture (that i'm aware of) actually supports a 64-bit virtual address space. i think at least on amd64, typical limits are 48 bits or 52 bits, depending on how new the hardware is. although in practice, yes, this isn't something most people run into
-
kerneldove
tsoome_, with a box that's using swap and hence has some pi/po action, run 2 cmds: vmstat 1, and vmstat -w 15, and you'll see what i mean
-
Koston
ivy: any process that gets even close to exhausting the limit is most likely defective anyway
-
ivy
Koston: are you sure? mmap() can use a lot of VM and disk arrays are pretty big nowadays. 48 bits is only 256TB
-
Koston
hence the "most likely"
-
Koston
but I guess it also depends what you consider defective. many scripting languages seem to make a habit of reserving insane amounts of VM with little beyond hello world
-
Koston
(memory overcommit was a mistake)
-
kerneldove
sorry to fanboy but rust ftw, every time
-
kerneldove
i've done c and a bunch of other langs. rust ftw every time
-
Koston
rust is very attractive on paper, but in practice I haven't yet decided if its complexity is worth it
-
kerneldove
the learning curve is steep, but it pays dividends for the investment. thing of the other things it eases as a smoothing function over the lang complexity. the cargo/crates ecosystem is awesome, and the maintainability it adds to code is insane. to say nothing of the bug elimination which is usually the first thing ppl praise
-
ivy
i like the idea of rust but i am extremely dubious about cargo. i realise you don't *have* to use cargo, but...
-
kerneldove
why?
-
Koston
kerneldove: what do you mean by "maintainability" ?
-
kerneldove
to be able to jump into code i wrote a year ago, make some mods, and if it compiles it's usually correct, makes it SO much easier to maintain code over time than any other lang i've used
-
Koston
...but you said you've used C
-
kerneldove
yea
-
Koston
which is ISO standardised
-
ivy
kerneldove: what we've learned from npm is that having a bunch of tiny packages such that every project depends of hundreds of independent packages is a terrible way to build software, especially when it relies on some central infrastructure to distribute them (see: Ruby Central)
-
Koston
rust has and is changing at breakneck pace compared to C
-
kerneldove
nah not anymore
-
kerneldove
i'm finally tracking -stable as of a year ago, first time since i started using it over 5 years ago
-
kerneldove
was using -nightly since starting up till then
-
kerneldove
ivy well you can run your own crates server so you don't /need/ to rely on crates.io. and the bunch of tiny code made by others issue is resolved by it being a more correct, rigorous lang. npm i s aprob because it's js
-
kerneldove
and actually lots of tiny crates is a good thing for fast compiles
-
ivy
kerneldove: "running your own creates server" doesn't really fix everything if everyone assumes you will be using crates. compare this to how C and C++ libraries usually work: they're typically larger and more self-contained
-
Koston
ivy: nowadays there are mechanisms in place to mitigate biggest problems with centralised mound of packages, namely forced versioning and checksumming. but tracking down bugs in a dependency hell is still hell.
-
ivy
s/creates/crates
-
kerneldove
ya i mean i'm with you on crates.io centralization, but in practice, using rust including with its crates ecosystem, is so f'ing nice i'll never go back to anything else
-
kerneldove
i make better, faster, less buggy code, that's more maintainable, than any other lang/ecosystem i've ever used
-
ivy
i don't doubt it's nice to use or they wouldn't have designed it this way. my concern is the less obvious implications of that
-
kerneldove
i FEEL better as a dev, the anxiety of dev and bugs is mostly melted away. i actually enjoy dev again
-
kerneldove
i used to have to beat off all the time to release stress and now i dont
-
Koston
there are also big benefits to the approach, especially from portability point of view. a lot of things related to differences between bsd, gnu, osx etc. can be outsourced to upstream with significant save in effort
-
kerneldove
well like i said, i'm with you on the centralization
-
ivy
having everyone rely on crates is the same problem as having everyone rely on Github (Go) or Ruby Central (npm) or Microsoft (vcpkg)... sure, it's nice to use, but is this really how we want to build software?
-
kerneldove
well again, you don't have to. so if you do, you're choosing to, not forced
-
ivy
you are forced if you can't use any third-party code because everyone who writes code assumes you're using crates
-
kerneldove
how would it be different with say c?
-
kerneldove
how do you share c code
-
ivy
yes, you are not *literally* forced to do this, but the amount of available third-party libraries is pretty important when choosing a language
-
Koston
and rust being so wickedly complex comes with an implicit benefit of it being used mostly by rather intelligent people with a lot of attention to detail, so the packages overall are quite high quality and well maintained
-
ivy
kerneldove: i put it on my website and people can download it
-
kerneldove
you can do same with rust
-
ivy
you're missing my point
-
kerneldove
help me understand pls
-
ivy
i am aware you are not *literally forced* to use crates
-
kerneldove
you mean the culture of rust devs is to just shit it onto crates.io?
-
ivy
my point is that if all the third-party libraries assume you are using crates, and depend on crates, you are *practically* forced to interact with that ecosystem
-
ivy
like, in C++ we have Boost. you can download and use Boost from boost.org, and vendor it if you like, and it's completely self-contained. what would Boost for Rust look like?
-
kerneldove
well if you dl 3rd party c (from webpage), why can't you just dl 3rd party rust? (from crates.io) in both cases you dl to vendor it locally, then never have to again
-
kerneldove
hmm
-
kerneldove
i think you can vendor dl a whole crate and its tree of deps
-
kerneldove
would that be a solution for you? i can check
-
ivy
yes, and now you're forced to interact with the crates ecosystem, and you have to deal with all the problems caused by centralised infrastructure
-
ivy
do you see what i mean? you can't just say "you don't have to use crates" when the answer to any practical questions about not using crates is "just use crates"
-
Koston
imho it would be foolish anyway, then you'd only get the problems and none of the benefits
-
ivy
so crates are inseparable from Rust itself, as a language
-
kerneldove
i just don't see how it's a prob. if it became a prob, rust devs would create alternative avenues
-
Koston
ivy: that's untrue, C stdlib isn't inseparable from the language either
-
kerneldove
not really true, i have private local code that doesn't use any crates.io, only my private crates
-
Koston
and Rust stdlib isn't a crate
-
ivy
Koston: ? you don't have to download or vendor the C standard library, it comes with the compiler
-
ivy
Koston: obviously i'm not talking about things which are part of the Rust stdlib
-
kerneldove
core/std come with compiler too
-
ivy
(although i understand Go are moving towards downloading the Go standard library from github.com, which seems terrible, but i don't think Rust is doing that)
-
black
honestly I really think some people are trying to create unnecessary languages out of their own agenda
-
kerneldove
if you're talking about rust, it was needed and no equivalent existed or exists
-
ivy
"we need to do something, this is something, therefore we must do this"
-
kerneldove
i use rust to make web apps, cli tools, server daemons, everything. 1 lang, everything
-
kerneldove
nah it solves real world problems
-
black
rust and go are fine per se. but to divide the devs based on things that people could easily circumvent is an extra cost.
-
ivy
i'm not telling you not to use rust, if you want to use rust, use rust
-
kerneldove
and it does a quite good job
-
kerneldove
ya ofc i don't take it that way
-
ivy
but i am extremely dubious about importing Rust into FreeBSD for example, and crates are the sole reason for that. the language itself actually seems quite nice
-
kerneldove
ya i can see that. even i wouldn't want freebsd dependent on a centralized service. what if fbsd maintained its own crate mirror for any crate used in rust-in-base?
-
black
have you guys ever tried nodejs and php? out my very personal opinions they don't do much benefits in either scenarios
-
kerneldove
ya i've used both
-
kerneldove
and typescript
-
kerneldove
nightmares comparatively
-
black
and the most obvious one to get my point from is the instance of c#
-
Koston
ivy: it's a problem to be solved for the ports system. for kernel Rust support, obviously crates are not involved.
-
Koston
and like it or not, centralised packaging is a thing for most modern languages these days
-
kerneldove
Koston, but what about a middleground where fbsd maintains a crate mirror for any crates used in rust-in-base?
-
Koston
I fully expect the would
-
Koston
*they
-
kerneldove
i think that would be really nice
-
Koston
that's what Ports does already with all software
-
kerneldove
ya
-
kerneldove
so adding a crates.freebsd.org could follow the same spirit
-
ivy
Koston: there is a bunch of source code in src outside of ports and kernel, you know
-
ivy
and we wouldn't add crates.freebsd.org, we'd vendor the code
-
Koston
rust in base though, I don't like the idea much and definitely not the idea of it supporting any crate business
-
black
k
-
ivy
you need to be able to build src without any external dependencies, vendoring is the only way to do that
-
kerneldove
well obv i'd love rust in base but it's not my call. rust to me is the legit successor to C, whereas c++ failed to become that
-
ivy
i'm not opposed to vendoring a few Rust packages, we do plenty of that for C/C++ right now, but is we need to vendor 200 packages to build one library that's going to be a nightmare to manage
-
black
kerneldove: why c++ failed to do that?
-
kerneldove
because rust is better and more popular and far younger
-
black
but functionally?
-
kerneldove
if it didn't fail to do that rust wouldn't have had a vacuum to fill, but it did
-
ivy
i am dubious that Rust is "more popular"
-
ivy
maybe more popular in stack overflow surveys, but in actual software that is shipping today?
-
Koston
ivy: it's a tricky problem indeed. but if you think about it from the rust language devs perspective, if they didn't centralise the infrastructure then *they* would have portability as the "nightmare to manage"
-
ivy
although, i also don't think we should pick languages based on what's "more popular"; if rust is better than C++ we should switch based on technical merit
-
kerneldove
c++ suffers from the same problem as c, putting too much mental load on the dev. humans are error prone. putting the rigor into compiler and code makes it easier for the dev to not fuck up
-
kerneldove
that's my point, it's more popular /because/ it's better on technical merit
-
black
I still kind of consider rust to be under the "amateur" and "experimental" categories despite recent popularity
-
Koston
ivy: but then we'd be all writing haskell or lisp
-
kerneldove
recent btw
-
Koston
ivy: just that, at least I'm far too stupid for either of those
-
kerneldove
vs 50 years of C, sure, but it's about a decade old now from 1.0
-
ivy
kerneldove: but it's not more popular. how many video games written in Rust shipped in 2025 compared to video games written in C++? what about productivity applications? what % of ports applications are written in Rust?
-
Koston
black: me too tbh, but it is interesting
-
ivy
how much of Linux is written in Rust? Windows? macOS? FreeBSD?
-
Koston
rust is only popular among rust developers, he he
-
kerneldove
and how much of that code was created before rust existed? compare new projects and i'll bet rust is more popular than c++
-
Koston
it is not, lol
-
ivy
kerneldove: sure, and if we could simply throw out all existing code, a lot of things would be much easier. meanwhile, in the real world...
-
Koston
C++ is overwhelmingly more popular
-
black
if there is ever a language beyond the machine code, I want it to give me as much detail as possible in plain text.
-
kerneldove
only from inertia, if it is
-
Koston
you wouldn't believe how popular even Java still is today
-
ivy
btw, i would bet money that more lines of C++ will be written today than lines of Rust
-
Koston
just because some morons decided a few decades ago that Java should now be taught in unis as primary first language
-
kerneldove
so my point, from many years of dev in many langs, is rust is not only better than all alternatives, but so much better than i actually love dev again after decades of hating it, and it will swallow the world
-
ivy
you can only argue that Rust is "more popular" if you just aren't familiar with how embedded C++ is in literally everything
-
Koston
kerneldove: rust devs have been making that same argument for nearly a decade now btw
-
kerneldove
ok so inertia, not technical merit
-
black
you can't say that omitting keywords and typedefs like python is a legitimate "good feature"
-
kerneldove
ya and it's happening all the time. this isn't wayland
-
kerneldove
'any day now'
-
black
by the point c++ got out I think in the sphere of programming languages the peak was already reached
-
kerneldove
absurd
-
black
literature is the basis for any human language. at least virtualbox is a very nice example of things written in c++
-
Koston
well the peak being functional programming, but vast majority of devs aren't smart enough for it
-
ivy
kerneldove: when you say you "love dev again", you're talking here about personal projects, right? let's say there may be concerns for larger projects which are different from people's personal projects
-
Koston
I'm pretty sure rust is also too complex for most people to learn properly
-
kerneldove
well i have personal projects that are upwards of 50k LoC, so not toys
-
kerneldove
and i'm 1 dev and i can manage it just fine
-
kerneldove
multiple of them
-
ivy
yes, but when you are 1 dev, you do not have issues which apply to a project with 400 devs
-
Koston
kerneldove: the reason *why* you can manage it fine is because you're 1 dev
-
ketas
i have problem with merely running the rust
-
ivy
^^
-
kerneldove
nah it's because rust is great
-
Koston
heh
-
ketas
let alone write it
-
kerneldove
it's a power multiplier like AI
-
Koston
I'm going to play super mario now, have fun ;)
-
ketas
ever heard of them, java, rust, qt
-
kerneldove
i understand the pushback, but you'll eventually be convinced or age out and be replaced by someone who is convinced. that's not because of hype, but because of technical superiority
-
kerneldove
same with freebsd and any other non-rust code
-
black
I think in Gosling's days it was the dusk of "creating additional syntax for a new programming language" already
-
ivy
kerneldove: by the time i'm "aged out" there will be 37 more languages which are newer and better than rust
-
black
Java did have its own merit at least because Sun played an important part in the development of personal computers
-
kerneldove
but will they be better enough to supplant the inertia rust has already built up by then? if so then i'll switch too, but i doubt it
-
ivy
i like Rust (the language), i would like to see more of it, but people like you are simplying trying to deny reality when it comes to practical adoption
-
kerneldove
no u
-
kerneldove
i'll try to get a job working on large rust codebases and teams then see what i can comment about that
-
ivy
btw, why are we talking about C/C++ when all new code nowadays in written in Ada, a language which is objectively superior to C/C++ on techincal merit?
-
black
imo c/c++ was already the peak... anything after that was "re-inventing the wheel" ivy
-
ketas
i never understood how languages are, sometimes it feels like fashion thing
-
ketas
:/
-
black
it had its merit in being the first, and in the code base of various OS kernels
-
ketas
why c didn't die out if it was so bad?
-
ketas
or if was too big to fail?
-
kerneldove
no alternatives that were better enough
-
ivy
black: i like C++ and also hate it. it has many advantage that Rust also does, but because of its history and the requirement for C compatibility, it can be extremely confusing to work with sometimes
-
kerneldove
guarantee you rust will essentially kill C if it hasn't already (going off new proj's being started)
-
ketas
and now they are... how and why?
-
black
ketas: yeah I try not to understand it as "fashion"
-
ketas
because now you can afford 1g for rust
-
ketas
?
-
ivy
like, i am fully on board with rewriting as much of FreeBSD as we can in C++ (i've written a bunch of C++ code in base) and if we adopt Rust, i'll argue for writing new code in Rust
-
ivy
since Rust seems like basically, C++ but done without the weird historical bits
-
ketas
unsure how much of that 1g is compiler and how much the "libs"
-
ivy
but i am still concerned about that crates crap
-
ketas
why are they bad?
-
ketas
they are modules for rust
-
ketas
or libs should we say
-
ketas
surely lib per se isn't bad?
-
paulf
Rust has memory safety and a relatively easy to use build and package system
-
black
ease of use is sometimes at conflict with greater control over what you do
-
black
it's nice to have something that's easy but NOT any easier.
-
paulf
Rust has poor generic programming and fairly spectacularly trait syntax
-
paulf
in what sense is the C and C++ build and package system "easy"?
-
paulf
On FreeBSD hundreds or port maintainers have to fight with umpteen underlying build systems to coerce them into a whole that works sorta OK
-
ketas
kind of fun yeah
-
ivy
ketas: please read scrollabck where i went into detail on my concerns about crates, no reason to repeat all that
-
ketas
hmm unsure where to even start reading
-
ketas
i tried in some parts
-
ketas
there's dev part of things, admin part, and user part
-
kerneldove
imo best place to start is
doc.rust-lang.org/book
-
kerneldove
then write some code, see what the hubub is about
-
kerneldove
##rust is really helpful too
-
ketas
i hope that wasn't to me
-
ketas
:p
-
kerneldove
nvm :)
-
Koston
ivy: your concerns towards embedding centralised package management in programming languages are largely valid from OS point of view and shared by many others, but imho ultimately they're mostly just semantics issues
-
ketas
because i write shell, if it's not enough i write perl, if that's not doing it i write that part in c, if it doesn't run any of this, it probably runs js
-
Koston
ivy: I see much bigger challenge with rust itself as a language vs. projects with hundreds of contributors spanning over decades of effort. the language is absolutely not at all like C/C++ in many crucial ways
-
ivy
Koston: my response to "this is just semantics" is that "semantics" means "meaning", and nothing could be more important than the actual meaning of our words
-
ketas
sometimes people have written libs in other languages, then i need to endure this and build a bridge eh
-
ketas
i haven't much thought about all of this at all
-
ketas
you know the whole "cs" thing
-
kerneldove
vmstat's --libxo output kinda sucks. it doesn't line delimit each display so i can't run it once and parse each output
-
kerneldove
so instead i gotta loop over running it over and over lol wtf
-
kerneldove
if i give it -c 5, there should be 5 json wads (lines) outputted but instead it outputs the 5 wads on 1 line
-
kerneldove
anyone know a fix?
-
ketas
uptime/w xo is broken btw
-
kerneldove
huh?
-
ketas
unless it's intended
-
ivy
what is "uptime/w"?
-
ketas
w(1)
-
ketas
tells
-
ketas
"uptime-human": " 4:57,",
-
ketas
why the padding?
-
ivy
that's a bug, please file a PR
-
ketas
:)
-
Koston
ivy: by semantics in this case I mean issues around handling of code, not the code itself
-
Koston
for the ports collection anyway
-
Koston
for the base OS, such concerns are more just FUD at this point. even linux dweebs haven't yet done anything meaningful with rust and there's nothing interesting beyond the language itself from an OS point of view that I'm aware of
-
ketas
bug file but
-
ketas
filed
-
ivy
spmzt: because bcmp was deprecated 40 years ago
-
ivy
otherwise, it's fine, but you may perhaps be running into issues with padding
-
ivy
since sockaddr_storage is usually larger than the relevent data it contains
-
spmzt
so what should I use instead? in kernel there are a lot of bcmp comparison between sockaddr structs
-
spmzt
even when using ss_len?
-
ivy
add a printf() showing the ss_len and make sure it matches what you expect for the af
-
ivy
depending on the context, ss_len could be the size of the stuct itself, which is wrong if you intend to pass it to bcmp/memcpy
-
Koston
or use a breakpoint in the debugger ;)
-
ivy
s/memcpy/memcmp
-
spmzt
I see people converting sockaddr_storage to sockaddr_in[6] and using bcmp for comparison. I can't see why they don't check their ss_family to be equal and then directly compare them instead of converting to sockaddr_in[6]
-
ivy
Koston: but basically no one does this because having to attach a serial debug console is way more annoying than just adding printf
-
spmzt
ivy: why it's wrong if their family matches?
-
ivy
spmzt: are you asking about a bug you're running into in code you are writing, or are you asking why existing code works in a particular way?
-
spmzt
I'm in the middle of writing a network driver (geneve protocol) and I don't know which approach should I use.
-
Koston
ivy: and as we can see from linux, it's entirely possible for that excuse to transform into "I've invested too much into my printf() debug system to bother with a debugger"
-
ivy
Koston: cool story
-
Koston
it's a miserable story
-
kerneldove
ketas can you confirm that libxo works counterintuitively with vmstat and -c #? vmstat -c 5 --libxo=json. notice it doesn't output per line, but instead outputs all to 1 line, making parsing harder
-
ivy
spmzt: this really depends on the context, like if you just copyin()d a sockaddr_storage from userland, you can't assume ss_len is set to anything sensible
-
spmzt
I know it's better to use sockaddr_storage instead of union of sockaddr[_in[6]], however, I'm not sure how to compare them.
-
ketas
kerneldove: yeah misses \n?
-
ketas
that's cursed
-
kerneldove
sad
-
ketas
at least in that place
-
ketas
because how do you delimit json "packets"
-
kerneldove
so i guess i'll just run the command over and over in a loop
-
spmzt
ivy: seems like sockaddr_storage is behave way more different that I thought. I have both scenario which I get my address from ifconfig in userland (copyin/out
-
spmzt
is there any documentation to read about its behaviour?
-
ivy
there's nothing special about sockaddr_storage, it's just a workaround for the shitty sockets API
-
ketas
kerneldove: you need it fast?
-
ivy
it lets userland code allocate a large enough buffer to store any sort of address, except AF_UNIX, because reasons
-
kerneldove
wym?
-
ketas
actually it outputs neverending json
-
ivy
if you need to accept a socket address in the kernel, you should accept a sockaddr* pointer and a socklen, where the socklen is the length of the address
-
ketas
which is weird
-
ketas
can't even parse it
-
kerneldove
ya
-
ivy
then you can just use the provided socklen and don't need to care what ss_len says
-
kerneldove
infinite line
-
ketas
json never ends until the end
-
ketas
:)
-
kerneldove
ya so not usable with vmstat -w # (infinite output) which is what i wanted
-
kerneldove
like wtf
-
ivy
spmzt: kernel interfaces should not use sockaddr_storage
-
ivy
see bind(2), accept(2), etc
-
ketas
i love the vmstat 1 --libxo=json
-
ketas
json never ends :}
-
ketas
:)
-
spmzt
ivy: but, if_ovpn, if_lagg, and a lot of pf interfaces (pflow, if_pfsync,.. ) use the sockaddr_storage in kernel
-
kerneldove
but it should be line delimited for each output of -w
-
ketas
i'm unsure if json streaming is a thing
-
ivy
spmzt: there are plenty of kernel interfaces that should be better than they are
-
ketas
my own things i delimites it with \n
-
ketas
actual \n not json "\n"
-
kerneldove
ya ofc, anyone that doesn't hate users does so
-
kerneldove
it's json but still line-oriented interface
-
kerneldove
if nothing else make it a libxo token that can be configured. there's pretty formatting afterall. no-top, all kinds of stuff
-
ketas
well i love how it breaka json in ^c
-
kerneldove
but no linedelimit-objects token?
-
ketas
breaks
-
ketas
xo is fun thing
-
spmzt
So it's better to use sockaddr itself? or use an union of sockaddr[_in[6]] like the one in vxlan_sockaddr?
-
kerneldove
it's a great idea and has massive potential, just needs some love
-
ketas
hard to maintain in code too
-
ketas
vmstat -c 3 1 --libxo=json makes triple json
-
ketas
all elements are thrice eh
-
ivy
spmzt: ideally, never embed the size of any struct in a kernel interface, because this makes it more difficult to maintain backward compatibility
-
ketas
or, wait
-
ketas
yeah that's a bug
-
ketas
i get where this comes of
-
spmzt
Ok, ty, I use the vxlan approach and use an union for sockaddr[_in[6]].
-
ketas
xo just does all you tell it to do
-
ketas
it works in part and whole modes
-
ivy
spmzt: a union of structs is still embedding the size of a struct in a kernel interface. but if you want to that it's up to you
-
ketas
file that bug too kerneldove ?
-
ketas
who's patching that tho
-
ketas
unless you do
-
ketas
while here, i needed simple seconds out of w(1), i couldn't figure out how to do it, so i just ended up doing uptime-secs.c :/
-
ketas
my head wanted to explode on attempt to implement -s option that only works if w is uptime
-
kerneldove
i only use rust heh
-
ketas
if that's even a good idea?
-
black
kerneldove: like only?
-
black
any foundation in some other languages?
-
ketas
i used it in embedded, in watchdog system check mode as nice comparative value
-
kerneldove
ya it's the only lang i use now
-
» ivy never trusts people who "only use" one language
-
ivy
most developers have practical reasons to learn several languages
-
kerneldove
5iq take but ok
-
ketas
xo has seconds but what to parse it with :)
-
kerneldove
i used to juggle multiple langs, now i use 1 superior lang for all the stuff i do
-
black
my experiences with nodejs was the most painful
-
kerneldove
focusing on 1 lets me get better with it
-
ketas
where's base json parser
-
ivy
ketas: libprivateucl
-
ketas
json is nice data format tho
-
ketas
hmm yeah i heard
-
ketas
and write lua script?
-
ketas
i mean...
-
ketas
well this is maybe not what xo is for
-
kerneldove
i write my scripts in rust now too, not even bash
-
ketas
when i got mad at xo, someone proposes "libsys"
-
ivy
ketas: if you mean you want to write a base lua script that loads json, flua has the ucl module
-
black
scripts are scripts, binaries are binaries man ketas
-
black
kerneldove: sorry
-
ivy
nb, this is for base only, do not use flua in third-party software
-
kerneldove
my scripts remain as text, they're just rust
-
ketas
i just wanted to have uptime in seconds in base in shell script eh
-
ketas
not rube goldberg machine parse json with lua etc
-
kerneldove
rube goldberg lol
-
ketas
then have that from shell
-
ketas
well shell has limits but you can in place read and edit it
-
ketas
oh, it can be sysctl too, if that's easier?
-
ketas
unsure
-
ketas
wallclock seconds of uptime was handy
-
ivy
431!tansy /src/bsd/main [main]% echo $(date +%s) '-' $(sysctl kern.boottime | sed -e 's/.* sec = \([0-9]*\).*/\1/') | bc
-
ivy
277435
-
ivy
433!tansy /src/bsd/main [main]% w
-
ivy
11:16AM up 3 days, 5:04, 5 users, load averages: 0.43, 0.22, 0.15
-
ketas
ok but what happens if time changes?
-
ketas
nothing?
-
ivy
445!tansy ~% w --libxo=json|sed -e 's/.*"uptime":\([0-9]*\).*/\1/'
-
ivy
277596
-
ketas
maybe i'm mistaken it being affected by time
-
ketas
doesn't even make sense tbh
-
ketas
yeah it adjusts eb
-
ketas
eh
-
ketas
:p
-
ketas
there was a time bug once
-
ketas
time="`date +%s`"; boottime="`sysctl -n kern.boottime | cut -d , -f 1 | cut -d ' ' -f 4`"
-
ketas
back to this
-
ketas
it's fun actually
-
ketas
text parsing can break but it works
-
ketas
i actually grew up on interpreted langs
-
ketas
that may be issue
-
ketas
and i didn't take any of in schools either
-
ketas
they do have drawbacks i realize, but so comforting
-
ketas
my first language was mirc script, which is quite high level language i don't even know why the author created, he basically exposed entire windows apis in there, and it was easy
-
kerneldove
rewrite it in rust
-
ketas
rewrite what
-
ketas
young me even did malware in it
-
ketas
i think the bug in armv7 that made time run back and forth depending on which cpu core kept it, clouded my mind eh
-
kerneldove
HAHAHA the json output of vmstat isn't even valid. there're no braces around each output when -c > 1 resulting in duplicated keys
-
kerneldove
and i can't even use the output of -c 1 because it's always the stupid fucking 'since reboot' data
-
kerneldove
what a pile of trash
-
ketas
in the end i was able to bisect it into a commit and it was fixed
-
ketas
kerneldove: only saw it now?
-
ketas
i told it's invalid json :)
-
ketas
what you use it for?
-
ketas
you could maybe poll and it's not more resources
-
kerneldove
i didn't realize the extent of invalid json vmstat outputted
-
kerneldove
so since i can't use vmstat output, is there another way to get the pi po swap paging data?
-
ketas
just loooooop it
-
ivy
send a PR with a patch to fix the problem
-
ivy
or at least file a PR to report the problem
-
kerneldove
looping doesn't help
-
ketas
i sent w(1) pr without patch
-
kerneldove
ketas will you report the invalid json bug for vmstat pls?
-
ketas
but i did send periodic.conf bug with a patch
-
ketas
no account?
-
ketas
yes i could
-
kerneldove
no, no account. tyvm i'd really appreciate it. ivy would too
-
ketas
context-switches":" 12K"},
-
ketas
and it pads?
-
ketas
xo is code is difficult so no wonder it's buggy
-
ivy
i would not appreciate bug reports about w(1) right now, but if you want to cc me i may look at it eventually. right now i am working on 15.0 issues
-
ivy
unless you have a patch in which case yes
-
ketas
adrian told he told ivy about me
-
ketas
:p
-
ivy
huh?
-
ketas
but all those things aren't critical
-
kerneldove
to work around the issue i'm going to just parse the raw text output. really hurts me how freebsd had great tech like libxo but lots of it is left half-baked
-
ketas
i wonder why juniper guys didn't catch it
-
ketas
also, do we need tests
-
kerneldove
they prolly only tested it on cmds that output 1 set of results, rather than multiple like how vmstat -c #>1 works
-
ketas
i'm not a test fan
-
ketas
i realize why tests exist
-
kerneldove
ya and rust makes testing easy
-
kerneldove
i never bothered with tests until i started using rust now i have quite a bit
-
ketas
multiple times i've see program with bug flapping in and out
-
kerneldove
learn rust and leave those days behind you my friend
-
ivy
i am not sure how to understand "i'm not a test fan", but any functionality that exists in base can have a test
-
kerneldove
i routinely make code that i then deploy and it runs for years untouched
-
ivy
we have a pretty good test framework and it has nothing to do with rust
-
ketas
tests are complex
-
ketas
and work
-
ketas
like docs
-
ketas
but you need both
-
ivy
tests reduce work because they avoid having to fix the same problem 10 times
-
ketas
yes
-
kerneldove
ya
-
ivy
otoh, we are lacking anything like jq(1) in base, which might make it difficult to test this
-
ivy
i was wondering about importing Allan Jude's uclcmd...
-
kerneldove
jq is good
-
ketas
it's worse if bug that comes back is critical
-
kerneldove
tests on highly used fn's are so helpful
-
ivy
freebsd tests cover not just functions but commands, kernel subsystems, etc
-
ketas
uclcmd is jq like thing?
-
ivy
i.e., they are integration tests, not just unit tests
-
ivy
ketas: it's like jq but using libucl, yes
-
ketas
but we also don't have git in base so...
-
ivy
(libucl can read json files)
-
ketas
why base lost perl btw?
-
ivy
we will never have git in base, but we will have got soon
-
ketas
sockstat was once perl, etc
-
ivy
perl was removed from base because it's huge and shouldn't be in base. the few things that required it were rewritten in awk
-
ketas
sure, licenses
-
kerneldove
got is good
-
ivy
you can still install perl from ports, so not having it in base is fine
-
ketas
btw, at which point gpl even tells me to give code out?
-
ketas
if i modify it?
-
kerneldove
ketas did you file the vmstat json output bug?
-
ketas
not yet
-
ivy
ketas: GPLv2: if you distribute the binary, you must distribute the source code. GPLv3: if you provide a service based on the source code, you must distribute the source code.
-
ivy
actually, i'm not 100% sure about the second bit, maybe that didn't make it into GPLv3
-
kerneldove
ketas there are 2 related bugs with json output of vmstat when -c is > 1. first, output isn't encapsulated in braces, resulting in duplicate keys between multiple sets of output data. second, sets of output data aren't line delimited, making parsing hard
-
ketas
what if code has no local patches?
-
ketas
i can't just tell code is in upstream?
-
ivy
still, if you distribute the binary, you have to distribute the source code
-
ivy
the GPL says you will agree to do so under a set of "reasonable" terms it defines
-
ketas
how many times has anyone read gpl here
-
ketas
i have read 2cl bsd tho
-
ketas
it's just one text block :)
-
kerneldove
i just use bsd/mit so i don't have to become a lawyer in order to share code
-
ketas
yeah
-
kerneldove
copyleft ppl prolly have a point but i can't be bothered
-
ketas
submitted a bug
-
ketas
but sadly there's no ai who can fix this
-
ketas
have to be humans
-
ketas
i didn't find related bug by search
-
ketas
-
ketas
what i wrote
-
kerneldove
i wrote a nice paragraph with details and you just shit that turd into bugzilla? no wonder devs ignore our prs
-
ketas
vmstat is 8 actually
-
kerneldove
what?
-
ketas
well i can put your actual line there
-
kerneldove
ya let's do that
-
kerneldove
ty
-
ketas
which one?
-
ketas
and who and where?
-
kerneldove
there are 2 related bugs with json output of vmstat when -c is > 1. first, output isn't encapsulated in braces, resulting in duplicate keys between multiple sets of output data. second, sets of output data aren't line delimited, making parsing hard
-
ketas
Somewhere In Irc a os core bird said?
-
ketas
:)
-
lnnk
Is there a live iso for freebsd desktop?
-
ketas
nomadbsd maybe
-
ivy
freebsd doesn't have a desktop, so i don't think so
-
ketas
there was more
-
ivy
there was some discussion about including KDE in 15.0, but i don't think that ever happened
-
lnnk
Nomadbsd?
-
ketas
like on a installer?
-
ketas
-
ketas
there used to be others
-
ketas
and still are
-
ketas
i plan to make one for myself
-
ketas
yeah added
-
lnnk
I would Like booting a live iso from pendrive and test whether my laptop WiFi works before installing it.so is there any other option I prefer xfce or cinnamon live iso.is there any other BSD distro ?
-
ketas
kerneldove: unless adding accounts to bugzilla is super complicated now due spam, why not have own account
-
lnnk
And nomadbsd provides image files not iso.
-
ketas
do you need actual iso?
-
ketas
they are all bootable storages which run os
-
ketas
yeah xfce is nice and light
-
ketas
i plan to base mine on that
-
ketas
before n.o.s. t60 hardwarely broke, it ran fbsd over a decade
-
ketas
you can actually install into usb on your own
-
ketas
just be vary of writes
-
ketas
you can also put it on better flash thing
-
ketas
or you can just yolo it and throw flash in trash after 2y
-
ketas
after io errors
-
ketas
i lookes nomadbsd x config and i use that i think
-
ketas
in my cupboard i have freesbie cd-r and once i even booted it
-
ketas
hopelessly outdated but worked
-
ketas
on old hw :p
-
mosaid
Oh, my znc is back now
-
mosaid
Thanks for ircnow work :)
-
ketas
:)
-
mosaid
I am Retrofan, if someone don't know
-
mosaid
And my home is successfully copied!
-
mosaid
Moved other data to the 70GB partition, now let me test it
-
ketas
tar -cf- -C /house1 . | tar -xf- -C /house2 ?
-
ketas
oh that
-
ketas
:p
-
mosaid
heh
-
mosaid
ketas: my home on freebsd, not real one
-
mosaid
*the
-
ketas
:)
-
mosaid
Strange the OG /home is (90998550528 bytes), but the new one which is should be a copy (91017371648 bytes)
-
mosaid
The copy is bigger someway..
-
mosaid
but same dates and permissions
-
ketas
rsync --dry-run it
-
ketas
or cpdup maybe
-
rtprio
mosaid: du and df never are identical
-
mosaid
rtprio: yeah, but as I can see in /home some tmp files is deleted, so everything is fine
-
ketas
oh yes that too
-
mosaid
bec I relogged in
-
ketas
and du -A
-
mosaid
I am now in XDM
-
ketas
one can also tar old one up and just move
-
ketas
:p
-
mosaid
So it's normal, I am just moving now
-
mosaid
and the deleted socket is for the trash chromium, which I removed before
-
ketas
or just don't use both sides
-
ketas
how did you move it?
-
mosaid
cp -Rp
-
ketas
tar tar and let it sit is usually best
-
ketas
no -P?
-
ketas
anyway it's ok i guess :p
-
mosaid
No problem everything is fine here, I will move it
-
mosaid
*now
-
ketas
you can always like ( cd dir/ && find . | sed 's|^\.||' | sort ) > 0 ... diff -u it
-
ketas
or sum it
-
mosaid
Ok
-
rtprio
so now you can rm -Rfv /usr/oldhome
-
mosaid
Heh, I didn't even test till now, I will logout and test
-
mosaid
rtprtio: could I enable xattr on my home partition if it succeeded?
-
mosaid
And a very stupid question :p is /entropy file has any connection to entropy theory?
-
dch
anybody familiar with `statfs(2)` caching stale behaviour when used with MNT_NOWAIT ?
-
dch
during a growfs(8) type operation it seems the free space isn't updated for quite a while (precise time from my colleagues is elusive but minutes not a few seconds)
-
ivy
do not stat the fs. the more you stat the fs, the more the fs stats you
-
dch
wise words!
-
dch
this is in the prometheus node_exporter which does a 2-step
-
dch
- read the # of fs to allocate mem
-
ivy
(i think Nietzsche originally wrote this in his commentary on 4.3BSD)
-
dch
- then read all the fs with MNT_NOWAIT
-
dch
we like to know when we are running out of disk space
-
ivy
oh excuse me, i see you wanted a serious answer :-D
-
dch
but it turns out if you grow the pool, the space is still reported at old space until you run `df(1)` or similar
-
dch
oh I'm equally delighted by snark or useful help :-)
-
dch
its that time of day already
-
ivy
you know, Nietzsche would have liked unionfs(4). you've got the unterfilesystem and the uberfilesystem...
-
dch
nah he'd be all over nullfs(4)
-
dch
big /dev/null user too ofc
-
ivy
hmm
-
ivy
i feel like he'd prefer /dev/urandom, it provides a continuous stream of new information. /dev/null is more like passive nihilism, which he hated
-
ivy
but random data without any concern for what it means? that's actual nihilism
-
» dch chuckles
-
ivy
dch: i think gleb is ignoring me :-(
-
ketas
why
-
dch
too many good patches requiring review is my guess
-
ketas
eh yes
-
ivy
more likely because i do a lot of ranting on irc and probably ended up on everyone's ignore list
-
ketas
so, i patched a efi loader to load in extra env file
-
ketas
hmm
-
ivy
i also never got a response from Raptor about my ppc64le question, which is a shame, i thought they liked FreeBSD
-
ketas
raptor, that fancy hw maker?
-
ivy
i'm not sure how fancy they are, but they make POWER desktops and servers
-
ketas
just had to look them up
-
ketas
wait, ppc, in 2025?
-
ivy
technically no, it's POWER, not PPC
-
ketas
a kind of relative to ppc
-
ketas
In an industry first, Talos™ II ships with fully open and auditable BMC firmware, based on the Open BMC project.
-
ketas
finally eh
-
mosaid
Yesss!
-
mosaid
It works
-
mosaid
rtprio: It worked
-
mosaid
Thank you :)
-
maccampus
What is the default gui in FreeBSD ?
-
mosaid
What is Freebsd have gui?
-
maccampus
There is nodefault gui ?
-
mosaid
I don't know
-
mosaid
I installed it with no gui option
-
maccampus
I read the textinstaller does not install a gui. I presumed there was also a gui installer.
-
maccampus
VreeBSD is my Fallback plan as i see no more new Hello OS (FreeBSD Based, MacOS like) versions & may presume it halted & goes nowhere.
-
mosaid
maccampus: why not install it normally, then install x11,xdm.. after that add any window manger you like, and other programs to build a DE or install a ready one like Gnome or KDE
-
maccampus
With ports ?
-
mosaid
Or pkgs to save time
-
maccampus
this is source vs. compiled i guess ?
-
mosaid
Ports will help you installing old and dead apps, or create a customized binary for your system.. or do you an thing you want
-
ivy
there is no "default GUI" in FreeBSD and there is no GUI installer
-
mosaid
Yas
-
mosaid
*yes
-
ivy
you can install any GUI you want from ports (kde, xfce, gnome, etc.)
-
mosaid
This what I said
-
ivy
mosaid: okay, i did not see you say explicitly that freebsd doesn't have a default gui
-
mosaid
maccampus: from where did you came here (even before Hello OS)
-
ivy
maccampus: also, this has nothing to do with installing from source vs compiled
-
mosaid
ivy: heh I am just confirming the info
-
mosaid
Ah, look like your a mac user..
-
maccampus
been coming here since the beginning of OS X (MacOS) as OSX was the continuisation of NexTStep where the cli was updated with freeBSD mainly & also i think OpenBSD parts. I thereor presume as OSX was also seen as the fourth big BSD, BSD based OS would be mre closely related to OS X then a Linux one, besides BSD comes with Linux compat layer
-
maccampus
Also freeBSD is thus after OSX the Second biggest BSD, therefor the better one to choose. I also presumed if i had chosen HelloOS, if it had not stalled, for it is a gui on FreeBSD, i would still be a FreeBSD'er
-
Koston
calling MacOS a "BSD" is quite a stretch
-
maccampus
removing the gui, isn't ita BSD ?
-
crab
the kernel isnt bsd
-
maccampus
All BSD's have different Kernels, MacOS is a mixed BSD with MaCh Kernel, as was NextStep
-
maccampus
But this is a discussion that goes nowhere
-
crab
well... theres a lot of bsd code in windows too ;)
-
maccampus
can you point me to an OS that more closely resembles MacOS or Darwin then BSD, then do so
-
crab
oh sorry, i didnt realise that we were only talking about how things look
-
maccampus
If not, then here is where i want/got to be
-
crab
in that case i agree
-
crab
it definitely does look very bsd like from several angles
-
mosaid
windows NT is semi unix
-
Alver
... no, it is not.
-
mosaid
See the leaked code
-
Alver
By that standard there is virtually no OS in existance that is *not* "semi unix".
-
mosaid
Yeah
-
mosaid
heh
-
Alver
(ironically, z/OS *is* a unix in the most formal sense of the word)
-
daddoo
so, what you're saying is that Unix is the equivalent of "tastes like chicken" in the computing world? :-)
-
mosaid
Alver: but it will be there, many OSs pre 1980 not anyway similar to unix
-
maccampus
So for now i could go like mosaid says & install any gui of choise or could go the easy way & go MidnightBSD( however they don't follow FreeBSD code anymore & became a Fourth,fifth, sixth, whatever BSD wicht might be bad, good or unimportant to me)
-
maccampus
i am reading
-
crab
daddoo: "those who do not understand unix are condemned to reinvent it poorly"
-
daddoo
:-)
-
ketas
someone said that windows contains many bsod elements instead of bsd
-
ketas
but it did, yes
-
mosaid
as remember, I read before that IBM was going to make Os/2 a real Unix that looks similar to windows.. in it's begins
-
ketas
where did the \ paths come from?
-
ketas
and windows is just another oa among nany
-
mosaid
but also some people was saying final OS/2 resaleses at least works very similar to UNIX in idea not the way it works
-
daddoo
IBM has AIX for many years though, which is Unix-like (they claim it's *not* Unix, even if there are similar interfaces)
-
maccampus
To be In the '80ties Microsoft planned to replace DOS with Unix, but then they stole what they needed & included into DOS, OS/2 & later Windows
-
mosaid
ketas: they was going to make, didn't done it
-
ketas
also who put taskbar up?
-
mosaid
*do
-
ketas
to me it's crazy as i used w95
-
ketas
oh 3.11 existed on school machines too actually
-
maccampus
It also was Microsoft who initiated the 2nd Unix war
-
ketas
also let's not forget i was unable to obtain computers in soviet union
-
ketas
:p
-
maccampus
bulla, The soviet had their own computers during cold Was & even their own BSD
-
maccampus
War *
-
ketas
so i didn't see many earlier things
-
ketas
own bsd eh?
-
maccampus
Demos
-
ketas
well yes they did have computers but
-
ketas
plus if you have computers generally limited avail, not everyone gets it
-
daddoo
ketas - at what point did "home computers" of any type become available to the average citizen?
-
ketas
in us? :p
-
ketas
or here
-
daddoo
in Soviet Union
-
maccampus
94 ?
-
ketas
-
ketas
well i can't say much as i also did born in 1983
-
ketas
and i didn't spend time with computer people and so on
-
ketas
so for own machine i got it at 1999
-
mosaid
Could I shrink my root partition UFS
-
ketas
which is not even far from general public availablity of those things
-
ketas
no
-
maccampus
seems all BSD - Demos refference & Demos in total is gone on wikipedia :(
-
mosaid
I was so stupid making my root partition 195GB
-
ketas
wtf is demos
-
ketas
oh the soviet bsd
-
maccampus
Demos wasRussian BSD for Russion made PDP clones
-
tsoome_
the "home" computers did appear at the end of 1980's, the "average people " is not the term in that context, however. "Average" people got access to computers when soviet union was dead.
-
ketas
there are computers in dprk too
-
daddoo
I gather that there were quite a few systems based on the PDP-11 clone. Which was a great processor.
-
ketas
tsoome_: and even then it took a lot of time?
-
ketas
many people blurt their drinks out in us that landline phone wasn't really common here until 90s
-
ketas
:/
-
ketas
i admit it was a fast pace tho
-
tsoome_
well, as usual, you need to some level of income to start owning things outside the survival needs;)
-
daddoo
sure
-
ketas
soon after pots, isdn came, then were quickly passed by dsl
-
mosaid
ketas: here too
-
ketas
many things were passed
-
ketas
like vhs was on the way out when it came
-
ketas
kind of
-
mosaid
landline phones was not really common till 1990
-
ketas
what is english name for pots line multiplex
-
ketas
that was one cursed system
-
ketas
but they you had like phone at HOME
-
mosaid
We got our first personal one in that time, and it was from 60s.. you get it free with subscription, you can pay for newer one as I remember
-
ketas
sure, if you had "connections" you got to see things
-
ketas
it's fun how soviet union did both blame west and copy it
-
mosaid
I still have it here :) and it's working
-
ketas
as they were unable to make basic goods
-
daddoo
"pots line multiplex" - are you thinking of a "party line"? That's where people shared the phone but each house had a slightly different ring.
-
ketas
not party
-
ketas
2 numbers 1 user at time
-
ketas
and todays russia is still unable to function as normal state
-
maccampus
in the soviet Union telephone lines was always party line's
-
ketas
have to jizzz into other's people's teacups
-
angry_vincent
ketas: aren't they do it all the time?
-
daddoo
haha
-
maccampus
You, your correspondent & the KGB opperative
-
mosaid
This was in rural places where I lived, In big cities it was there like form 1920s
-
mosaid
*from
-
ketas
tsoome_: i bet you have answer what that linesharing was
-
ketas
i can't google it out again
-
ketas
it wasn't their invention either
-
tsoome_
not really sure:) we never had landline when I was a kid and I have never been interested too deep about phone systems:D in my alma mater we had some current loop devices back then, but thats about it:D
-
mosaid
Oh, I have here 1389 pkg installed, ports not counted it uses 104GB without my home folder.. so I think I was a right idea
-
mosaid
*it
-
ketas
-
ketas
anyway
-
ketas
i once found english specs for that system
-
ketas
but yeah, that takes ton of time to trickle all the computer stuff to all the people
-
mosaid
Oh, no it wrong calculated it, it only uses 48GB, I need to shrink it
-
mosaid
*I
-
ketas
sadly, no shrinks
-
mosaid
I saw some way to do it
-
mosaid
-
mosaid
I will it work?
-
ketas
i forgot to add guard space to my zfs too so i'm stuck
-
ketas
looked up, planned, forgot
-
ketas
dog
-
ketas
doh
-
ketas
on computers, i'm amazed how hetzner runs their dc like some basement dungeon computer repair shop
-
ketas
bare hdds, what's case for, etc
-
ketas
there is no ufs shrink
-
ketas
and i found why zfs has none
-
ketas
basically it likes to save once
-
ketas
this was done on purpose
-
ketas
unfortunately this isn't compatible with what size of disk i have today type setups
-
rtprio
i've never found the need to shrink
-
rtprio
well, not since i got rid of all my 40gb or less hard drives
-
mosaid
rtprio: so shrinking is impossible?
-
rtprio
basically impossible; you basically back it up and recreate it smaller
-
rtprio
that's why a single / is so popular for non-zfs
-
mosaid
So what now, getting back to my old home?
-
rtprio
that depends on many factors, none of which i am aware of
-
mosaid
rtprio: let me explain it: I have 2 drivers connected, two of them 500GBs.. first one which contains root (195GB for root, 195GB for the new Home and 66GB for an additional storage), second is the oldest and NTFS is nearly full (only 10GB is left on the third partition).. so I wanted to create additional storage, and I also store in home. but home is getting bigger and bigger, and the...
-
mosaid
...upgrading processes would surly make me sometime lose all this data; so moved it now to it's own 195GB partition, and I was planning to shrink the root to 75GB.. which will enable me to increase the 66GB partition to 195GB.
-
mosaid
and I am going to use verdman UFS boot environment for the next upgrade in april, and if it failed, I can easily install fresh copy of 14 without worrying about my home (I will also moved /usr/ports to safe place, and created a symlink)
-
mosaid
*I also moved
-
mosaid
And the third drive I will reconnect, and copy the whole data to my new 1TB using ZFS pool
-
mosaid
and I will
-
mosaid
Also, the second and third ones arealso (195, 195 and 75).. heh, I think every thing is clear now..
-
mosaid
I want to take the benfit of the unused space in / root, also make the upgrade easy and safe as possible.. I made it huge like that; bec. I thinked pkgs will take a lot of space.
-
rtprio
just skip to using the 1tb with zfs and then it doesn't matter how big your $HOME is
-
rtprio
shuffling around on your partitions too small is just going to be tedious
-
kerneldove
are there other kinds of 'paging' than swap?
-
kerneldove
ya looks like it
-
o0x1eef
mdo.c is beautiful code, props to everyone involved
-
kerneldove
link?
-
kerneldove
why is vmstat named as such since it seems to include more data than vm subsystem data, like disk io
-
bdrewery
kerneldove: disk access goes through the vm, unified buffer cache.
docs.freebsd.org/en/books/arch-handbook/vm
-
kerneldove
wow interesting, ty. well ok but what about cpu usage time info, that's not vm too is it?
-
bdrewery
I could keep justifying but it's just a general performance overview
-
realdeimos
-
zi
realdeimos: on the upside, there's already a fix available... :)
-
V_PauAmma_V
-
realdeimos
zi: yes, hopefully in 15 release. Setting the boot/loader.conf line for that hangs the kernel for added fun.