On 2004.10.27, Andrew Grumet <[EMAIL PROTECTED]> wrote:
> Hi, I took a brief detour but am getting back to this now.  I grabbed the
> output of ns_info pools at a time when the memory usage was 3 gigabytes and
> change.  How do I interpret the output?  Here it is:
>
> http://grumet.net/scratch/pools

The problem is you also need the output of [ns_info threads] at the same
time in order to really make sense of the data.

  THR ID                 BYTES
      31             139470289
      25             125979217
      27              91844496
      26              83094082
      29              66489776
      30              64196730
       1              30970862
       3               6537406
  shared                     0
      24             -48009520

There's top 10 threads by usage.  You sum up the "requested" column in
order to get bytes but for some reason it sometimes ends up with
negatives: not sure what that's about.  Might need to factor in
blocksize and nget/nput to get the actual number ... but the Tcl
allocator code seems to increment requested when memory is allocated and
decrement it when it's freed ...

Now, if you had the output of [ns_info threads] you could see what
thread IDs 31, 25 and 27 are ... but they only add up to ~350 MB, not
nearly the 3 GB you said the process had grown to.

-- Dossy

--
Dossy Shiobara                       mail: [EMAIL PROTECTED]
Panoptic Computer Network             web: http://www.panoptic.com/
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of 
your email blank.

Reply via email to