暗能星系

    • 登录
    • 搜索

    argument too long

    问题记录及解决
    1
    1
    6
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • A
      anneng 最后由 编辑

      linux的shell对参数的整体长度有限制 可以使用下面的命令查看大小

      getconf ARG_MAX
      

      http://www.htslib.org/doc/samtools-merge.html
      samtools在手册中也提到了这个问题
      Problems may arise when attempting to merge thousands of files together. The operating system may impose a limit on the maximum number of simultaneously open files. See ulimit -n for more information. Additionally many files being read from simultaneously may cause a certain amount of "disk thrashing". To partially alleviate this the merge command will load 1MB of data at a time from each file, but this in turn adds to the overal merge program memory usage. Please take this into account when setting memory limits.

      In extreme cases, it may be necessary to reduce the problem to fewer files by successively merging subsets before a second round of merging.

      建议的方案就是多次合并 每次合并一部分

      1 条回复 最后回复 回复 引用 0
      • First post
        Last post
      Powered by 暗能星系