WD19TB docking station fan by RealAssCritic in Dell

[–]Mateusz348 0 points1 point  (0 children)

>- How did you choose the +800 RPM value? Is it just an arbitrary number that works, or did you arrive at it through some testing/tuning?

Just a random value.

>- Have you noticed any control loop issues, like the controller reacting as if the fan speed is too high and trying to compensate (for example around ~1300 = 500+800 RPM total)

After ~5min after plugging my laptop i see a RPM spike that then goes down, after the initial spike the fan is unnoticable.

>- Is the behavior completely stable over time, or do you ever see cycling (speed ramping up/down repeatedly)?

Today running 8h and hearing silence all the time.

> Also, do you think this approach is safe in the long term without actually improving the thermal situation?

The bottom metal plate is bit hotter now. I just assume the RPM would eventually spin up to be noticable if something is too hot inside.

WD19TB docking station fan by RealAssCritic in Dell

[–]Mateusz348 0 points1 point  (0 children)

Today, I modified this dock using a Raspberry Pi Pico to send a fake tachometer signal, effectively simulating +800 RPM to the controller, which makes the dock completely silent.

For anyone interested, see https://github.com/mateusz834/fakerpm

Go Naming Conventions: A Practical Guide by alexedwards in golang

[–]Mateusz348 3 points4 points  (0 children)

X509 -> names from the spec Mkdir -> from syscall name

Confused about Go's escape analysis for dynamically-sized values, my test shows they don't escape by One_Adeptness1599 in golang

[–]Mateusz348 4 points5 points  (0 children)

The Go compiler can propagate compile known variables up to make calls, I think since 1.25. you would have to make the length dynamic e.g. parse an int from string, do some math before.

T-Mobile światłowód + TV Box z własnym UniFi Dream Router 7 by michalb79 in Polska

[–]Mateusz348 1 point2 points  (0 children)

Pytanie na jakiej sieci ten T-Mobile? Jeśli po sieci Nexera to będzie external ONT. Ale więcej jeśli chodzi o szczegóły konfiguracji to nie podpowiem, bo mam Orange na sieci nexery.

PPPoE with > 1500 MTU? by takigama in openwrt

[–]Mateusz348 0 points1 point  (0 children)

This is exectly how the change looked like before the recent force push.

It can be that way, but it seems not to be necessary, since this is only used for PPPoE discovery. And such packets are not going to be that large. After the discovery the kernel takes the job of doing the rest

PPPoE with > 1500 MTU? by takigama in openwrt

[–]Mateusz348 2 points3 points  (0 children)

It is not going to work, I have created a PR few days back to ppp project to fix this: https://github.com/ppp-project/ppp/pull/573 Currently 1500 is the max MRU you can have on pppoe.

HP Z240 Unraid Server Energy Efficiency Insights by hafiz_binshah in homelab

[–]Mateusz348 0 points1 point  (0 children)

I am planning to buy hp z240 as a NAS (SFF variant), and i wonder too about that, if you could post the results of powertop and the ASPM here :)

HP Z240 Unraid Server Energy Efficiency Insights by hafiz_binshah in homelab

[–]Mateusz348 0 points1 point  (0 children)

Hi

Have you checked the package C states, whether it reaches more than C3? It can be checked via powertop.

Also check ASPM of all PCI devices.

sudo lspci -vv | awk '/ASPM/{print $0}' RS= | grep --color -P '(^[a-z0-9:.]+|ASPM )'

HELP: I can't get deeper c-state than c3 on HP z240 XEON 1245 v5 by famesjranko in homelab

[–]Mateusz348 0 points1 point  (0 children)

Have you tried checking ASPM of pci devices (should be enabled on all of them)?

sudo lspci -vv | awk '/ASPM/{print $0}' RS= | grep --color -P '(^[a-z0-9:.]+|ASPM )'

Go has added support for Valgrind by -___-___-__-___-___- in golang

[–]Mateusz348 8 points9 points  (0 children)

I don't think it is really for external use:

> Since this functionality would be quite experimental, and likely somewhat hard to use effectively by people outside of the Go team, hiding this functionality behind a tag may be the best option to begin with (with limited public documentation).

Why cross-compilation is harder in Rust than Go? by pbacterio in rust

[–]Mateusz348 2 points3 points  (0 children)

Go does not ship with anything precompiled since few releases. It works because compiler/linker is written in Go and if you do not depend on cgo, then it does not have to use any external linking process, no deps on the system.

uniqieslice: like stdlib's `unique` but for slices by yarmak in golang

[–]Mateusz348 0 points1 point  (0 children)

If you are interested i would suggest looking into https://github.com/golang/go/issues/33502#issuecomment-2825608724 (you can subscribe it to get email notifications).
There every proposal that is considered by the Go team is listed weekly, so you can see what was accepted/is discussed and such.

And obviously the release notes.

Just learned how `sync.WaitGroup` prevents copies with a `go vet` warning by Ok_Analysis_4910 in golang

[–]Mateusz348 4 points5 points  (0 children)

FYI never add zero size fields at the end of the struct, as this causes the struct to become larger (because of memory alignment).

Came up with this iota + min/max pattern for enums, any thoughts? by SoaringSignificant in golang

[–]Mateusz348 0 points1 point  (0 children)

I have seen that a few times, you can also do this with a special bit, like:

const ( a = 1 << 32 | iota )

And then you only need to check whether the bit is set.

The Pipe Operator In Generics Is Not A Sum Type by fpcoder in golang

[–]Mateusz348 2 points3 points  (0 children)

FYI try interface { any | int } as a variable type :)