文档首页 > > 安装指南> HTCondor 8.9.2 安装指南> 故障排除>

解决htcondor在鲲鹏920上启动服务失败

解决htcondor在鲲鹏920上启动服务失败

分享
更新时间:2021/01/25 GMT+08:00

问题描述:

HTCondor在鲲鹏920上启动服务失败。

问题处理:

  1. 执行以下命令编辑“daemon_core.cpp”文件。

    1. vi condor-8.9.2/src/condor_daemon_core.V6/daemon_core.cpp
    2. 按“i”进入编辑模式,编辑第5856-5880行内容。
      if( daemonCore->UseCloneToCreateProcesses() ) {
      dprintf(D_FULLDEBUG,"Create_Process: using fast clone() "
      "to create child process.\n");
      
      // The stack size must be big enough for everything that
      // happens in CreateProcessForkit::clone_fn().  In some
      // environments, some extra steps may need to be taken to
      // make a stack on the heap (to mark it as executable), so
      // we just do it using the parent's stack space and we use
      // CLONE_VFORK to ensure the child is done with the stack
      // before the parent throws it away.
      //const int stack_size = 16384;
      const int stack_size = 64*1024*2;
      //const int stack_size = 64*1024*16;
      char child_stack[stack_size]  ;
      
      // Beginning of stack is at end on all processors that run
      // Linux, except for HP PA.  Here we just detect at run-time
      // which way it goes.
      char *child_stack_ptr = child_stack;
      if( stack_direction() == STACK_GROWS_DOWN ) {
      child_stack_ptr += stack_size;
      }
      child_stack_ptr = (char *)((std::uintptr_t)child_stack_ptr & ~(std::uintptr_t)0<<4);
    3. 按“Esc”键,输入:wq!,按“Enter”保存并退出编辑。

分享:

    相关文档

    相关产品

文档是否有解决您的问题?

提交成功!非常感谢您的反馈,我们会继续努力做到更好!
反馈提交失败,请稍后再试!

*必选

请至少选择或填写一项反馈信息

字符长度不能超过200

提交反馈 取消

如您有其它疑问,您也可以通过华为云社区问答频道来与我们联系探讨

智能客服提问云社区提问