Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
flame-clmc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flame
flame-clmc
Commits
c006112e
Commit
c006112e
authored
6 years ago
by
Stephen C Phillips
Browse files
Options
Downloads
Patches
Plain Diff
Expands conclusion to include measurement and prediction
parent
7375ed93
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/total-service-request-delay.md
+27
-11
27 additions, 11 deletions
docs/total-service-request-delay.md
with
27 additions
and
11 deletions
docs/total-service-request-delay.md
+
27
−
11
View file @
c006112e
...
...
@@ -175,28 +175,26 @@ The total delay is:
total_delay = forward_network_delay + service_delay + reverse_network_delay
```
To measure
or predict
the
`total_delay`
we need:
To
*
measure
*
the
`total_delay`
we need:
```
total_delay = forward_latency + forward_data_delay + service_delay + reverse_latency + reverse_data_delay
= forward_latency
+ {(8 / 1E6) * (request_size / bandwidth) * [packet_size / (packet_size - packet_header_size)]}
+
request_size * service_function_scaling_factor / cpus
+
service_delay
+ reverse_latency
+ {(8 / 1E6) * (response_size / bandwidth) * [packet_size / (packet_size - packet_header_size)]}
```
With:
*
forward_latency / s
*
request_size / Bytes
*
bandwidth / Mb/s (b = bit)
*
packet_size / Bytes
*
packet_header_size / Bytes
*
service_function_scaling_factor / Mflops/Byte
*
cpus (unitless)
*
reverse_latency / s
*
response_size / Bytes
*
forward_latency / s (measured by network probe)
*
reverse_latency / s (measured by network probe)
*
request_size / Bytes (measured at service)
*
response_size / Bytes (measured at service)
*
bandwidth / Mb/s (b = bit) (assumed constant and known or measured)
*
packet_size / Bytes (constant and known)
*
packet_header_size / Bytes (constant and known)
This calculation assumes:
...
...
@@ -209,3 +207,21 @@ This calculation assumes:
*
that the service delay is inversely proprtional to the number of CPUs (and all CPUs are equal)
*
that the compute resource is invariable, 100% available and 100% reliable
*
that the distribution of API calls is constant and that the workload can be represented sufficiently by the average request size
To
*predict*
the
`total_delay`
we need:
```
total_delay = forward_latency + forward_data_delay + service_delay + reverse_latency + reverse_data_delay
= forward_latency
+ {(8 / 1E6) * (request_size / bandwidth) * [packet_size / (packet_size - packet_header_size)]}
+ request_size * service_function_scaling_factor / cpus
+ reverse_latency
+ {(8 / 1E6) * (response_size / bandwidth) * [packet_size / (packet_size - packet_header_size)]}
```
With:
*
service_function_scaling_factor / Mflops/Byte (known, somehow)
*
cpus (unitless) (known)
As discussed above, you could also predict the latency if you know the length of a link but this seems a bit too theoretical.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment