Better HN
topnewbestaskshowjobs
Log inSign up

Coelacanthus

10 karma · joined Oct 27, 2021 (5y ago) · 7 submissions

Submissions

comment 4mo ago · link · parent

I don't know which filesystem was used. But if ext4 was used, it will be one of reasons. When you random write on ext4, and then do fsync, ext4 fast commit (introduced in 5.10) will combine them into a whole range from the lowest address to highest address, so it will sync far more data from actual modified data for random write. And even worse, if the range is larger than EXT4_FC_SNAPSHOT_MAX_RANGES, it will fallback to old full commit behavior and got worse result. There is a patch to fix this issue but it's still not merged. https://lore.kernel.org/all/20260730003715epcms2p54b7e3cc340...

comment 4mo ago · link · parent

cmpxchg16b can only handle 64bits data correctly because of ABA problem.

comment 5mo ago · link · parent

> This is a bash feature, not POSIX. dash (Debian’s /bin/sh) and zsh don’t have it, so a #!/bin/sh script can’t use it. Call bash directly.

Zsh has its own zsh/net/tcp and zsh/zftp modules.

https://zsh.sourceforge.io/Doc/Release/TCP-Function-System.h...

https://zsh.sourceforge.io/Doc/Release/Zsh-Modules.html#The-...

https://zsh.sourceforge.io/Doc/Release/Zftp-Function-System....

comment 1y ago · link · parent

Actually, the non-battery-powered devices are the important part of Zigbee network. In Zigbee network, only coordinator and router can * route* the tracfic, others device can only send or receive. So if there is no other router or only few router, the Zigbed network will degrade from mesh topology to star topology. Because of power limit, the battery-powered devices are not suitable for router role so they almost is an end device. The AC-powered devices normally do router role.

comment 1y ago · link · parent

> The amount of stuff it pulls from the mothership and GitHub is crazy.

It seems the problem of HAOS, not Home Assistant itself. I have install my HA in NixOS from its package manager, it seems not try to download somethings.

comment 1y ago · link · parent

Maybe you can consider USB/IP to pass thorough USB device over network.

comment 1y ago · link · parent

WiFi is not good for a network with lots of devices. It's star topology which limits multi-device performance. And the WiFi AP which can carry many devices is expensive.

Many WiFi smart home devices only support old WiFi standard, it will pull down both performance (If there is a old standard device, the AP have to fallback to old behavior to match it. OpenWRT's setting also inform that.) and security (You can't use WPA3 only, even WPA2/3). And because these devices use the same network technology with your home network, you need something like VLAN to isolate them.

It's whole terrible story.