in reply to Proc::ProcessTable::Process returning negative rss?

Offhand, and without looking at the code, I'd suspect a twos complement overflow.

David.
  • Comment on Re: Proc::ProcessTable::Process returning negative rss?

Replies are listed 'Best First'.
Re^2: Proc::ProcessTable::Process returning negative rss?
by jimsearle (Initiate) on Dec 12, 2009 at 17:36 UTC
    David, Thanks. After further investigation in the XS extension, I see this in
    func bless_into_proc ... case 'l': /* long */ l_val = va_arg(args, long); hv_store(myhash, key, strlen(key), newSVnv(l_val), 0);
    Which stores the rss (long) as numeric (float) with implicit casting, so it is still a bit of mystery why negative value shows up?
    - Jim