PERF: CalDAV at scale: 10k-change sync p95 35 s, area moves ~5 min, 50k listing times out #573
Open
opened 2026-10-01 05:00:18 +00:00 by kayg
·
28 comments
No Branch/Tag specified
dev
wip/rev2-money-ident
wip/restyle-notes
wip/previewcard-1098
wip/palette2-1123
wip/palette-1093
wip/onboard2-1141
wip/onboard-1141.aborted-early
wip/onboard-1141
wip/nlpchip-1127
wip/morph-1104
wip/merge-round-7c5
wip/merge-round-7c4
job/notifloop-1194
wip/merge-round-7c3
wip/merge-round-7c2
wip/merge-round-7c
wip/mchrome-1084
wip/mailghost2-1094
wip/mailghost-1094
wip/kbpreview2-1118
wip/kbpreview-1118
wip/kanban-1092
wip/importhang-1121
wip/hiderev-1153
wip/hide4-1153
wip/hide3-1153
wip/hide2-1153
wip/hide-1153
wip/editreg-1132
wip/editorrail3-1113
wip/editorrail2-1113
wip/editorrail-1113
wip/e2e-b2-1071
wip/e2e-b-1071
wip/draw4-1101
wip/draw3-1101
wip/draw2-1101
wip/draw-1101
wip/directory-1199-r
wip/directory-1199
wip/delete-1119
wip/collabrev-1197
wip/collabloss-1197
wip/cards2-1083
wip/cards-1083
wip/canvas-visual
wip/canvasvis2-976
wip/calhdr-1112
wip/calcards-1115
wip/browserfix
wip/blocks-1125
wip/allday-1107
wip/agenda-decks
wip/agenda-1086
wip/adv7c-1105
wip/txentry-1198
wip/trayicons2-1095
wip/trayicons-1095
job/onboard-1141
wip/sidebar3-1094
wip/rev2-webperf
job/collabloss-1197
job/hide-1153
job/perf-1124
job/perf2-1124
job/tocrail-1191
job/restyle-settings
wip/restyle-settings
job/segmented-1200
wip/notifloop-1194
job/tagperf-1186
wip/tagperf-1186
wip/segmented-1200
job/restyle-files
job/tagdnd-1187
job/merge30
job/cards-1179
wip/cards2-1179
wip/cards-1179
wip/tocrail-1191
wip/tagdnd-1187
wip/restyle-files
wip/perf-1124
wip/merge30j
job/restyle-notes
job/wizchoices-1140
job/adv-1202
wip/wizchoices-1140
wip/restyle-1190
job/moneyfmt-1180
job/txentry-1198
wip/moneyfmt2-1180
wip/moneyfmt-1180-r
wip/moneyfmt-1180
job/pillglass-1189
job/flags-1181
wip/flags-1181
job/restyle-1190
job/restyle-mailmoney
job/restyle-search
job/settingsreg-1195
job/wizard-1140
site/website
wip/wizardrev2-1140
wip/wizardrev-1140
wip/wizard5-1140
wip/wizard4-1140
wip/wizard3-1140
wip/wizard2-1140
wip/wizard-1140
wip/pillglass-1189
wip/settingsreg-1195
job/merge29
job/fu-1171
wip/merge29j
wip/fu-1171
job/fu-1166
job/directory-1199
job/proflog-1204
job/txresearch-1188
wip/fu-1166
job/merge28
job/search-1066
wip/search-1066
wip/merge28j
job/gateslot-1182
job/bulkimport-1157
job/mailnet-1160
wip/mailnetrev-1160
wip/mailnet-1160
wip/bulkrev-1157
wip/bulkimport-1157
job/startup-1161
wip/startup-1161
job/merge27
job/linkcards-1151
wip/linkcards3-1151
wip/linkcards2-1151
wip/linkcards-1151
job/traydate-1144
wip/traydate3-1144
wip/traydate2-1144
wip/traydate-1144
job/draw-1101
wip/merge27j
job/blockpill-1152
wip/blockpill3-1152
wip/blockpill2-1152
wip/blockpill-1152
job/minihover-1149
wip/minihover2-1149
wip/minihover-1149
job/merge25
wip/merge25-r
wip/merge25b
wip/merge25
job/inspector-1129
job/tags-1110
wip/inspector3-1129
wip/inspector2-1129
wip/inspector-1129
wip/tagsrev-1110
wip/tags2-1110
wip/tags-1110
job/dates-1148
wip/datesrev-1148
wip/dates2-1148
wip/dates-1148
job/licence-1145
wip/licence2-1145
wip/licence-1145
job/selfhost-1156
job/merge23
wip/merge23
job/tagfilter-1109
wip/tagfilter2-1109
wip/tagfilter-1109
job/kbd-1134
wip/kbd2-1134
wip/kbd-1134
job/palfoot-1137
wip/selfhost-1156
wip/palfoot2-1137
wip/palfoot-1137
job/toggle-1158
wip/toggle-1158
job/kbpreview-1118
job/docratchet-1155
job/perflint-1133
job/devtests-1159
wip/docratchet-1155
wip/devtests-1159
job/segv-1136
wip/toast-1142
wip/segv-1136
job/toast-1142
job/blockreload-1147
wip/blockreload-1147
job/font-1150
wip/font-1150
job/importui-1120
job/minimonth-1149
wip/importui-1120
wip/minimonth-1149
job/depcheck-1146
wip/perflint-1133
wip/depcheck-1146
job/calcards-1115
job/blocks-1125
job/plus-1128
job/shift-1138
wip/plus2-1128
wip/plus-1128
wip/shift-1138
job/moneyfid-1130
job/editorrail-1113
wip/moneyrev-1130
wip/moneyfid-1130
job/noext-851
wip/noext-851
wip/noext3-851
wip/noext2-851
job/week-1135
wip/week-1135
job/editreg-1132
job/smoke-1122
wip/smoke-1122
job/docs-1143
job/palette2-1123
job/calhdr-1112
job/nlpchip-1127
job/mailghost-1094
job/reconnect-1131
wip/reconnect-1131
job/trayicons-1095
job/delete-1119
job/importhang-1121
job/cards-1083
job/palette-1093
job/mchrome-1084
job/e2e-a-1071
job/canvas-visual
job/previewcard-1098
job/allday-1107
wip/e2e-a2-1071
wip/e2e-a-1071
job/e2e-b-1071
job/adv7c-1105
job/kanban-1092
job/agenda-1086
job/merge-round-7c
job/morph-1104
wip/surfaces-p2
job/merge-round-9
wip/merge-round-9
job/7cfix-small
wip/7cfix-small
job/mailui-1078
job/merge-round-8
wip/merge-round-8
wip/mailui-1078
job/mailround-1038
job/applemail-accept
wip/settitle-1068
wip/mailround2-1038
wip/mailround-1038
wip/e2e-7b
job/crash-1069
wip/crash-1069
job/searchlost-1066
wip/searchlost-1066
job/7b-reconcile
job/flake-1065
wip/flake-1065
wip/merge-round-7b7
wip/merge-round-7b6
wip/merge-round-7b5
wip/merge-round-7b4
wip/7b-reconcile
job/appupdate-1059
job/nfd-1044
wip/appupdate-1059
job/e2e-7b
job/loop-1062
wip/loop-1062
job/pdfprev-1045
job/invtoggle-1053
wip/pdfprev-1045
wip/nfd-1044
wip/invtoggle-1053
job/7bfix-e2e
job/mailstress-b
wip/7bfix-e2e
wip/mailstress-b
job/7bfix-adv
wip/7bfix-adv
job/mailstress-a
job/stack-1054
wip/stack-1054
wip/mailstress-a
job/mailstress-1038
wip/mailstress-1038
job/upload500-1051
wip/upload500-1051
job/share-1034
wip/share-1034
job/syncerr-1037
job/7bfix-photos
wip/7bfix-photos
job/paste-1036
job/setside-1039
wip/setside-1039
wip/paste-1036
job/lease-1042
wip/syncerr-1037
wip/lease-1042
job/7bfix-data
job/passkeybind-1043
wip/apprevoke-1041
job/invite-1035
wip/invite-1035
job/merge-round-7b2
wip/merge-round-7b2
job/mailproxy-486
job/apprevoke-1041
job/rebuild-1033
job/pillborder-1029
wip/pillborder-1029
wip/mailproxy-486
wip/applemail-486
job/headless-998
wip/headless-998
job/groups-1028
wip/groups-1028
job/rebuildwarn-1016
wip/rebuildwarn-1016
job/startup-1011
wip/startup-1011
job/monthpill-1009
job/bgthumb-1025
job/sharetitle-1012
wip/monthpill-1009
wip/bgthumb-1025
wip/sharetitle-1012
job/canvas-cards-977
wip/canvas-cards-977
job/canvas-pencil-978
job/canvas-sketch-990
wip/canvas-sketch-990
wip/canvas-pencil-978
job/canvas-files-989
wip/canvas-files-989
job/canvas-collab-991
wip/canvas-collab-991
job/weekscroll-1018
wip/weekscroll-1018
wip/canvas-core-976
job/canvas-core-976
job/round-drag
wip/round-drag
job/round-settings
job/browserfix
wip/oapi-974
job/oapi-974
job/hist2-integrate
job/mailhtml-726
wip/mailhtml-726
wip/hist2-integrate
job/moneyfu-984
job/drag-1015
wip/drag-1015
job/rename-1017
wip/rename-1017
job/hist2-api
wip/hist2-api
job/oneacct-1014
wip/oneacct-1014
wip/moneyfu-984
job/hist2-bench
job/hist2-restore
wip/hist2-bench
job/hist2-write
job/hotfix-724
wip/hotfix-724
wip/hist2-write
wip/hist2-restore
job/hist2-store
job/hist2-ui
wip/hist2-ui
wip/hist2-store
job/searchstarve-965
job/shutdown-963
wip/shutdown-963
wip/pubedit-981
job/pubedit-981
job/analytics-973
wip/searchstarve-965
job/authflash-850
job/weeklane-969
job/pvtitle-1004
job/hist-975
wip/authflash-850
job/voicepill-617
wip/pvtitle-1004
job/headring-1003
wip/weeklane-969
wip/voicepill-617
wip/headring-1003
wip/analytics-973
job/agentscope-980
wip/thumbsandbox-988
job/thumbsandbox-988
wip/hist-975
job/links-856
wip/links-856
job/davetag-966
wip/davetag-966
job/filesstorm-1000
job/hoverpad-725
wip/filesstorm-1000
job/ffmpegblas-993
job/merge-round-7a
wip/hoverpad-725
wip/ffmpegblas-993
job/nowdot-1002
wip/verify-7a
job/noteid-857
wip/nowdot-1002
wip/noteid-857
wip/merge-round-7a
wip/agentscope-980
job/imapedge
job/a11yfix2
wip/imapedge-941
wip/imapedge
wip/a11yfix2
job/notetask-986
job/logheading
wip/logheading-998
job/textthumb-652
job/photolive-987
wip/photolive-987
job/davactive-983
job/savefix-985
job/tabicons-607
wip/davactive-983
wip/tabicons-607
wip/notetask-986
wip/savefix-985
job/dirid-627
job/buildspeed-1007
wip/dirid-627
job/agenda-decks
job/perfguards-impl
job/undo-a11y
wip/undo-a11y
job/mailperf
job/wal-824
wip/settings-50
job/settings-50
job/notesfilter-606
wip/notesfilter-606
job/surfaces-p2
wip/wal-824
job/maillayouts
wip/mailperf
wip/maillayouts
job/taskmeta-659
job/money-ident
wip/money-ident
wip/taskmeta-659
job/errstates
wip/perfguards-impl
job/headings-881
wip/headings-881
wip/errstates
job/voice-619
job/gaps-827
job/notesperf
wip/notesperf
wip/voice-619
job/hddsql-549
job/perf-stream-668
wip/perf-stream-668
wip/deeplinks-fix
job/deeplinks-fix
job/authfix
job/docsfix-rust
wip/docsfix-rust
job/webperf
job/docsfix-web
job/datafix2
job/webdav-lock-476
job/copyfix
wip/copyfix
wip/webperf
job/focus-658
wip/protofix
job/mediafix
job/protofix
wip/mediafix
job/agentfix
job/hhmm-724
wip/agentfix
job/undo-722
job/reuse
wip/webdav-lock-476
wip/reuse
job/scopefix
job/datafix
wip/hhmm-724
wip/undo-722
job/surfaces-p1
wip/hddsql-549
job/voicememos-618
wip/datafix2
wip/surfaces-p1
job/fix-940
wip/fix-940
job/blaze-surfaces
wip/datafix
wip/blaze-surfaces
job/taskday-655
job/linknav-639
wip/linknav-639
wip/gaps-827
job/isolation-707
job/audiophotos-720
wip/audiophotos-720
job/advfind-664
wip/voicememos-618
wip/taskday-655
wip/isolation-707
wip/advfind-664
wip/scopefix
wip/focus-658
job/testgaps
wip/testgaps
job/overscroll-718
wip/authfix
job/deps
wip/overscroll-718
job/rev2-agentfix
job/rev2-money-ident
job/rev2-mailperf
wip/deps
job/hardening-728
wip/hardening-728
job/searchgen-832
wip/searchgen-832
job/photopw-849
job/mailsql-825
wip/photopw-849
job/sharefix
wip/sharefix
job/rev2-mailhtml-726
job/rev2-perfguards
job/copyval-723
job/lightglass-r2
wip/lightglass-r2
wip/docsfix-web
job/copy-audit
job/macinterop-staging-r2
job/design-sync
job/rev2-taskmeta-659
job/rev2-webperf
job/docs-audit
job/rev2-advfind-664
job/rev2-mailproxy-486
job/states-audit
job/rev2-datafix
job/design-drift
job/test-gaps
job/rev2-voicememos-618
job/rev2-mediafix
job/rev2-deps
job/rev2-datafix2
job/licence-audit
job/issue-hygiene
job/rev2-protofix
job/rev2-voice-619
job/rev2-isolation-707
job/rev2-surfaces-p1
job/deeplink-audit2
job/rev2-audiophotos-720
wip/test-gaps
job/rev2-overscroll-718
job/rev2-undo-722
wip/states-audit
job/rev2-dropmd-719
job/rev2-linknav-639
job/merge-7b-plan
wip/merge-7b-plan
job/rev2-taskday-655
wip/mailsql-825
job/rev2-webdav-lock-476
job/rev2-browserfix
wip/design-drift
job/rev2-hddsql-549
wip/deeplink-audit2
job/rev2-scopefix
job/rev2-authfix
job/rev2-hardening-728
job/rev2-wal-824
job/rev2-sharefix
job/calsidebar-638
job/chrome-audit
job/ioperf
wip/ioperf
wip/chrome-audit
wip/calsidebar-638
job/dropmd-719
wip/dropmd-719
job/ocr-build
wip/ocr-build
job/blaze-settings
wip/copyval-723
job/toastring-721
wip/toastring-721
job/deployfix-732
wip/deployfix-732
wip/blaze-settings
job/money-import-recheck
job/rev-a11y
job/perf-arch-db
job/rev-7b-data
wip/textthumb-652
wip/perf-arch-db
job/sec-protocols
job/sidehdr-660
job/rev-7b-security
job/research-surfaces
job/rev-design-gaps
job/rev-mcp-api
wip/sidehdr-660
job/perf-arch-memory
wip/sec-protocols
job/perf-arch-bundle
job/snapedge-714
wip/rev-mcp-api
job/sec-supplychain
wip/research-surfaces
job/perf-arch-sync
job/rev-consistency
job/perf-arch-server
wip/perf-arch-server
wip/perf-arch-memory
job/perf-arch-io
job/perf-arch-client
job/sec-fs
job/sec-mcp-scopes
job/sec-sharing
job/perf-guards
job/sec-browser
job/sec-admin-deploy
job/sec-auth
wip/snapedge-714
job/bgpicker-717
wip/perf-arch-bundle
wip/money-import-recheck
job/advsetup-654
wip/bgpicker-717
wip/advsetup-654
job/burst-709
job/kbdcaps-710
job/app-pw-chooser
wip/burst-709
wip/app-pw-chooser
job/imaptest-625
wip/kbdcaps-710
job/fix-499
wip/fix-499
job/perf-mut-667
job/calimg-589
job/perf-snap-666
wip/calimg-589
wip/perf-snap-666
wip/perf-mut-667
job/perf-cache-665
wip/perf-cache-665
job/voicefiles-620
wip/voicefiles-620
job/admin-burst-705
wip/admin-burst-705
job/voicememos-review
wip/voicememos-review
wip/ryw-653
job/ryw-653
job/writeonopen-661
job/instant-663
wip/writeonopen-661
job/money-import-review
wip/money-import-review
wip/importjs-610
review/integrations-407-round6
wip/integrations-review
job/dragghost-612
wip/dragghost-612
job/integrations
wip/integrations
job/decider-656
job/merge-round-6
job/perf-rerun
wip/merge-round-6
job/integrations-review-round5
job/selalign-576
wip/selalign-576
job/mcp-events-491
job/files-631
job/cal-e2e-569
wip/cal-e2e-569
job/reload-423
wip/reload-423
wip/mcp-events-491
wip/files-631
job/notesbridge-644
wip/notesbridge-644
job/editor-series
job/calcard-series
wip/calcard-series
job/mcp-events-review-491
wip/mcp-events-review
wip/editor-series
job/quirks-546
job/integrations-recheck
job/tocrail-636
wip/tocrail-636
wip/quirks-546
wip/reminders-643
job/reminders-643
wip/davscale-573
job/davscale-573
job/integrations-review
wip/ocr-eval-584
job/ocr-eval-584
job/esc-537
wip/esc-537
job/toastname-586
wip/toastname-586
job/submenu-579
wip/submenu-579
job/tasks-mode
wip/tasks-mode
job/agentdocs-630
job/dupwrite-634
wip/agentdocs-630
wip/dupwrite-634
job/lightglass-588
wip/lightglass-588
job/tabswitch-549
job/ghosttask-623
wip/ghosttask-623
job/toaststack-616
job/weekstate-609
job/mailsync-613
wip/mailsync-613
wip/weekstate-609
job/maildup-626
wip/tabswitch-549
wip/maildup-626
wip/toaststack-616
job/motion-611
wip/motion-611
job/tlstest-601
wip/tlstest-601
job/perf-495
job/floating-sheet
wip/floating-sheet
job/remdup-585
wip/remdup-585
job/fix-502
wip/fix-502
job/attachplay-622
job/perf-batch
wip/perf-batch-563
wip/perf-495
hotfix/mail-sync-diag
job/mail-m3
wip/mail-m3
job/attach-poof-603
job/calhover-608
job/editorbar-604
job/mentions-605
job/merge-round-4
job/allday-514
wip/merge-round-4
wip/allday-514
job/merge-round-4a
wip/merge-round-4a
job/sharestack-580
job/fix-501
wip/sharestack-580
wip/fix-501
job/perf-batch-563
job/apw-cache-review
wip/apw-cache-review
job/probe-520
wip/probe-520
job/mac-393
wip/mac-393
job/header-571
job/flake-513
wip/flake-513
job/docs-thumb-547
wip/header-571
job/webcal-572
wip/webcal-572
wip/shortcuts-542
job/shortcuts-542
wip/docs-thumb-547
job/caldav-stress
wip/caldav-stress
wip/sweep-478
job/apw-cache-512
wip/apw-cache-512
job/money-empty-540
wip/restart-505
wip/money-empty-540
wip/fix-510
job/restart-505
job/fix-503
job/perf-496
wip/perf-496
job/fix-498
wip/fix-498
job/info-inspector-465
wip/info-inspector-465
job/fix-510
job/fix-507
wip/fix-507
wip/fix-503
job/fix-493
job/money-kinds
wip/money-kinds
job/hygiene-548
job/merge-round-3
wip/fix-493
job/drag-snap-536
wip/merge-round-3
wip/merge-round-0930
wip/drag-snap-536
job/align-538
wip/align-538
job/bg-flash
wip/bg-flash
job/money-import
job/search-count-544
wip/search-count-544
wip/money-import
job/settings-key-541
wip/settings-key-541
job/toast-539
job/preview-421
wip/preview-421
wip/toast-539
job/tasks-500-531
job/title-plain-526
wip/title-plain-526
wip/tasks-500-531
job/notes-bridge
wip/parity-484
job/parity-484
job/files-slow
job/crash-525
wip/notes-bridge
wip/files-slow
wip/crash-525
job/kbd-motion-527
wip/bg-422
job/analytics-504
wip/analytics-504
wip/kbd-motion-527
job/upload-pill-523
wip/upload-pill-523
wip/tray-order
job/tray-order
wip/overflow-mid
wip/merge-round-2
job/perf-494
wip/perf-494
wip/mcp-fast-492
wip/motion-477
wip/asr-ab-489
wip/theme-variants-506
wip/overflow-511
wip/week-header-508
wip/attach-427
job/dav-delete-471
job/iso-435
wip/iso-435
wip/files-sel-keys
wip/dav-delete-471
job/align-253
job/siwc-490
wip/siwc-490
job/money-kinds-review
wip/align-253
wip/money-kinds-review
job/small-bugs-3
wip/overlay-title-487
wip/multiget-500
wip/hidden-420
wip/webcal-ui
wip/webcal-431
job/perf-367
job/location
wip/small-bugs-3
wip/location
wip/perf-367
wip/admin-deny-483
job/tag-unicode-473
wip/tag-unicode-473
job/blur-436
wip/photos-470
wip/blur-436
wip/small-bugs-4
wip/hunt-20260930
wip/settings-hdr-482
wip/chips-416
job/dedup-375
wip/dedup-375
job/doc-stack
wip/doc-stack
job/tokens-literals
wip/tokens-literals
job/jobs-leftovers
wip/send-fast
wip/paste-467
wip/money-numbers
job/money-plugin
wip/money-plugin
job/break-dav
wip/merge-batch
wip/crossday-469
wip/mac-verify
wip/mail-m2
wip/break-dav
wip/money-review2
job/money-md
job/modes-424
wip/money-md
wip/jobs-leftovers
job/agenda-413
wip/agenda-413
wip/modes-424
job/recog-417
wip/recog-417
wip/bounce-425
wip/ab-384-luna
job/webdav-perf
wip/webdav-perf
job/toast-ring
wip/toast-ring
job/money-review
wip/money-review
wip/micro-motion
wip/settings-card
wip/minical
job/notes-imap-428
job/least-priv
wip/ui-small-2
wip/flaky-426
wip/drag-end-418
job/jank
wip/jank
wip/least-priv
wip/docs-site
job/agenda
job/sec-batch
wip/sec-batch
wip/per-user-index
job/area-calendars
wip/area-calendars
job/parity
wip/parity
job/documents-research
wip/documents-research
job/test-infra
job/reminders-sync
wip/small-bugs-2
wip/reminders-sync
wip/gestures
job/google-oauth
wip/tags-merge
wip/tags
job/e2e-theme
wip/e2e-theme
job/icon-align
wip/test-infra
wip/select-align
wip/editor-385
job/voice
wip/webdav
job/webdav
job/app-pw-ui
job/editor-integrity
wip/editor-integrity
wip/voice
wip/quota
wip/cal-followups
wip/icon-align
job/composer-scale
wip/composer-scale
job/jobs-page
wip/jobs-page
job/hig-type
wip/hig-type
wip/app-pw-ui
job/motion-spring
job/mcp
wip/motion-spring
wip/mcp
job/small-bugs
wip/push-hosts
job/profile-sign
wip/touch-369
wip/profile-sign
job/mobile-focus
wip/mobile-focus
wip/ui-polish-354
wip/small-bugs
wip/dup-task
job/toast-polish
job/app-pw-scopes
wip/toast-polish
wip/app-pw-scopes
wip/cli-agent
wip/selection-pills
job/preview-attach
wip/preview-attach
job/dav-proppatch
wip/dav-proppatch
wip/cal-switcher
job/atomic-race
wip/atomic-race
job/photos-shared
wip/photos-shared
wip/cal-grid
wip/note-rewrite
wip/search-rebuild
job/mail-m1
job/paperless-import
wip/paperless-import
wip/mail-m1
wip/hidden-activity
wip/search-d
wip/pricing-research
wip/cursors
wip/auto-scheme
job/single-pills
wip/single-pills
wip/xuser-matrix
wip/money-format
wip/app-pw-setup
wip/purge-dos
wip/vault-health
wip/caldav-apple
wip/xuser-audit
wip/e2e-green
wip/tabbar
wip/adv-harness
wip/maple-mono
job/search-fix
wip/search-fix
wip/search-perf-c
job/adv-harness
wip/sidebar-headers
job/glass
wip/temp-index
job/polish
wip/polish
wip/file-protocols
wip/money-research
wip/glass
wip/voice-models
wip/collab-redo
job/voice-research
wip/hunt-20260928
wip/notes-actions-research
wip/search-pad
wip/search-perf
wip/search-sticky
wip/editor-undo
wip/chrome-rules
wip/motion
wip/appearance-research
wip/appearance
wip/audit-bugs
wip/cal-glass
wip/block-actions
wip/authz-order
wip/event-stripes
wip/chrome-sidebar
wip/auth-flaky
wip/robust-2
wip/gate-fix
wip/menu-blur
wip/import-calternaljs
wip/tray-fix
job/import-calternaljs
wip/index-order
wip/audit-fixes
wip/search-chevrons
research/mail
wip/phone-chrome
wip/dedup-break
wip/csp
wip/ui-audit
wip/select-toast
wip/perf
wip/flat-layout
wip/fonts
wip/event-tint
wip/sync-converge
wip/data-split
wip/glass-audit
wip/robustness
wip/sync-chaos
wip/search-thumbs
wip/fuzz
wip/menu-icons
wip/search-pill
wip/sync-changing
wip/heading-links
wip/date-formats
wip/a11y
wip/break-editor
wip/e2e-fix
wip/settings-sections
wip/sync-root-guard
wip/search-palette
wip/share-edit
job/toasts
wip/toasts
wip/cont-analytics
wip/authz-review
wip/popovers
wip/overlay-glass
wip/change-feed
wip/editor-modes
wip/composer-align
wip/cont-agenda
wip/agenda-merge
job/agent-conventions
wip/agent-conventions
wip/backend-misc
job/route-audit
wip/route-audit
wip/ui-batch
wip/heif-hardening
wip/grid-resize
wip/ask-page
wip/webmcp
job/deeplink-audit
wip/deeplinks
wip/shortcuts
wip/cont-tz-days
main
No results found.
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
kayg/calternal#573
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found by caldav-stress round 3 (#457, 2026-10-01; profiles in job/caldav-stress
docs/perf/caldav-baseline.md)Correctness held (50-client convergence, If-Match race with 1 winner + 7×412, area moves consistent), but the scale numbers are far off:
Job (root cause first; Luna max, Sol if the trace is unclear):
flock /root/perf.lock; HDD emulation on if #549 left it set up). UseServer-Timing(from #549, if merged) or tracing spans. Find the per-change cost: per-item file reads? a recompute of every ETag? the CTag/sync-token computed by a full scan? N+1 SQLite queries? a global lock held across a move?Correctness must stay: rerun the convergence + If-Match race + Apple replay fixtures. Per-crate gates (calternal-dav, plugins/calendar, plugins/notes as touched). Time limit 5 h.
Started issue #573 on branch
job/davscale-573, based atcc25c441b7a974185622a1dee853cf38686d2b67(Use valid Appearance writes in contention probe). The branch is currently 326 commits behindorigin/dev; I will mergeorigin/devonce before final gates. I am tracing sync-collection, area moves, and collection listing before changing code.Current trace after the one
origin/devfast-forward (3f258302a0f2d6418ff60c9ce22cbb33e008ca99):crates/calternal-dav/src/protocol.rs::area_reportreadsJournalProvider::changesand then callsJournalProvider::listfor both initial and incremental reports (around lines 1167–1222).NotesJournalProvider::listcallsscan, which walks Home and reads every visible Markdown file (crates/plugins/notes/src/lib.rs:345–378;crates/plugins/notes/src/store.rs:1802–1845). Incremental sync therefore reparses the whole Home for each delta. Calendar collection PROPFIND callschanges(user, None)only to get a token (protocol.rs:1049–1051), whilechanges(None)selects and materializes every resource ID (plugins/notes/src/lib.rs:976–982). Resource lookup for an area copy also fetches every resource ID before hashing them (plugins/notes/src/lib.rs:860–880). The existingnote_calendar_logsprojection has event fields, tags, date and attachments; I will use it withjournal_resourcesto query only the requested collection and changed IDs, and add an O(1) token read.Replay finding: after the area query began accepting source block IDs, the existing
apple_calendar_multiget_accepts_100_hrefs_over_legacy_report_capfixture failed because calendar-multiget hrefs carry area copy IDs. Added a copy-aware alias-index lookup; the unchanged fixture now passes. Legacyjournal_resourcesrows have no cached Log fields, so the first DAV read reindexes those Daily notes through the normal Markdown index transaction. The regression checks cached ETag, iCalendar data, linked Note URL, attachments, alarms, untagged membership, copy lookup, and that backfill leaves the sync token unchanged.Profile review finding:
ensure_idsnow checks for legacy Journal rows whose cachedlog_lineis empty. That check runs on DAV reads; without a matching index it would scan alljournal_resourceson every request, including after the one-time backfill. I am adding a partial(user_id,path)index for onlylog_line=''rows and a query-plan regression check. After migration backfill, the hot request checks an empty partial index instead of scanning the 50k-resource table.Progress on job/davscale-573 (HEAD
d714380fc2): built the real release server after generating the required ignored apps/web/build bundle. A local smoke profile (20 area resources, 10 Log writes, 2 sync clients) completed: sync p95 47.805 ms; five-move visibility p95 842.483 ms; per-client sync caches matched final full listings; Calendar Log projection passed; If-Match race was 1×201 + 7×412; all five hostile REPORT inputs returned their expected 400/413 statuses. Fixed two profile assumptions exposed by the run: PROPFIND must request displayname to discover area collections, and Calendar range exposes Journal rows inlogs. The full local scale profile is running next; host load was high and perf VM lock was busy, so results will be labeled local.Finding from the first full-profile setup attempt: with 50k Log rows written as 3,653 raw Daily Note files before startup, the local server did not open
/readyzwithin the 900 s bound. At timeout the local SQLite index was about 163 MB and/procreported about 5.3 GB of cumulative writes for that server process; no DAV request samples were produced. The profile now creates the same real Journal resources through the bounded Notes batch API after a clean server is ready, then checks the indexed resource count before timing DAV reads. This records fixture seeding separately from request latency and avoids misreporting cold Home import as listing latency. Reduced smoke run passes with the live seeding path.Profile adjustment (HEAD
6368ee4d7a): API-seeding all 50k resources into one Daily Note caused batch setup to reindex the growing file on every batch. I stopped that setup at 14k (about 394 MB process RSS, ~1 CPU core, no timed DAV requests yet) and changed the fixture to put each bounded batch on its own real Daily Note. This keeps each index transaction bounded while preserving 50k area resources. The reduced profile passes again with this layout; starting the full run now.Another profile setup finding (HEAD
c4b9334325): after 50k live Log writes, the collection Home omittedBench01, so that run produced no timed request samples. A reduced run passed after I seededBench00andBench01as real Note Tags and explicitly reconciled the small Tags catalog before generating the large Journal fixture. The latest 20-resource profile completes with this setup and retains the cross-area move checks. I am rerunning the full profile once with the corrected catalog setup.Final profile-fixture correction (HEAD
b38f3bacd1): the prior 50k PROPFIND verified all 50,000 resources, but calendar-query returned 2,000 because the fixture started on 2026-01-01 and the query ended on 2026-01-03. The resource index was complete; the synthetic dates exceeded the test window. I moved the 50k fixture back to 2016-01-01 so all 50 daily batches fall within the query range. The reduced run now completes with the expected response counts and all correctness checks. Starting the full measurement now.Sync profile finding (HEAD
1e4a749bef): the Notes Log batch API durably writes Markdown and queues Journal projection work, so an immediate DAV REPORT can race that background job. The 10k profile saw 9k rows immediately after ten accepted batches; the 1k diagnostic showed a 1.528 s projection settle and then returned all 1,000 rows, with a 1.039 s sync request. The harness now waits (bounded by the request timeout) for all expected rows before timing the stable sync request and recordsprojection_settle_msseparately. No DAV API code changed for this timing artifact.Local diagnostic for #573: with 1,000 existing entries, 100 changes, 50 sync clients and five MOVE writers, convergence p95 was 12,800.486 ms and MOVE writer p95 was 8,917.299 ms. Server peak RSS was 284,295,168 bytes. Host load rose from 14.625 to 23.263. This smaller fixture reproduced the move latency, so the 50k listing size was not its only cause.
Code inspection found every healthy REPORT took the Notes per-User writer lock to run
ensure_ids, even when both indexed repair queues were empty. Each poll callschangesandlist_area; that serialized the poll storm against MOVE writes. I committed a fast path in6f23ec9cethat checks indexed pending queues before locking and rechecks after acquiring the lock when repair is needed. Notes clippy passed; Notes tests passed (163 unit, one Apple replay integration). These are local diagnostics; the perf VM was unreachable (No route to host). The after measurement is in progress.Tracing evidence from a local 1,000-entry / 100-change / 50-client run (host load 22.55 to 23.27): 248 App Password verifier calls had p50 1,808 ms and p95 5,000 ms; 6 requests retried HTTP 429. The DAV stages had indexed area-list p95 14.612 ms, MOVE Journal put p95 3,218.752 ms, and per-User area write-lock wait max 5,202.262 ms.
The lock span confirms that five independent MOVE requests wait on the global per-User area mutex, which covers source lookup, target collision check and the conditional Notes write. The Notes write already uses the source ETag as a compare-and-swap. I am removing this outer mutex from MOVE only and adding a same-source concurrent-move regression that requires one winner and one 412. PUT and DELETE keep their duplicate/name serialization. The profile now retries and counts bounded 429 auth backpressure, and stores only aggregate timings.
Local release profile after
1f764f5ff(perf VM still returnsNo route to host): 50k PROPFIND p95 5.97s, 50k calendar-query p95 4.81s, 10k-change sync p95 1.96s. The listing and sync budgets pass. Five area moves observed by 50 clients take 18.35s p95; all 5 moves and all 50 sync caches converge, the If-Match race still has 1 winner and 7×412, and hostile REPORTs return 400/413 as expected. The DAV name-lock wait is now 0.015ms p95, butmove_journal_putis 8.74s p95 and App Password verification is 4.61s p95. Load at start/end was 15.13/17.57/17.22 and 13.17/19.40/19.30. I am tracing the Notes write stages next; the profile is saved atdocs/perf/runs/2026-10-01-davscale-573-local-after-move-lock.json.The 1k-entry / 100-change diagnostic after
151c4fd93confirms that area reads are indexed and do not scan the Home. Under local load 25.76→30.15, the 50-client visibility p95 was 11.876s and writer MOVE p95 was 4.946s. Notes-stage p95 was 1.821s waiting for the per-User write lock, 17ms locating the source, 1.258s for the checked Markdown update, 1.501s for projection indexing, and 381ms for Daily note navigation. App Password verification was 4.622s p95. All 5 moves, 50 sync caches, full listings and Calendar projections converged; the 1-winner/7×412 race passed. These local numbers include severe shared-host load; the perf VM remains unreachable. The trace artifact isdocs/perf/runs/2026-10-01-davscale-573-write-stages-probe.json.A corrected 1k-entry/100-change diagnostic confirms the previous result and records the actual scenario sizes. At local start/end load 45.36/42.40/34.95 → 42.40/42.60/35.48, MOVE visibility p95 was 19.099s. App Password verification p95/p99 was 5.283/12.974s. Notes per-User lock wait p95 was 3.529s; source locate was 15ms; checked Markdown update was 140ms; projection index was 1.839s; navigation was 425ms. The DAV lock wait was 0.002ms. All 5 moves, 50 sync caches, full listings, Calendar projection, 1-winner/7×412 If-Match race, and five hostile REPORT cases passed. This is a loaded local diagnostic, not an acceptance measurement. The perf VM remains unreachable. The corrected artifact is
docs/perf/runs/2026-10-01-davscale-573-write-stages-final.json.Finished
Implemented Forgejo #573 on branch
job/davscale-573. Head:f943e0dab500f69835462dd3e46b91fa117b9e9f.The Notes Journal now reads sync tokens from the per-User cursor and serves area listings and copy lookups from indexed projections. Healthy DAV reads skip the Notes writer lock check when no repair is pending. MOVE no longer holds the coarse DAV area-name lock. Notes still checks the source ETag while it writes under its per-User lock. The Apple replay suite now tests two same-source MOVE requests and expects one 201 and one 412.
The benchmark records 50k PROPFIND and calendar-query, 10k sync changes, 50-client move convergence, bounded 429 retries, trace stages, response sizes, CPU and RSS. Results and the baseline entry are in
docs/perf/caldav-scale-573.mdanddocs/perf/baseline.json.Measurements
The full local profile after MOVE lock removal measured PROPFIND 50k p95 5.969s, calendar-query 50k p95 4.806s, sync after 10k changes p95 1.965s, and move visibility to 50 clients p95 18.349s. Listing and sync met their budgets. The move result improved from 34.075s p95 with the DAV lock, but it did not meet the 5s budget. The perf VM returned
No route to host; the local host was busy (load average 15.13/17.57/17.22 at start).All five moves and all 50 sync caches converged. The Calendar projection matched. The If-Match race had one winner and seven 412 responses. Five hostile REPORT cases returned 400 or 413. The corrected 1k diagnostic shows high local App Password verification and Notes writer/index time; see the write-stage artifact. Do not use these loaded local numbers as a perf VM acceptance result.
Gates
Decisions
Known gap
The 5-second area-move visibility budget is still open. Re-run the full profile on the perf VM when it is reachable. Notes
0024_dav_resource_projection.sqlis still the next free migration afterorigin/devthrough0023.Correction to the gate block in my previous comment: it added one leading space before test result lines. The emitted summary lines are:
Orchestrator: queued for merge round 7 as an improvement (move visibility 34 s → 18 s, listing/sync within budget). Remaining: move visibility to 50 clients p95 18.3 s vs 5 s budget, and 50k PROPFIND p95 6 s — both measured on the loaded build host; re-measure on the perf VM when it is back online, then a follow-up round. Note for the merge: notes migration 0024 collides with #549's notes migration 24 → renumber at merge.
Perf VM baseline A1 (partial)
Pinned
origin/devc4a61e8cf, optimized release server, HDD emulation, 50,000 Calendar entries, 10,000 sync changes, 3 samples per listing/sync scenario. The 50-client move-visibility phase ended withTimeoutErrorat the profile's 120 s request timeout, so this run is incomplete.Fixture seed took 691.451 s; projection settle took 16.400 s. Server peak RSS was 621,699,072 bytes across the completed scenarios. Load in the lock: start
0.04 0.03 0.15, end1.61 2.07 1.86.Command:
flock -w 14400 /root/perf.lock /root/hdd-emu.sh run-limited env TMPDIR=/srv/hdd-emu/tmp python3 bench/caldav-scale-573.py --server calternal-server --data-root /srv/hdd-emu/perf-rerun/caldav --entries 50000 --samples 3 --changes 10000 --batch-size 1000 --clients 50.This is baseline evidence only; the feature comparison is still running. No regression issue is filed from this partial A run.
CalDAV A1/B1, perf VM, pair 1
Pinned dev baseline:
c4a61e8cf; feature:f943e0dab. Both used optimized release servers, the same 50k Calendar entries and 10k change workload, 3 request samples, and the emulated HDD. Initial/end load for A1 was0.04 0.03 0.15/1.61 2.07 1.86; B1 was0.16 1.09 1.51/2.52 2.33 2.15.The feature run returned exit 2 because its 2 s sync and 5 s move budget checks failed; correctness checks passed. Move writer p95 was 39,230.388 ms. Feature server peak RSS across the move phase was 795,365,376 bytes. This is one interleaved pair only; four pairs remain. The p95 improvements are strong, but move visibility still misses the requested budget. No >10% regression is identified from this pair.
Command shape:
flock -w 14400 /root/perf.lock /root/hdd-emu.sh run-limited env TMPDIR=/srv/hdd-emu/tmp python3 bench/caldav-scale-573.py --server <release-binary> --data-root /srv/hdd-emu/perf-rerun/caldav --entries 50000 --samples 3 --changes 10000 --batch-size 1000 --clients 50.Correction to my A1/B1 comment: the same-phase server RSS peak was also higher on the feature build: PROPFIND 524,451,840 → 623,144,960 bytes (+18.8%); calendar-query 576,417,792 → 687,452,160 bytes (+19.3%). I treated the p95 latency gains as the whole comparison and omitted this >10% resource increase. I will use the remaining interleaved pairs to confirm whether this is repeatable, then file one issue if it persists.
One more resource detail from A1/B1: peak server CPU utilization also rose in the same completed phases: PROPFIND 111.87% → 195.73%, calendar-query 107.80% → 199.70%, sync 103.88% → 192.99%. The sampler reports peak concurrent CPU use (values over 100% span cores), not total CPU seconds. Latency improved sharply in these phases, so I will include both sides in the repeated comparison before deciding whether to file the resource increase.
CalDAV baseline A2 repetition
A2 again completed the three 50k/10k scenarios, then ended with
TimeoutErrorduring the 50-client move phase at the 120 s request cap. Fixture seed took 683.295 s and projection settle took 14.553 s. Load in the lock was0.08 1.16 1.71at start and1.98 2.25 2.25at end.Command:
flock -w 14400 /root/perf.lock /root/hdd-emu.sh run-limited env TMPDIR=/srv/hdd-emu/tmp python3 bench/caldav-scale-573.py --server <dev release binary> --data-root /srv/hdd-emu/perf-rerun/caldav --entries 50000 --samples 3 --changes 10000 --batch-size 1000 --clients 50.CalDAV feature B2 setup timeout
B2 did not reach a measured scenario. The release feature server created 25,000 of the requested 50,000 Calendar entries, then an API batch request ended with
TimeoutErrorat the 120 s client cap. The profile wrotestatus=incomplete, no scenarios, and nofixture_seed_seconds. Load in the lock: start0.93 1.94 2.14, end1.97 2.19 2.24.TimeoutErrorCommand:
flock -w 14400 /root/perf.lock /root/hdd-emu.sh run-limited env TMPDIR=/srv/hdd-emu/tmp python3 bench/caldav-scale-573.py --server <feature release binary> --data-root /srv/hdd-emu/perf-rerun/caldav --entries 50000 --samples 3 --changes 10000 --batch-size 1000 --clients 50.This is a setup timeout under load, not a p95 sample; it is excluded from the comparison table. B1 completed the same fixture and all scenarios, so this is a run-to-run stability finding to track with B3.
Correction: I described B2 as “under load.” The recorded load averages were 0.93/1.94/2.14 at start and 1.97/2.19/2.24 at end on a 4-vCPU VM; that does not establish external contention. The evidence is only that the 25k fixture batch timed out on the emulated HDD. The cause is unassigned pending the repeated run.
A3 completed the 50k listing/query and 10k sync samples; the requested 50-client move scenario again timed out at the 120 s request limit. These read/sync results are valid samples from the baseline build even though the run is incomplete.
Fixture seed was 688.055 s. Load average was 0.80/1.81/2.10 at start and 1.62/2.10/2.31 at end. Command:
python3 bench/caldav-scale-573.py --server calternal-server --data-root /srv/hdd-emu/perf-rerun/caldav --entries 50000 --samples 3 --changes 10000 --batch-size 1000 --clients 50(optimized release binary, HDD emulation, underflock -w 14400 /root/perf.lock). JSON:/root/perf-rerun/output/caldav-A3.json.Results
Quiet perf VM; optimized release builds; HDD emulation qualified before the runs. The table shows the median run-level p50/p95 for each read/sync scenario. Each completed run used three request samples. Baseline had three attempts; feature had two completed attempts because B2 timed out during fixture creation at 25k/50k entries.
c4a61e8(A1–A3)f943e0d(B1, B3)Feature B1/B3 passed the requested 5 s p95 budget for listing, query and sync. Move visibility missed it by about 11.7×; both completed feature runs verified all five moves and 50 sync caches. B3 exited 2 because the benchmark's tighter internal budgets failed, not because the scenarios or correctness checks failed.
Mean RSS rose 27.6% for PROPFIND, 16.6% for calendar-query and 15.9% for sync against the three-run baseline medians. Peak sampled CPU rose 99.6%, 76.9% and 83.8%, respectively. I filed #711 for the RSS regression and #712 for the peak CPU signal. The harness records peak CPU in 250 ms windows, not average CPU-seconds; #712 tracks that measurement gap. Start/end load averages are in the run JSON; starts ranged 0.04–0.80 for dev and 0.16–0.93 for feature attempts.
Commands
Both variants used
python3 bench/caldav-scale-573.py --entries 50000 --samples 3 --changes 10000 --batch-size 1000 --clients 50,TMPDIR=/srv/hdd-emu/tmp,/root/hdd-emu.sh run-limited, andflock -w 14400 /root/perf.lock. Dev used/root/perf-rerun/bin/dev-calternal-serveratc4a61e8cf090170f35b1bed3350d9de20c83ecd5; feature used/root/perf-rerun/bin/davscale-573-calternal-serveratf943e0dab500f69835462dd3e46b91fa117b9e9f. JSON:/root/perf-rerun/output/caldav-A1.jsonthroughcaldav-A3.json,caldav-B1.json,caldav-B2.json,caldav-B3.json.Sync architecture audit for #663, base
c4a61e8cf; round-7a2f4482dedchecked.Additional source evidence for #573:
crates/plugins/notes/src/tasks_dav.rs:156fetches every retainedreminder_changesrow newer than the token, then folds by UID. The table retains 10,000 changes (tasks_store.rs, delete at base :683). Scratch SQLite, using the actual migration and query: 10,000 changes of one UID fetch 10,000 rows before one UID remains. EXPLAIN:SEARCH reminder_changes USING INDEX sqlite_autoindex_reminder_changes_1 (user_id=? AND seq>?). The issue is work/response bounds, not a missing seek index.notes/src/lib.rs:1353(queued #653 :1058) use an indexed seq range but fetch_all with no page cap. Initial Reminder sync calls list_inner and buffers all Tasks.calternal-dav/src/protocol.rs:1185area_report and the Reminder REPORT path (:2551 onward) build whole XML responses. The request body is capped at 512 KiB; that is not a response/work cap. I found no nresults handling in these server REPORT paths.Keep #573 as the single DAV scale owner. Add RFC-compatible limited sync pages, a response-byte bound and a continuation token that advances only through emitted records. Combine duplicates without fetching the full retained history when possible. Verify tombstones, scope/epoch changes, range/multiget behavior, initial sync, and concurrent writes. #653 publication-before-ACK must remain intact. A 100-row app rule is not a reason to silently truncate DAV: its client protocol needs an explicit continuation.
This is source and query-plan evidence, not a timing measurement. No latency-budget or regression ratio is claimed. No hostile traffic was run by this audit.