On 2023-01-31, Polarian <polarian@polarian.dev> wrote:
> Thanks for the suggestion, this has worked great, obviously iperf3 does
> not support openbsd, the reason I do not know.
It does. Note it doesn't listen to IPv6 by default so if you're using
that you need the -6 option.
IIRC iperf3 checks the system clock very frequently making it a bit more
of a benchmark of clock reading than network bandwidth on machines where
reading the clock is slow. IIRC iperf 2 is better for that, or there's
tcpbench in the base OS.
> For whatever reason, when my linux server tries to send a packet to a
> lxc container on itself, it passes back to router, I assumed it was the
> router bottlenecking the performance, but it seems it does not even go
> only back to the router, but actually goes back to the exchange and then
> back to the router and then back to the server and then into the lxc
> container.
>
> Something is severely messed up on my linux server, but at least I have
> identified the issue.
Sending what should be local traffic to the ISP suggests that something
is wrong with either the routing table or firewall rules on the router.
Wednesday, February 01, 2023
Re: hw.ncpuonline
Otto said:
> it makes certain types of attack easier.
I can confirm this. I already crossed the river and I came back to the defaults.
Then "only the sky can know" about the possible attacks one can face.
I guess the defaults are to clarify "what there is under the sky".
And the metaphor of the sky makes much sense to my own system config.
There are some tricks to increment performances beyond what you just dicovered.
Eg: depending on amount of ram you own.. to employ some - and only some - gb of that
dimm stuff :D.. and depending on what you is your storage device, you can think to speed up
this latter by placing on ram the /tmp. Sorry if Im not technical enough here, you can
point the man to "fstab" or I'm sure someone else here can decode it to you.
However, there are some cons. For example some software packages don't bear this ram move
ie. MariaDB is one of those packages (aaah, bug! ;-)
-- Daniele Bonini
Feb 1, 2023 07:45:48 Otto Moerbeek <otto@drijf.net>:
> On Wed, Feb 01, 2023 at 07:35:16AM +0100, Janne Johansson wrote:
>
>> Den ons 1 feb. 2023 kl 03:08 skrev Justin Muir <ve7utm@gmail.com>:
>>> I've got an AMD A10 with 4 cores and only 2 are online. I'm not sure how to
>>> enable the other 2.
>>>
>>> hw.ncpufound=4 btw
>>> Any ideas out there?
>>
>> OpenBSD disables hyperthreading (or symmetric multithreading, smt), so
>> if your "4-core" cpu is actually 2 real cores and 2 hyperthreads, then
>> this sounds perfectly reasonable.
>>
>> For example, this box of mine (not the same cpu, but still), it looks like this:
>>
>> hw.ncpufound=8
>> hw.smt=0
>> hw.ncpuonline=4
>>
>> so I get the 4 real cores running out of possibly 8.
>>
>> --
>> May the most significant bit of your life be positive.
>>
>
> It is posible to enable symmetric multithreading, at your own risk as
> it makes certain types of attack easier. Often it does not increase
> performance.
>
> sysctl hw.smt=1
>
> See man sysctl.conf for a permanent solution.
>
> -Otto
> it makes certain types of attack easier.
I can confirm this. I already crossed the river and I came back to the defaults.
Then "only the sky can know" about the possible attacks one can face.
I guess the defaults are to clarify "what there is under the sky".
And the metaphor of the sky makes much sense to my own system config.
There are some tricks to increment performances beyond what you just dicovered.
Eg: depending on amount of ram you own.. to employ some - and only some - gb of that
dimm stuff :D.. and depending on what you is your storage device, you can think to speed up
this latter by placing on ram the /tmp. Sorry if Im not technical enough here, you can
point the man to "fstab" or I'm sure someone else here can decode it to you.
However, there are some cons. For example some software packages don't bear this ram move
ie. MariaDB is one of those packages (aaah, bug! ;-)
-- Daniele Bonini
Feb 1, 2023 07:45:48 Otto Moerbeek <otto@drijf.net>:
> On Wed, Feb 01, 2023 at 07:35:16AM +0100, Janne Johansson wrote:
>
>> Den ons 1 feb. 2023 kl 03:08 skrev Justin Muir <ve7utm@gmail.com>:
>>> I've got an AMD A10 with 4 cores and only 2 are online. I'm not sure how to
>>> enable the other 2.
>>>
>>> hw.ncpufound=4 btw
>>> Any ideas out there?
>>
>> OpenBSD disables hyperthreading (or symmetric multithreading, smt), so
>> if your "4-core" cpu is actually 2 real cores and 2 hyperthreads, then
>> this sounds perfectly reasonable.
>>
>> For example, this box of mine (not the same cpu, but still), it looks like this:
>>
>> hw.ncpufound=8
>> hw.smt=0
>> hw.ncpuonline=4
>>
>> so I get the 4 real cores running out of possibly 8.
>>
>> --
>> May the most significant bit of your life be positive.
>>
>
> It is posible to enable symmetric multithreading, at your own risk as
> it makes certain types of attack easier. Often it does not increase
> performance.
>
> sysctl hw.smt=1
>
> See man sysctl.conf for a permanent solution.
>
> -Otto
Subscribe to:
Posts (Atom)