-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
内存占用非常低时,却抛出 std::bad_alloc
异常
#18
Comments
我是用 Snakemake 执行 basevar 命令的。但奇怪的时,当我单独将失败的 job 手动运行时就能成功,难道真的是因为内存分配问题吗? |
下面是某个失败任务的日志:
|
当我并发了 482 个单线程的 basevar 时,所有任务都成功结束了。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
描述:
在使用
basevar
工具时,观察到系统内存占用非常低 (30G / 756G) 左右,但程序偶尔会抛出std::bad_alloc
异常,提示内存分配失败。实际上在我同时并发的十几个 basevar 任务中,大部分都能跑完,但始终会有一两个出现内存分配错误。以下是详细信息和复现步骤:
复现步骤
./bin/basevar basetype -t 20 -L output/calls/all.bam.list \ --filename-has-samplename -R data/reference/Homo_sapiens_assembly38.fasta \ -r chr9:1-5000000 --min-af=0.001 \ --output-vcf output/calls/chr9_1_5000000.vcf.gz \ --output-cvg output/calls/chr9_1_5000000.cvg.tsv.gz \ > log/20250114_075951/chr9_1_5000000.log
预期行为
程序应正常运行,完成数据处理任务,而不会因内存分配失败而崩溃。
实际行为
程序偶尔会抛出
std::bad_alloc
异常,尽管系统内存占用非常低。The text was updated successfully, but these errors were encountered: