-
Notifications
You must be signed in to change notification settings - Fork 154
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
New server performance fixes #368
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fstachura
commented
Dec 25, 2024
update.py
Outdated
@@ -189,6 +189,15 @@ def update_versions(self, tag): | |||
db.vers.put(tag, obj, sync=True) | |||
|
|||
|
|||
def generate_defs_caches(): | |||
for key in db.defs.get_keys(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How long does this take for linux?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty slow (on my workstation):
⟩ echo 3 | sudo tee /proc/sys/vm/drop_caches > /dev/null
⟩ command time python -c "
import berkeleydb ;
db = berkeleydb.db.DB() ;
db.open('../elixir-data/linux/data/definitions.db', flags=berkeleydb.db.DB_RDONLY) ;
db.keys()"
5.21user 8.20system 0:43.29elapsed 30%CPU (0avgtext+0avgdata 455720maxresident)k
8610048inputs+0outputs (40major+103071minor)pagefaults 0swaps
⟩ command time python -c "
import berkeleydb ;
db = berkeleydb.db.DB() ;
db.open('../elixir-data/linux/data/definitions.db', flags=berkeleydb.db.DB_RDONLY) ;
db.keys()"
1.29user 0.84system 0:02.15elapsed 99%CPU (0avgtext+0avgdata 457048maxresident)k
0inputs+0outputs (0major+103090minor)pagefaults 0swaps
tleb
force-pushed
the
prod
branch
3 times, most recently
from
January 9, 2025 09:50
fa9810d
to
a0d6cb2
Compare
Signed-off-by: Théo Lebrun <[email protected]>
This is pretty specific to the official server. Here are some assumptions (probably others were forgotten): - Docker is available and is used to host the HTTP server on TCP/8080. - A symlink named /srv/elixir-data points to either /srv/elixir-data-a or /srv/elixir-data-b. It contains all projects. Indexing is done by copying the "hot" data to the "cold" location and starting a new container. Signed-off-by: Théo Lebrun <[email protected]>
Signed-off-by: Théo Lebrun <[email protected]>
Signed-off-by: Théo Lebrun <[email protected]>
Signed-off-by: Théo Lebrun <[email protected]>
Signed-off-by: Théo Lebrun <[email protected]>
Signed-off-by: Théo Lebrun <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.