Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.24 KB

README.md

File metadata and controls

26 lines (18 loc) · 1.24 KB

SOL-Progetto

Multi-threaded file storage server implemented in C

Tests

Three tests are available. Change dir using cd server and then execute one of the following commands:

  1. make test1 valgrind test: server executed using valgrind to demonstrate the server's correct behaviour and memory usage. Only one client active at a time which sends a new request every 200ms. Server threadpool size: 1

  2. make test2 eviction test: Only one client active at a time which sends a new request every 50ms. Requests are specifically made to test the server's eviction policies. Server threadpool size: 4

  3. make test3 stress test: Ten clients run simultaneously for 30s, making new requests with no delay. Demonstrates the server's concurrency handling. Server threadpool size: 8

Some stats are automatically calculated and printed at the end of each test

Instructions

To test the app by yourself execute the following commands:

cd server
make bin/server bin/clients

Server usage: bin/server <config file> <p>
The third parameter can be anything, its presence enables server's stdout printing

Client usage: bin/client <options> The client parses cli arguments to determine which requests it has to send