24小时热门版块排行榜    

Znn3bq.jpeg
查看: 556  |  回复: 6
当前主题已经存档。

TIGERYZZ

金虫 (小有名气)

[交流] 【求助】请教torque问题

各位,我们集群使用torque管理,然后计算结果要在计算完毕后输出e,o文件。
想请问能否采用qstat或者别的命令,随时查看到正在运行的任务的屏幕输出,以便及时调整,谢谢。
回复此楼

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

fengya0785

银虫 (小有名气)

★ ★
TIGERYZZ(金币+1,VIP+0):thanks~~ 7-20 21:53
mingdong(金币+1,VIP+0):感谢交流! 8-2 08:34
torque好像是没有这功能,但你可以在提交时重定向输出到文件里,就可以看到屏幕输出了。
E
2楼2009-07-20 15:04:45
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

ma_chao

新虫 (初入文坛)

★ ★
mingdong(金币+1,VIP+0):感谢交流! 8-2 08:34
TIGERYZZ(金币+1,VIP+0): 8-2 10:53
重定向到文件,然后可以用watch + cat 来自动重复看

可以用,但不确定对资源的损耗

呵呵,fengya0785  
3楼2009-08-02 03:32:04
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

solocheng

荣誉版主 (文坛精英)

黑洞洞主

优秀版主

过来学习了,厉害
你来了,我信你不会走;你走了,我当你没来过。
4楼2009-08-02 12:01:10
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

fengya0785

银虫 (小有名气)

引用回帖:
Originally posted by ma_chao at 2009-8-2 03:32:
重定向到文件,然后可以用watch + cat 来自动重复看

可以用,但不确定对资源的损耗

呵呵,fengya0785  

5楼2009-08-03 11:31:56
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

TIGERYZZ

金虫 (小有名气)

还请教个问题
我能否在作业运行过程中,更改作业的时间呢?
也就是更改提交作业时的walltime呢?
6楼2009-08-05 08:13:47
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

123qweasd7962

★ ★ ★ ★ ★ ★
wuli8(金币+3,VIP+0):3KS 8-20 13:36
TIGERYZZ(金币+3,VIP+0):这个是perl写的?好专业……好好看看去,谢谢了 8-20 21:00
可以参考使用qpeek

#!/usr/bin/perl

# qpeek:  Peek into a job's output spool files
# Copyright 2001, Ohio Supercomputer Center
#
# Usage:  qpeek [options] JOBID
#
# Options:
#   -c      Show all of the output file ("cat", default)
#   -h      Show only the beginning of the output file ("head"
#   -t      Show only the end of the output file ("tail"
#   -f      Show only the end of the file and keep listening ("tail -f"
#   -#      Show only # lines of output
#   -e      Show the stderr file of the job
#   -o      Show the stdout file of the job
#   -?      Display help

$tool="cat";
$numlines="";
$suffix="OU";
$spool="/var/spool/pbs/spool";
$host="oscbw";

