-
gitomat
[illumos-gate] 15278 libsmb: unused parameter -- Toomas Soome <tsoome⊙mc>
-
tozhu
happy new year everyone, I have question regarding to the API to equate to sched_setaffinity on linux, or cpuset_getaffinity on FreeBSD, what’s the API for illumos? (seems Oracle Solaris had processor_affinity), is there anyone could answer? I’m going to bind postgres process on assigned cores, thanks in advance
-
tsoome_
tozhu pooladm to assign cpu pool for example
-
tsoome_
or use FSS and assign cpu shares
-
otis
good idea with FSS
-
tozhu
tsoome_ : thanks , we just use C code to bind the process,
-
tozhu
I don’t know how to do by FSS
-
tozhu
is there any C api ?
-
tsoome_
ye, there is api to create cpu set, but not the processor_affinity()
-
tozhu
tsoome_ : would you like to show me an example? or is there any docs for the API ?
-
tsoome_
see psrset manual, it has further links
-
tsoome_
but the truth is, this feature set is from the solaris 10/opensolaris fork time...
-
tozhu
tsoome_: do you say pset_create / pset_bind ?
-
tsoome_
yes.
-
tozhu
and pset_assign
-
tozhu
needs set projects in /etc/projects file
-
tsoome_
yes, thats the feature to allow admin to create cpu set, assign processes to use that set or create pooled resource and assign processes to use resource pools.
-
tozhu
processor_affinity can’t be used on illumos?
-
tsoome_
we do not have that api
-
tsoome_
the world has moved on since the fork and we only have so many people to do things. This kind of development needs time and motivation....
-
tozhu
got it, thank you all for the hard work
-
tsoome_
if you are working for some company, then company tends to have priorities of their own...
-
tozhu
-
tsoome_
that could be. I haven't used processor_affinity API myself (the solaris installations are being replaced by exadata/cloud bits here and practically everything is run on linux or windows).
-
sjorge
For
illumos.org/issues/15271 andyf pointed out using `set viona:viona_force_copy_state = 2` probably also works, I just verified it did by booting to omnios-bloody package set from 20221228 without my change
-
fenix
→ FEATURE 15271: Want tunable to force viona to always copy tx buffers (New) |
code.illumos.org/c/illumos-gate/+/2565
-
sjorge
The dtrace result with this set for `dtrace -n 'fbt:viona:viona_tx_copy_needed:return { printf("%u", args[1]) }'` was the same a with my patch
-
sjorge
However is it OK to modify the enum directly ?
-
sjorge
-
andyf
There's the same question if you set a tuneable to boolean_t, since that's an enum. system(5) says `set` can modify an integer, and they're ints, so I expect it's ok but I don't think I've seen a boolean or enum tuneable before.
-
sjorge
-
sjorge
I might just have chosen a bad example to copy though
-
andyf
Heh, just a short memory then!
-
sjorge
I did set that one to get the guid change quicker on my bloody setup
-
sjorge
So I know that worked :D
-
gitomat
[illumos-gate] 15280 uts: remove pragma ident -- Toomas Soome <tsoome⊙mc>
-
richlowe
tsoome: am I right in thinking that #1128 means we have a kb8042 instance that isn't 0?
-
richlowe
how the heck?
-
tsoome
OS image migrated to different system
-
richlowe
ah
-
tsoome
in my case, I was switching UTM system between Q35 and i440FX
-
richlowe
I forgot how long builds take when you have a shadow compiler and smatch works
-
richlowe
tsoome: do you envision clang (or even better clang-tidy) replacing smatch?
-
richlowe
unless there's a way to get clang to output the same info clang-tidy would.
-
richlowe
I've considered hacking make to write out the json that makes clang-tidy more convenient to use
-
richlowe
or a lil tool to create it from .make.state
-
tsoome
perhaps, but I think it is still too early to tell...
-
richlowe
my only real input is that in my experience clang-tidy (unless you can tell clang to run the full analyzer passes), gives much more detailed output about subtle issues.
-
richlowe
and perhaps v. clang _any_ output about subtle issues.
-
tsoome
of course, I haven't really checked what is the difference with current smatch (assuming it has been developed;)
-
richlowe
it gives the me the entire voluminous control flow of uninitialized uses for eg
-
tsoome
yes, I like that with clang:)
-
richlowe
can I tell the compiler to do that rather than running clang-tidy separately?
-
richlowe
'cos if so ignore me about a clang-tidy pass, obviously :)
-
jbk
there are some interesting bits of smatch we don't use... though unsure how useful they'd be for us
-
jbk
like you can tag stuff with something that indiciates it's a ptr w/ a userland address vs. kernel address to catch some stuff
-
jbk
IIUC
-
jbk
(and IIRC)