In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces how to use the PBS command in linux, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand.
PBS command
PBS is an open source job management system, running in this environment, users do not need to specify which nodes the program runs on, and the hardware resources needed by the program are managed and allocated by PBS.
PBS command
PBS provides four commands for job management.
(1) qsub command-used to submit job scripts
Command format:
Qsub [- a date_time] [- c interval] [- C directive_prefix] [- e path] [- I] [- j join]
[- k keep] [- l resource_list] [- m mail_options] [- M user_list] [- N name]
[- o path] [- p priority] [- Q destination] [- r c] [- S path_list] [- u user_list]
[- v variable_list] [- V] [- W additional_attributes] [- z] [script]
Parameter description: because the options used are generally submitted in the pbs script, see the PBS script option for details.
Example: # qsub aaa.pbs # submit a job, the system will generate an assignment number, aaa.pbs this file to store the content you want to operate or execute, script!
(2) qstat command-used to query job status information
Command format: qstat [- f] [- a] [- I] [- n] [- s] [- R] [- Q] [- Q] [- B] [- u]
Parameter description:
-f jobid lists the information for the specified job
-a list all jobs in the system
-I list jobs that are not running
-n lists the nodes assigned to this job
-s lists the suggestions provided by the queue administrator and scheduler
-R lists disk reservation information
The-Q operator is destination id, indicating that the queue status is requested
-Q lists the queue status and displays it in alternative form
-au userid lists all jobs for the specified user
-B list PBS Server information
-r lists all running jobs
-Qf queue lists the information of the specified queue
-u if the operator is a job number, its status is listed.
If the operator is destination id, lists the status of jobs running on it that belong to users in user_list.
Example: # qstat-f 211 # query the specific information of the job with job number 211.
(3) qdel command-used to delete submitted jobs
Command format: qdel [- W interval] Job number
Command line arguments:
Example: # qdel-W 15211 # delete the job with assignment number 211 after 15 seconds
(4) qmgr command-for queue management
Qmgr-c "create queue batch queue_type=execution"
Qmgr-c "set queue batch started=true"
Qmgr-c "set queue batch enabled=true"
Qmgr-c "set queue batch resources_default.nodes=1"
Qmgr-c "set queue batch resources_default.walltime=3600"
Qmgr-c "set server default_queue=batch"
Thank you for reading this article carefully. I hope the article "how to use PBS commands in linux" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.