while ( $ARGV[0] =~ /^-.*/ )
  {
    if ( $ARGV[0] eq "-c" )
      {
        $tool="cat";
      }
    elsif ( $ARGV[0] eq "-f" )
      {
        $tool="tail -f";
      }
    elsif ( $ARGV[0] eq "-h" )
      {
        $tool="head";
      }
    elsif ( $ARGV[0] eq "-t" )
      {
        $tool="tail";
      }
    elsif ( $ARGV[0] =~ /^-[0-9]+$/ )
      {
        $numlines=$ARGV[0];
      }
    elsif ( $ARGV[0] eq "-e" )
      {
        $suffix="ER"
      }
    elsif ( $ARGV[0] eq "-o" )
      {
        $suffix="OU"
      }
    elsif ( $ARGV[0] eq "-?" || $ARGV[0] eq "-help" )
      {
        print STDERR < qpeek:  Peek into a job's output spool files

Usage:  qpeek [options] JOBID

Options:
   -c      Show all of the output file ("cat", default)
   -h      Show only the beginning of the output file ("head"
   -t      Show only the end of the output file ("tail"
   -f      Show only the end of the file and keep listening ("tail -f"
   -#      Show only # lines of output
   -e      Show the stderr file of the job
   -o      Show the stdout file of the job (default)
   -?      Display this help message
EOF
        exit;
      }
    else
      {
        print STDERR "qpeek:  Unrecognized option $ARGV[0] ignored\n";
      }
    shift(@ARGV);
  }

$jobid=shift(@ARGV);
$jobid=~s/\.[A-z0-9.]+$//;
die "No jobid given!\n" if ( $jobid eq "" );

$node=&mothersuperior($jobid);
die "Job $jobid is not running!\n" if ( $node eq "" );

exec "rsh $node $tool $numlines $spool/$jobid.$host.$suffix\n";


sub mothersuperior
{
  local($jobid,$node);
  $jobid=$_[0];
  $node="";
  open(QSTAT,"qstat -f $jobid |";
  while ( )
    {
      chop;
      if ( $_ =~ /exec_host/ )
        {
          ($keyword,$node)=split(/=/);
          $node=~s:/[0-9]+[A-z0-9/+]*::;
        }
    }
  $node;
}

[ Last edited by 123qweasd7962 on 2009-8-20 at 11:47 ]
7楼2009-08-20 11:44:23
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 TIGERYZZ 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 收到复试调剂但是去不了 +7 小蜗牛* 2026-04-16 7/350 2026-04-18 09:24 by 希望我好好的
[考研] 求调剂 +9 小聂爱学习 2026-04-16 11/550 2026-04-17 22:34 by chixmc
[考研] 一志愿华中农业071010,320求调剂 +17 困困困困坤坤 2026-04-14 19/950 2026-04-17 20:08 by 关一盏灯cd
[考研] 304求调剂 +7 castLight 2026-04-16 7/350 2026-04-17 20:05 by 关一盏灯cd
[考研] 接受任何调剂 +4 也就是栗子 2026-04-17 4/200 2026-04-17 17:57 by Equinoxhua
[考研] 297,工科调剂?河南农业大学本科 +14 河南农业大学-能 2026-04-14 14/700 2026-04-16 14:41 by dingyanbo1
[考研] 26药学专硕105500求调剂 +6 喽哈加油 2026-04-13 7/350 2026-04-16 14:31 by zhouxiaoyu
[基金申请] RY:中国产出的科学垃圾论文,绝对数量和比例都世界第一 +7 zju2000 2026-04-14 18/900 2026-04-16 11:36 by 欢乐颂叶蓁
[考研] 279学硕食品专业求调剂院校 20+7 孤独的狼爱吃羊 2026-04-12 29/1450 2026-04-16 09:00 by screening
[考研] 085404 22408 309分求调剂 +9 lzmk 2026-04-14 10/500 2026-04-15 20:02 by 学员JpLReM
[考研] 药学求调剂 +11 RussHu 2026-04-12 13/650 2026-04-15 19:07 by zhuwenxu
[考研] 生物学调剂 +9 纸扇zhishan 2026-04-13 9/450 2026-04-15 18:28 by AN流800
[考研] 0854调剂 +13 长弓傲 2026-04-12 16/800 2026-04-15 13:45 by fenglj492
[考研] 材料工程281还有调剂机会吗 +43 xaw. 2026-04-11 44/2200 2026-04-15 12:46 by 西北望—风沙
[考研] 366求调剂 +11 不知名的小卅 2026-04-11 11/550 2026-04-14 15:50 by zs92450
[考研] 085600材料与化工329分求调剂 +24 叶zilin 2026-04-13 25/1250 2026-04-14 09:20 by 试管破裂
[考研] 一志愿085802 323分求调剂 +13 drizzle_9 2026-04-12 14/700 2026-04-13 10:26 by Faiz5552
[考研] +10 李多米lee. 2026-04-12 11/550 2026-04-12 22:58 by yuyin1233
[考研] 一志愿浙大生物325分求调剂 +9 zysheng 2026-04-12 9/450 2026-04-12 22:31 by yuyin1233
[考研] 331求调剂 +5 王国帅 2026-04-11 5/250 2026-04-11 22:56 by 溪涧流水
信息提示
请填处理意见