Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielius1922 committed Aug 19, 2024
1 parent 241b873 commit 453ec22
Show file tree
Hide file tree
Showing 3 changed files with 146 additions and 13 deletions.
47 changes: 46 additions & 1 deletion .github/workflows/measureMemory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,41 +70,49 @@ jobs:
numDevices: 1
numResources: 1
resourceDataSize: 16384
expectedRssInMb: 50
timeout: 120m
- name: devices/1/resources/1/size/1KB
numDevices: 1
numResources: 1
resourceDataSize: 1024
expectedRssInMb: 50
timeout: 120m
- name: devices/1/resources/125/size/16KB
numDevices: 1
numResources: 125
resourceDataSize: 16384
expectedRssInMb: 50
timeout: 120m
- name: devices/1/resources/125/size/1KB
numDevices: 1
numResources: 125
resourceDataSize: 1024
expectedRssInMb: 50
timeout: 120m
- name: devices/1/resources/250/size/16KB
numDevices: 1
numResources: 250
resourceDataSize: 16384
expectedRssInMb: 50
timeout: 120m
- name: devices/1/resources/250/size/1KB
numDevices: 1
numResources: 250
resourceDataSize: 1024
expectedRssInMb: 50
timeout: 120m
- name: devices/1/resources/500/size/16KB
numDevices: 1
numResources: 500
resourceDataSize: 16384
expectedRssInMb: 50
timeout: 120m
- name: devices/1/resources/500/size/1KB
numDevices: 1
numResources: 500
resourceDataSize: 1024
expectedRssInMb: 50
logLevel: info
logDumpBody: true
timeout: 120m
Expand All @@ -113,164 +121,196 @@ jobs:
numDevices: 1000
numResources: 1
resourceDataSize: 16384
expectedRssInMb: 145
timeout: 120m
- name: devices/1000/resources/1/size/1KB
numDevices: 1000
numResources: 1
resourceDataSize: 1024
expectedRssInMb: 145
timeout: 120m
- name: devices/1000/resources/125/size/16KB
numDevices: 1000
numResources: 125
resourceDataSize: 16384
expectedRssInMb: 145
timeout: 120m
- name: devices/1000/resources/125/size/1KB
numDevices: 1000
numResources: 125
resourceDataSize: 1024
expectedRssInMb: 145
timeout: 120m
- name: devices/1000/resources/250/size/16KB
numDevices: 1000
numResources: 250
resourceDataSize: 16384
expectedRssInMb: 145
timeout: 120m
- name: devices/1000/resources/250/size/1KB
numDevices: 1000
numResources: 250
resourceDataSize: 1024
expectedRssInMb: 145
timeout: 120m
- name: devices/1000/resources/500/size/16KB
numDevices: 1000
numResources: 500
resourceDataSize: 16384
expectedRssInMb: 145
timeout: 120m
- name: devices/1000/resources/500/size/1KB
numDevices: 1000
numResources: 500
resourceDataSize: 1024
expectedRssInMb: 145
timeout: 120m
#2500
- name: devices/2500/resources/1/size/16KB
numDevices: 2500
numResources: 1
resourceDataSize: 16384
expectedRssInMb: 210
timeout: 120m
- name: devices/2500/resources/1/size/1KB
numDevices: 2500
numResources: 1
resourceDataSize: 1024
expectedRssInMb: 210
timeout: 120m
- name: devices/2500/resources/125/size/16KB
numDevices: 2500
numResources: 125
resourceDataSize: 16384
expectedRssInMb: 210
timeout: 120m
- name: devices/2500/resources/125/size/1KB
numDevices: 2500
numResources: 125
resourceDataSize: 1024
expectedRssInMb: 210
timeout: 120m
- name: devices/2500/resources/250/size/16KB
numDevices: 2500
numResources: 250
resourceDataSize: 16384
expectedRssInMb: 210
timeout: 120m
- name: devices/2500/resources/250/size/1KB
numDevices: 2500
numResources: 250
resourceDataSize: 1024
expectedRssInMb: 210
timeout: 120m
- name: devices/2500/resources/250/size/16KB
numDevices: 2500
numResources: 500
resourceDataSize: 16384
expectedRssInMb: 210
timeout: 120m
- name: devices/2500/resources/500/size/1KB
numDevices: 2500
numResources: 500
resourceDataSize: 1024
expectedRssInMb: 210
timeout: 120m
#5000
- name: devices/5000/resources/1/size/16KB
numDevices: 5000
numResources: 1
resourceDataSize: 16384
expectedRssInMb: 320
timeout: 120m
- name: devices/5000/resources/1/size/1KB
numDevices: 5000
numResources: 1
resourceDataSize: 1024
expectedRssInMb: 320
timeout: 120m
- name: devices/5000/resources/125/size/16KB
numDevices: 5000
numResources: 125
resourceDataSize: 16384
expectedRssInMb: 320
timeout: 120m
- name: devices/5000/resources/125/size/1KB
numDevices: 5000
numResources: 125
resourceDataSize: 1024
expectedRssInMb: 320
timeout: 120m
- name: devices/5000/resources/250/size/16KB
numDevices: 5000
numResources: 250
resourceDataSize: 16384
expectedRssInMb: 320
timeout: 120m
- name: devices/5000/resources/250/size/1KB
numDevices: 5000
numResources: 250
resourceDataSize: 1024
expectedRssInMb: 320
timeout: 120m
- name: devices/5000/resources/500/size/16KB
numDevices: 5000
numResources: 500
resourceDataSize: 16384
expectedRssInMb: 320
timeout: 120m
- name: devices/5000/resources/500/size/1KB
numDevices: 5000
numResources: 500
resourceDataSize: 1024
expectedRssInMb: 320
timeout: 120m
#10000
- name: devices/10000/resources/1/size/16KB
numDevices: 10000
numResources: 1
resourceDataSize: 16384
expectedRssInMb: 530
timeout: 120m
- name: devices/10000/resources/1/size/1KB
numDevices: 10000
numResources: 1
resourceDataSize: 1024
expectedRssInMb: 530
timeout: 120m
- name: devices/10000/resources/125/size/16KB
numDevices: 10000
numResources: 125
resourceDataSize: 16384
expectedRssInMb: 530
timeout: 120m
- name: devices/10000/resources/125/size/1KB
numDevices: 10000
numResources: 125
resourceDataSize: 1024
expectedRssInMb: 530
timeout: 120m
- name: devices/10000/resources/250/size/16KB
numDevices: 10000
numResources: 250
resourceDataSize: 16384
expectedRssInMb: 530
timeout: 120m
- name: devices/10000/resources/250/size/1KB
numDevices: 10000
numResources: 250
resourceDataSize: 1024
expectedRssInMb: 530
timeout: 120m
- name: devices/10000/resources/500/size/4KB
numDevices: 10000
numResources: 500
resourceDataSize: 4096
expectedRssInMb: 530
timeout: 300m
- name: devices/10000/resources/500/size/1KB
numDevices: 10000
numResources: 500
resourceDataSize: 1024
expectedRssInMb: 530
timeout: 120m

