Skip to content

Conversation

@s-ludwig
Copy link
Member

@s-ludwig s-ludwig commented Apr 15, 2025

These are some improvements to the amount of GC allocations used during normal operation. The shallow package list and updatePackageList execution changes are new changes, since the other changes only helped temporarily.

See also: https://forum.dlang.org/thread/pnlyqzhuddbktbgyytxu@forum.dlang.org

@s-ludwig s-ludwig changed the title Reduce GC pressure to mitigate recent AI bot based outages Reduce GC pressure to mitigate recent outages caused AI bots Apr 15, 2025
s-ludwig added 5 commits May 10, 2025 14:11
Avoids transferring, allocating and converting parts of a package document, such as the per-version readme.
This is a considerable source for GC allocations. Disabling it will make JSON related error messages worse, but helps a lot in coping with the recent AI bot traffic.
In case the update takes more than 30 seconds, the existing approach would potentially lead to a complete lock-up of the process, since multiple runs of updatePackageList would start to overlap. This ensures that only one update can be active at a time and that there is always a time in-between where the thread is not busy with list updates.
@s-ludwig s-ludwig force-pushed the reduce_gc_pressure branch from 0210466 to e5c6398 Compare May 10, 2025 12:11
@s-ludwig s-ludwig merged commit e35c67e into master May 10, 2025
2 checks passed
@Geod24 Geod24 deleted the reduce_gc_pressure branch May 12, 2025 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants