Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-who committed Jan 31, 2024
1 parent a82e2c8 commit 36b0dae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spit/blockdevicesMain.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions spit/httpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -107,7 +107,7 @@ void *receiver(void *arg) {
}

numListType nl;
nlInit(&nl, 2000);
nlInit(&nl, 200);

size_t iteration = 0;

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 36b0dae

Please sign in to comment.