I have a process using about 11g as reported by ps:
  PID USER        SZ       RSS      COMMAND
 6548 someuser    12339104 12210376 someprocess
But when I use Proc::ProcessTable::Process it returns a big negative number for rss.
bless( { 'cmajflt' => 0, 'cminflt' => 18193, 'cmndline' => '/tools/atoptech/AP_09.02.rel.5.1/Lin +ux/bin/rhel4-64/AP -4 -batch scripts/apPNR/droute_opt.scr -wait -tmp_ +dir APTempDir/droute_opt.tmp -adc_dir APTempDir/droute_opt.adc -cmd_l +og APTempDir/droute_opt.cmd.log -log logs/apPNR/droute_opt.log ', 'cstime' => '120000', 'ctime' => '320000', 'cutime' => '200000', 'cwd' => undef, 'egid' => 20, 'euid' => 9331, 'exec' => undef, 'fgid' => 20, 'flags' => 0, 'fname' => 'AP', 'fuid' => 9331, 'gid' => 20, 'majflt' => 12, 'minflt' => 3062104, 'pctcpu' => '135.55', 'pctmem' => '344.00', 'pgrp' => 4725, 'pid' => 6548, 'ppid' => 6541, 'priority' => 0, 'rss' => -381493248, 'sess' => 3879, 'sgid' => 20, 'size' => 4102443008, 'start' => '1260511632', 'state' => 'run', 'stime' => '547210000', 'suid' => 9331, 'time' => '53885980000', 'ttydev' => '', 'ttynum' => 0, 'uid' => 9331, 'utime' => '53338770000', 'wchan' => -1 }, 'Proc::ProcessTable::Process' ),
Is this a bug, or some kind of overflow? I'm going to look at the Process code and try to figure it out, but thought I'd ask here as well. Thanks, Jim

In reply to Proc::ProcessTable::Process returning negative rss? by jimsearle

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.