From 36b0daefc883acdf83d744a98cdb2959930a5929 Mon Sep 17 00:00:00 2001 From: Stuart Inglis Date: Wed, 31 Jan 2024 16:44:16 +1300 Subject: [PATCH] update --- spit/blockdevicesMain.c | 2 +- spit/httpd.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spit/blockdevicesMain.c b/spit/blockdevicesMain.c index 7cb039f2..5b57931f 100644 --- a/spit/blockdevicesMain.c +++ b/spit/blockdevicesMain.c @@ -17,7 +17,7 @@ int main() { } size_t hddsize = 0; - size_t numHDD = blockDevicesCount(bd, "HDD", &hddsize); + size_t numHDD = blockDevicesCount(bd, "SSD", &hddsize); printf("numHDD: %zd, size = %.1lf GB\n", numHDD, hddsize / (double)1000.0 / 1000.0 / 1000.0); blockDevicesFree(bd); diff --git a/spit/httpd.c b/spit/httpd.c index 6d0f6aa6..34688984 100644 --- a/spit/httpd.c +++ b/spit/httpd.c @@ -97,7 +97,7 @@ void *receiver(void *arg) { size_t bytes = 0; double start =timeAsDouble(); -#define THESZ (1024*1024) +#define THESZ (32*1024) char *databuf = aligned_alloc(4096, THESZ); assert(databuf); char ch = 'A'; @@ -107,7 +107,7 @@ void *receiver(void *arg) { } numListType nl; - nlInit(&nl, 2000); + nlInit(&nl, 200); size_t iteration = 0; @@ -156,7 +156,7 @@ void *receiver(void *arg) { connections++; bytes += contentLen; if ((connections %10 )==0 ) { - fprintf(stderr,"#%d %zd MB %.1lf MB/s (99%% %.3lf ms, sd %.3lf ms, max %.3lf ms)\n", connections, bytes/1024/1024, bytes*1.0/1024/1024/(timeAsDouble()-start), nlSortedPos(&nl,0.99), nlSD(&nl), nlMax(&nl)); + fprintf(stderr,"%d %.1lf IO/s %zd MB %.1lf MB/s (99%% %.3lf ms, sd %.3lf ms, max %.3lf ms)\n", connections, connections / (timeAsDouble()-start), bytes/1024/1024, bytes*1.0/1024/1024/(timeAsDouble()-start), nlSortedPos(&nl,0.99), nlSD(&nl), nlMax(&nl)); } if (fcntl(connfd, F_GETFD) == -1) break;