From 119bdc602967d036f6d606ae3651e1b7c70d7f6b Mon Sep 17 00:00:00 2001 From: Heng Li Date: Wed, 20 Mar 2024 15:53:12 -0400 Subject: [PATCH] r1207: reduced cap_kalloc from 1G to 500M This reduces the peak memory. --- minimap.h | 2 +- options.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/minimap.h b/minimap.h index 8930cd5..8eaa1ce 100644 --- a/minimap.h +++ b/minimap.h @@ -5,7 +5,7 @@ #include #include -#define MM_VERSION "2.27-r1206-dirty" +#define MM_VERSION "2.27-r1207-dirty" #define MM_F_NO_DIAG (0x001LL) // no exact diagonal hit #define MM_F_NO_DUAL (0x002LL) // skip pairs where query name is lexicographically larger than target name diff --git a/options.c b/options.c index 5dd6af9..c0b67e6 100644 --- a/options.c +++ b/options.c @@ -55,7 +55,7 @@ void mm_mapopt_init(mm_mapopt_t *opt) opt->max_clip_ratio = 1.0f; opt->mini_batch_size = 500000000; opt->max_sw_mat = 100000000; - opt->cap_kalloc = 1000000000; + opt->cap_kalloc = 500000000; opt->rank_min_len = 500; opt->rank_frac = 0.9f;