diff --git a/prak3/readme.md b/prak3/readme.md index 6457039d8074844552c7df7c007f73ed2bb7f0d2..8a81edf43dcd93872afa751baf30bd1d41276957 100644 --- a/prak3/readme.md +++ b/prak3/readme.md @@ -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) diff --git a/prak3/startClients.sh b/prak3/startClients.sh index b7ab5b8e6a1c6fcbbdd7862de56d0ee16b817b82..9c79d482350b7b3635ac5907b4b90566bd860cd0 100644 --- a/prak3/startClients.sh +++ b/prak3/startClients.sh @@ -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