-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improving memory usage / cache usage #24403
Comments
More context: when running background jobs, many classes that are used might cache objects forever. This causes the memory usage to increase significantly and many cached objects aren't necessarily reused. So one idea was to introduce the |
Using a capped cache is a quickfix. But we should evaluate each change as to not break stuff when the cache is expected to hold more elements... |
I'd also say that it is just hiding other issues, but yeah, maybe we can set the size to something really huge for debug mode, so it still wastes memory for developers? |
|
@blizzz can you do the LDAP one, @icewind1991 the mount caches and FS ones, @DeepDiver1975 The Sabre ones are low prio because they aren't called during background jobs or updates. |
|
|
This breaks upgrades on instances with more than ~10000-15000 users |
@cmonteroluque This needs backport for 9.0.3 |
Not sure if we can backport ALL of them once they are fixed, but we should at least backport the most impactful pieces. |
@PVince81 @felixboehm we should talk about which get backported. Later today during the issue review call |
For #24403 When upgrading huge installations this can lead to memory problems as the cache will only grow and grow. Capping this memory will make sure we don't run out while during normal operation still basically cache everything.
PR in #24869 |
For #24403 When upgrading huge installations this can lead to memory problems as the cache will only grow and grow. Capping this memory will make sure we don't run out while during normal operation still basically cache everything.
For #24403 When upgrading huge installations this can lead to memory problems as the cache will only grow and grow. Capping this memory will make sure we don't run out while during normal operation still basically cache everything.
For #24403 When upgrading huge installations this can lead to memory problems as the cache will only grow and grow. Capping this memory will make sure we don't run out while during normal operation still basically cache everything.
Oops, this should stay on 9.1. Once the backports are merged, the other remaining cases are not really relevant to memory usage. For example Sabre plugin aren't used when running cron operations or updates. |
Regarding lib/private/Files/Storage/LocalTempFileTrait.php#L40 I don't think we can make this a capped cache as we'd lose track of what temp files were created and will be unable to clean them up afterwards. Capped cache for Encryption cache info cache and UserMountCache have been backported to stable9. The Sabre ones aren't relevant for cron or updates. Moving the rest to 9.2 now. @butonic let me know if you think otherwise |
I think we're done here, see my comment for the unticked cases. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
From @butonic:
@DeepDiver1975 @rullzer @icewind1991 @schiesbn @nickvergessen
The text was updated successfully, but these errors were encountered: