From d334b15512982671c9a623a632ef1c00ae992510 Mon Sep 17 00:00:00 2001 From: fc_botelho Date: Sun, 7 Aug 2005 23:22:32 +0000 Subject: [PATCH] stable version of BRZ --- src/brz.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/brz.c b/src/brz.c index 0c9543a..6269d30 100755 --- a/src/brz.c +++ b/src/brz.c @@ -226,7 +226,7 @@ static int brz_gen_graphs(cmph_config_t *mph) #pragma pack(1) cmph_uint32 i, e; brz_config_data_t *brz = (brz_config_data_t *)mph->data; - cmph_uint32 memory_availability = 10485760; //10MB 209715200;//200MB //104857600;//100MB //524288000; // 500MB //209715200; // 200 MB + cmph_uint32 memory_availability = 209715200;//200MB //104857600;//100MB //524288000; // 500MB //209715200; // 200 MB cmph_uint32 memory_usage = 0; cmph_uint32 nkeys_in_buffer = 0; cmph_uint8 *buffer = (cmph_uint8 *)malloc(memory_availability); @@ -284,7 +284,8 @@ static int brz_gen_graphs(cmph_config_t *mph) buckets_size[h3]++; memory_usage = memory_usage + keylen1 + 1; } - sprintf(filename, "/mnt/hd4/fbotelho/%u.cmph",nflushes); +// sprintf(filename, "/mnt/hd4/fbotelho/%u.cmph",nflushes); + sprintf(filename, "/mnt/sd2/fbotelho/dados/%u.cmph",nflushes); /* sprintf(filename, "%u.cmph",nflushes);*/ tmp_fd = fopen(filename, "wb"); for(i = 0; i < nkeys_in_buffer; i++) @@ -343,7 +344,8 @@ static int brz_gen_graphs(cmph_config_t *mph) buckets_size[h3]++; memory_usage = memory_usage + keylen1 + 1; } - sprintf(filename, "/mnt/hd4/fbotelho/%u.cmph",nflushes); +// sprintf(filename, "/mnt/hd4/fbotelho/%u.cmph",nflushes); + sprintf(filename, "/mnt/sd2/fbotelho/dados/%u.cmph",nflushes); /* sprintf(filename, "%u.cmph",nflushes);*/ tmp_fd = fopen(filename, "wb"); for(i = 0; i < nkeys_in_buffer; i++) @@ -373,7 +375,8 @@ static int brz_gen_graphs(cmph_config_t *mph) for(i = 0; i < nflushes; i++) { - sprintf(filename, "/mnt/hd4/fbotelho/%u.cmph",i); +// sprintf(filename, "/mnt/hd4/fbotelho/%u.cmph",i); + sprintf(filename, "/mnt/sd2/fbotelho/dados/%u.cmph",i); /* sprintf(filename, "%u.cmph",i);*/ tmp_fds[i] = fopen(filename, "rb"); key = brz_read_key(tmp_fds[i]);