# Steps represent a sequence of tasks that will be executed as part of the job
Expand All @@ -296,7 +336,12 @@ jobs:
- name: Run a test
shell: bash -eo pipefail {0}
run: |
make test/mem TEST_DATABASE=${{ steps.db.outputs.name }} TEST_MEMORY_COAP_GATEWAY_RESOURCE_DATA_SIZE=${{ matrix.resourceDataSize }} TEST_TIMEOUT=${{ matrix.timeout }} TEST_MEMORY_COAP_GATEWAY_NUM_DEVICES=${{ matrix.numDevices }} TEST_MEMORY_COAP_GATEWAY_NUM_RESOURCES=${{ matrix.numResources }} | tee >(grep "TestMemoryWithDevices.result:" | sed -e "s/.*TestMemoryWithDevices.result://g" | jq -r -c > out.json)
make test/mem TEST_DATABASE=${{ steps.db.outputs.name }} \
TEST_MEMORY_COAP_GATEWAY_EXPECTED_RSS_IN_MB=${{ matrix.expectedRssInMb }} \
TEST_MEMORY_COAP_GATEWAY_RESOURCE_DATA_SIZE=${{ matrix.resourceDataSize }} \
TEST_TIMEOUT=${{ matrix.timeout }} \
TEST_MEMORY_COAP_GATEWAY_NUM_DEVICES=${{ matrix.numDevices }} \
TEST_MEMORY_COAP_GATEWAY_NUM_RESOURCES=${{ matrix.numResources }} | tee >(grep "TestMemoryWithDevices.result:" | sed -e "s/.*TestMemoryWithDevices.result://g" | jq -r -c > out.json)
- name: Dump file
if: success()
Expand Down
Loading

0 comments on commit 453ec22

Please sign in to comment.