bt90
0bcc31d058
chore(db): increase journal limit to 64MiB ( #10022 )
...
The current limit is far too low for our workloads. Perhaps we should
aim even higher than the 64MiB this patch proposes?
Citing the sqlite docs:
> [...] after committing a transaction the rollback journal file may
remain in the file-system. **This increases performance for subsequent
transactions since overwriting an existing file is faster than append to
a file**, but it also consumes file-system space.
tl;dr: if the limit is too low, we're shooting ourselves in the foot in
terms of performance.
2025-04-02 14:52:44 +02:00
bt90
05cc6b0f43
chore(fs): speed up case normalization ( #10013 )
...
### Purpose
Resurrecting https://github.com/syncthing/syncthing/pull/9365
### Testing
Current benchmark results:
```
goos: linux
goarch: amd64
pkg: github.com/syncthing/syncthing/lib/fs
cpu: AMD EPYC 7763 64-Core Processor
│ ../old.txt │ ../new.txt │
│ sec/op │ sec/op vs base │
UnicodeLowercase/ASCII_lowercase-4 43.68n ± 4% 12.19n ± 1% -72.09% (p=0.000 n=10)
UnicodeLowercase/ASCII_mixedcase_start-4 200.65n ± 2% 59.49n ± 3% -70.35% (p=0.000 n=10)
UnicodeLowercase/ASCII_mixedcase_end-4 95.50n ± 2% 59.10n ± 2% -38.12% (p=0.000 n=10)
UnicodeLowercase/Latin1_lowercase-4 122.5n ± 1% 131.4n ± 1% +7.27% (p=0.000 n=10)
UnicodeLowercase/Latin1_mixedcase_start-4 339.9n ± 2% 309.2n ± 1% -9.05% (p=0.000 n=10)
UnicodeLowercase/Latin1_mixedcase_end-4 183.6n ± 2% 174.3n ± 1% -5.04% (p=0.000 n=10)
UnicodeLowercase/Unicode_lowercase-4 456.6n ± 1% 440.5n ± 1% -3.53% (p=0.000 n=10)
UnicodeLowercase/Unicode_mixedcase_start-4 625.9n ± 1% 595.6n ± 1% -4.83% (p=0.000 n=10)
UnicodeLowercase/Unicode_mixedcase_end-4 516.2n ± 1% 495.5n ± 1% -4.02% (p=0.000 n=10)
geomean 214.1n 150.4n -29.72%
│ ../old.txt │ ../new.txt │
│ B/op │ B/op vs base │
UnicodeLowercase/ASCII_lowercase-4 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹
UnicodeLowercase/ASCII_mixedcase_start-4 24.00 ± 0% 24.00 ± 0% ~ (p=1.000 n=10) ¹
UnicodeLowercase/ASCII_mixedcase_end-4 24.00 ± 0% 24.00 ± 0% ~ (p=1.000 n=10) ¹
UnicodeLowercase/Latin1_lowercase-4 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹
UnicodeLowercase/Latin1_mixedcase_start-4 32.00 ± 0% 32.00 ± 0% ~ (p=1.000 n=10) ¹
UnicodeLowercase/Latin1_mixedcase_end-4 32.00 ± 0% 32.00 ± 0% ~ (p=1.000 n=10) ¹
UnicodeLowercase/Unicode_lowercase-4 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹
UnicodeLowercase/Unicode_mixedcase_start-4 48.00 ± 0% 48.00 ± 0% ~ (p=1.000 n=10) ¹
UnicodeLowercase/Unicode_mixedcase_end-4 48.00 ± 0% 48.00 ± 0% ~ (p=1.000 n=10) ¹
geomean ² +0.00% ²
¹ all samples are equal
² summaries must be >0 to compute geomean
│ ../old.txt │ ../new.txt │
│ allocs/op │ allocs/op vs base │
UnicodeLowercase/ASCII_lowercase-4 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹
UnicodeLowercase/ASCII_mixedcase_start-4 1.000 ± 0% 1.000 ± 0% ~ (p=1.000 n=10) ¹
UnicodeLowercase/ASCII_mixedcase_end-4 1.000 ± 0% 1.000 ± 0% ~ (p=1.000 n=10) ¹
UnicodeLowercase/Latin1_lowercase-4 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹
UnicodeLowercase/Latin1_mixedcase_start-4 1.000 ± 0% 1.000 ± 0% ~ (p=1.000 n=10) ¹
UnicodeLowercase/Latin1_mixedcase_end-4 1.000 ± 0% 1.000 ± 0% ~ (p=1.000 n=10) ¹
UnicodeLowercase/Unicode_lowercase-4 0.000 ± 0% 0.000 ± 0% ~ (p=1.000 n=10) ¹
UnicodeLowercase/Unicode_mixedcase_start-4 1.000 ± 0% 1.000 ± 0% ~ (p=1.000 n=10) ¹
UnicodeLowercase/Unicode_mixedcase_end-4 1.000 ± 0% 1.000 ± 0% ~ (p=1.000 n=10) ¹
geomean ² +0.00% ²
¹ all samples are equal
² summaries must be >0 to compute geomean
```
I think the `+7%` for the lowercase Latin1 testcase is easily outweighed
by the ASCII and unicode improvements 🙂
2025-04-01 13:41:57 +02:00
bt90
be952e5f2d
chore(config): add Chinese STUN servers ( #9843 )
2024-11-30 08:33:55 +01:00
bt90
9ca101756d
chore(ursrv): add Nix detection ( #9729 )
...
Classify the builder `nix@nix` as [Nix](https://nixos.org/ )

2024-09-22 14:03:40 +02:00
bt90
a873d12c65
chore(ursrv): extend F-Droid detection ( #9728 )
...
Our f-droid apps are currently built using `vagrant@bookworm`:

2024-09-22 13:48:38 +02:00
bt90
35e153625c
cmd/ursrv: Add FreeBSD detection ( #9351 )
...
### Purpose
Classify `ports@freebsd` as `FreeBSD (3rd party)`
2024-01-16 17:14:12 +01:00
bt90
d5e1b99e6c
cmd/ursrv: Fix Arch detection ( #9350 )
...
### Purpose
Classify `syncthing@archlinux` as `Arch (3rd party)`
2024-01-16 17:13:34 +01:00
bt90
ac2e444a97
gui: Fix favicon status ( fixes #9149 ) ( #9150 )
2023-10-06 12:27:13 +02:00
bt90
7c579880eb
cmd/ursrv: Add linuxserver.io detection ( #9145 )
...
Detect linuxserver
2023-10-02 12:48:04 +02:00
bt90
f8a7a034a7
cmd/ursrv: Fix f-droid detection ( #9142 )
...
Fix f-droid detection
2023-09-29 17:42:44 +02:00
bt90
ceae56a860
cmd/ursrv: Support new android build user ( #9141 )
...
Support new android build user
2023-09-29 16:34:28 +02:00
bt90
cf46bf0297
lib/connections: Fix transport type detection for QUIC ( fixes #8274 ) ( #9114 )
...
Check remote address
2023-09-20 11:23:48 +02:00
bt90
e860d3b974
lib/connections: Make assumptions about isLAN when interface address listing fails ( #9093 )
2023-09-12 12:34:30 +00:00
bt90
ed66fba42b
lib/beacon, lib/discover: Send IPv4 limited broadcast when address listing fails ( fixes #1628 ) ( #9087 )
2023-09-12 14:28:17 +02:00
bt90
06ac10ee37
cmd/stdiscosrv: Deduplicate addresses ( fixes #8482 ) ( #9080 )
2023-09-06 14:36:00 +02:00
bt90
467522d04d
lib/connections: Allow IPv6 ULA in discovery announcements ( fixes #7456 ) ( #9048 )
...
The allowed IPv4 ranges are the same as before. But we now also accept IPv6 addresses in the ULA range FC00::/7. These addresses don't require an interface identifier and are roughly equivalent to the IPv4 private ranges.
Typical usecases:
VPN interface IPs: Wireguard, OpenVPN, Tailscale, ...
fixed IPv6 LAN addressing while the provider assigns a dynamic prefix. e.g used by pihole
https://cs.opensource.google/go/go/+/refs/tags/go1.21.0:src/net/ip.go;l=146
2023-08-23 12:28:48 +02:00
bt90
3147285c60
lib/beacon: Check FlagRunning ( #9051 )
2023-08-22 11:27:43 +02:00
bt90
c2c6133aa5
lib/osutil, lib/upnp: Check FlagRunning ( fixes #8767 ) ( #9047 )
2023-08-21 14:49:28 +00:00
bt90
265ce139c5
cmd/strelaypoolsrv: Update map tile URL ( #8985 )
2023-07-16 17:20:40 +02:00
bt90
1e9bf17512
docker: Use healthcheck endpoint ( #8640 )
...
Query healthcheck endpoint
2022-11-03 20:43:32 +01:00
bt90
de7d62cc1b
docs: Clarify docker network mode limitations ( #8472 )
2022-07-31 20:46:57 +02:00
bt90
086508f51a
docker: Remove sysctl from README ( #7670 )
2021-05-12 22:17:51 +02:00
bt90
34f0feb13a
docker: Raise UDP buffer size in example ( #7536 )
2021-03-31 08:57:46 +02:00
bt90 and otbutz
c1d06d9501
build: Package sysctl configuration to raise UDP buffer size on Linux ( #7417 )
...
* Provide a sysctl config to raise max UDP buffer size
* Add sysctl config to deb
* Check if `deb-systemd-invoke` is available
Co-authored-by: otbutz <tbutz@optitool.de >
2021-03-05 08:08:29 +01:00
bt90 and otbutz
e2120c4728
docker: Expose 22000/udp ( #7421 )
...
Co-authored-by: otbutz <tbutz@optitool.de >
2021-03-02 20:42:25 +01:00
bt90
34aa89a7d6
Allow QUIC traffic ( #7400 )
2021-02-23 20:39:03 +00:00