Skip to content
Snippets Groups Projects
Commit 7de88492 authored by Saif Eddine Askri's avatar Saif Eddine Askri
Browse files

Update client execution command to include NUMBER_OF_PROCESSES_TO_START...

Update client execution command to include NUMBER_OF_PROCESSES_TO_START parameter in documentation and script
parent 97196d8c
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ Use the following command to execute the server:
```
Use the following command to execute the client:
```sh
./startClients.sh <SERVER_IP> <PORT> <BUFFER_SIZE> <NUMBER_OF_REQUESTS> <REQUEST_GENERATION_TYPE>
./startClients.sh <SERVER_IP> <PORT> <BUFFER_SIZE> <NUMBER_OF_REQUESTS> <REQUEST_GENERATION_TYPE> <NUMBER_OF_PROCESSES_TO_START>"
```
---
......@@ -35,17 +35,21 @@ The following scripts measure execution time and generate profiling data for dif
- **Execute the client with random Requests:**
```sh
./startClients.sh 141.100.42.131 2525 1024 2000 random
./startClients.sh 141.100.42.131 2525 1024 20000 random <NUMBER_OF_PROCESSES_TO_START>
```
- **Execute the client with equal Requests:**
```sh
./startClients.sh 141.100.42.131 2525 1024 2000 equal
./startClients.sh 141.100.42.131 2525 1024 20000 equal <NUMBER_OF_PROCESSES_TO_START>
```
- **Execute the client with realistic Requests:**
```sh
./startClients.sh 141.100.42.131 2525 1024 2000 realistic
./startClients.sh 141.100.42.131 2525 1024 20000 realisticn <NUMBER_OF_PROCESSES_TO_START>
```
- **Execute the client localy randomly:**
```sh
./startClients.sh 127.0.0.1 2525 1024 20000 random <NUMBER_OF_PROCESSES_TO_START>
```
### 🔥 Stack Trace & Profiling (Perf + Flamegraphs)
......
......@@ -7,11 +7,11 @@ PORT=$2 # Port (second argument)
BUFFER_SIZE=$3 # Buffer size (third argument)
NUMBER_OF_REQUESTS=$4 # Number of requests (fourth argument)
REQUEST_GENERATION_TYPE=$5 # Request generation type (fifth argument)
NUMBER_OF_PROCESSES_TO_START = $6
NUMBER_OF_PROCESSES_TO_START=$6
# Validate input arguments
if [ $# -ne 6 ]; then
echo "Usage: $0 <SERVER_IP> <PORT> <BUFFER_SIZE> <NUMBER_OF_REQUESTS> <REQUEST_GENERATION_TYPE>"
echo "Usage: $0 <SERVER_IP> <PORT> <BUFFER_SIZE> <NUMBER_OF_REQUESTS> <REQUEST_GENERATION_TYPE> <NUMBER_OF_PROCESSES_TO_START>"
exit 1
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment