METviewer Performance Question #2069
-
Hello METplus folks, I am running METviewer v4.1.0 on an AWS instance. As a note, we are in the process of updating our METviewer instance to v5.0. The problem I am going to outline has occurred in all versions of METviewer. METviewer takes a very long time to create an individual plot for our use case. It takes anywhere from 20 - 40 minutes to create one line plot. I have attached an example log here. We'd like to know if this behavior is expected or if it is indicative of an issue. Tagging @daniel-lagrava-spire for visibility. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 8 replies
-
Hi Lindsay, And thank you for your question. A quick clarification: when you say "...has occurred in all versions of METviewer" do you mean the runtime issue is also present in v5.0? I'm going to tag @TatianaBurek for her expertise on this one. Tatiana, is there a noticeable runtime improvement between v4.1.0 and v5.0.1? I see in the beta1 release notes for v5.1.0 that there's support for Python 3.10.4: could this provide an improvement in runtime? |
Beta Was this translation helpful? Give feedback.
-
Lindsay
|
Beta Was this translation helpful? Give feedback.
-
@lindsayrblank Thank you very much for the report. @venitahagerty Could you please take a look at the loading part of the report. I will work on the aggregation questions. |
Beta Was this translation helpful? Give feedback.
-
METplus is installed on AWS c5.4xlarge EC2 instance. It has 16 CPUs and 32G RAM. Here are the specs: Rscript: As you could see, Rscript is faster than Python and it is expected. But the amount of time it takes to calculate statistics in general is much smaller in our case most likely because of the more advence type of the EC2 instance. |
Beta Was this translation helpful? Give feedback.
-
Hi Lindsay, I'll have more time to look at this tomorrow. I had a brief glance, and I'm curious whether you're running met_db_load.py in a docker container. If so, the default memory is low at 2G, and should be bumped to 4G. Thank you, |
Beta Was this translation helpful? Give feedback.
METplus is installed on AWS c5.4xlarge EC2 instance. It has 16 CPUs and 32G RAM. Here are the specs:
https://instances.vantage.sh/aws/ec2/c5.4xlarge
I run similar job with SL1L2 aggregation logic and bootstrapping replication = 1. The number of record that was retrived from DB is 161898.
Python:
agg_stat.py - time 0:01:15.288
line.py - time 0:00:15.483
Rscript:
agg_stat.R - 00:00:05.41
plot_20230323_204639.R - 0:00:00.989
As you could see, Rscript is faster than Python and it is expected. But the amount of time it takes to calculate statistics in general is much smaller in our case most likely because of the more advence type of the EC2 instance.