[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about top



Hi list

A program I wrote (namely, an archive extraction engine), when processing
a big and nasty archive, drives the numbers on top/ktop nuts.
In the memory column, I have > 1000MB, when the machine only has 512MB RAM
altogether (256 physical and a 256MB swap partitition)

Here's what it looks like:

  PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND

23882 root      14   0 1357M 1.3G  2232 R    967M 46.2 539.4  10:09 vs

1.3 Gigs?!
539% memory usage?

ktop also says "resident" memory is ~130Megs at this stage. It still 
sounds too large, but it's technically possible, and I could be leaking.

Anything about how my code allocs/deallocs that screws top completely
up? Ideas? 

System is RH6.2, default kernel.
uname -a says:
Linux november 2.2.14-5.0 #1 Tue Mar 7 21:07:39 EST 2000 i686 unknown

Thanks!

---= Miki Shapiro =------------------
 ---= Cell: (+972)-56-322433 =--------
  ---= ICQ: 3EE853 =-------------------
   ---= Windows Programmer in Rehab =---
    ------------------------------------

"If at first you don't succeed...
.. Skydiving is probbably not for you."


=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il