On Sat, Nov 26, 2011 at 11:34 PM, mahbube rustaee <[email protected]> wrote:
> thanks Rason for your time.
> 1) I studied "man accounting" and mem is "integral memory usage in cpu
> seconds".
> I wanted to check this integral:
>  I write a simple c++ program that print cpu time for itselsf,I submited
> this serial job, then get mem accounting parameter.
> Then, I ran that program via CLI .when program is running ,pmap command show
> all memory for that.
> I multiplied memory usage(output of pmap) with cpu time(printed via program)
> and I didn't get around mem accounting in sge. why ?

When you mentioned "mem", I thought you wanted to get the mem field in
the accounting file. So if you want to get the highest memory mark of
your job, then you should look at the "maxvmem" field in the
accounting file.

I have not checked the code yet (in the end, it's close to 1:40 am
here), but related to the "mem" field not reporting the product of
memory usage and cpu time, you need to keep in mind that the shell
that runs the job script is part of the job. Depending on how your
test case was written, the usage can be off by a noticeable amount
just due to the memory used by the shell alone.

Anyway, post your test case and the numbers you got, and I (or
someone) will look at them tomorrow.

Rayson




>
> 2) I want to verify "how this integral is gotten" ?
> 3) what about maxvem?
>
> thx so much
>
> On Sat, Nov 26, 2011 at 9:21 PM, Rayson Ho <[email protected]> wrote:
>>
>> On Sat, Nov 26, 2011 at 6:52 AM, mahbube rustaee <[email protected]>
>> wrote:
>> > how  can I get " mem"  parameter  value in  accounting  by hand?
>>
>> If you want to get the value reported by qacct, you can parse the
>> accounting file by hand:
>>
>> http://gridscheduler.sourceforge.net/htmlman/htmlman5/accounting.html
>>
>>
>> > I mean , What are linux commands about that?
>>
>> Not exactly sure what you mean... you can use perl or even awk/sed to
>> parse the accounting file.
>>
>> However, Linux does not offer a command that get the "mem" statistics
>> of a Grid Engine job outside of Grid Engine, as a Grid Engine job can
>> have 1 or more processes. Most Linux tools show memory usage of
>> individual processes.
>>
>> Rayson
>>
>>
>>
>> >
>> > Thx
>> >
>> > _______________________________________________
>> > users mailing list
>> > [email protected]
>> > https://gridengine.org/mailman/listinfo/users
>> >
>> >
>
>

_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to