~ubuntu-branches/ubuntu/saucy/slurm-llnl/saucy

« back to all changes in this revision

Viewing changes to src/sacct/sacct_stat.h

  • Committer: Bazaar Package Importer
  • Author(s): Gennaro Oliva
  • Date: 2008-05-30 13:11:30 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080530131130-l6ko6aie7xhrlmxe
Tags: 1.3.3-1
* New upstream release
* Removed patches to src/slurmctd/controller.c src/slurmdbd/slurmdbd.c
  doc/man/man1/sacctmgr.1 included to upstream
* Edited watch file to seek for 1.3 releases
* doc/man/man1/salloc.1 doc/man/man1/sbatch.1 doc/man/man5/slurm.conf.5
  patched to improve formatting and avoid manual warnings 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*****************************************************************************\
2
 
 *  sacct_stat.h - header file for sacct
3
 
 *
4
 
 *  $Id: sacct.h 7541 2006-03-18 01:44:58Z da $
5
 
 *****************************************************************************
6
 
 *  Copyright (C) 2006 The Regents of the University of California.
7
 
 *  Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
8
 
 *  Written by Danny Auble <da@llnl.gov>.
9
 
 *  UCRL-CODE-226842.
10
 
 *  
11
 
 *  This file is part of SLURM, a resource management program.
12
 
 *  For details, see <http://www.llnl.gov/linux/slurm/>.
13
 
 *  
14
 
 *  SLURM is free software; you can redistribute it and/or modify it under
15
 
 *  the terms of the GNU General Public License as published by the Free
16
 
 *  Software Foundation; either version 2 of the License, or (at your option)
17
 
 *  any later version.
18
 
 *
19
 
 *  In addition, as a special exception, the copyright holders give permission 
20
 
 *  to link the code of portions of this program with the OpenSSL library under 
21
 
 *  certain conditions as described in each individual source file, and 
22
 
 *  distribute linked combinations including the two. You must obey the GNU 
23
 
 *  General Public License in all respects for all of the code used other than 
24
 
 *  OpenSSL. If you modify file(s) with this exception, you may extend this 
25
 
 *  exception to your version of the file(s), but you are not obligated to do 
26
 
 *  so. If you do not wish to do so, delete this exception statement from your
27
 
 *  version.  If you delete this exception statement from all source files in 
28
 
 *  the program, then also delete it here.
29
 
 *  
30
 
 *  SLURM is distributed in the hope that it will be useful, but WITHOUT ANY
31
 
 *  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
32
 
 *  FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
33
 
 *  details.
34
 
 *  
35
 
 *  You should have received a copy of the GNU General Public License along
36
 
 *  with SLURM; if not, write to the Free Software Foundation, Inc.,
37
 
 *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA.
38
 
\*****************************************************************************/
39
 
#ifndef _SACCT_STAT_H
40
 
#define _SACCT_STAT_H
41
 
 
42
 
#include "src/common/slurm_protocol_api.h"
43
 
 
44
 
typedef struct {
45
 
        uint16_t taskid; /* contains which task number it was on */
46
 
        uint32_t nodeid; /* contains which node number it was on */     
47
 
} jobacct_id_t;
48
 
 
49
 
typedef struct sacct_struct {
50
 
        uint32_t max_vsize; 
51
 
        jobacct_id_t max_vsize_id;
52
 
        float ave_vsize;
53
 
        uint32_t max_rss;
54
 
        jobacct_id_t max_rss_id;
55
 
        float ave_rss;
56
 
        uint32_t max_pages;
57
 
        jobacct_id_t max_pages_id;
58
 
        float ave_pages;
59
 
        float min_cpu;
60
 
        jobacct_id_t min_cpu_id;
61
 
        float ave_cpu;  
62
 
} sacct_t;
63
 
 
64
 
extern int sacct_stat(uint32_t jobid, uint32_t stepid);
65
 
 
66
 
#endif