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

Re: Top - Mem: 119212k used



On Sun, 2003-07-27 at 10:39, Alan Connor wrote:
> I'm trying to figure out why my memory footprint is so large when I am running
> NOTHING!
> 
> Running Debian with a 2.4.19 kernel
> 
> 
>  08:23:37 up 57 min,  3 users,  load average: 0.51, 0.15, 0.05
> 18 processes: 17 sleeping, 1 running, 0 zombie, 0 stopped
> CPU states:   0.0% user,   0.2% system,   0.0% nice,  99.8% idle
> Mem:    126528K total,   119212K used,     7316K free,    18932K buffers
> Swap:   128484K total,      700K used,   127784K free,    45920K cached
> 
>   PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
>     1 root       8   0   488  460   444 S     0.0  0.3   0:04 init
>     2 root       9   0     0    0     0 SW    0.0  0.0   0:00 keventd
>     3 root      19  19     0    0     0 SWN   0.0  0.0   0:00 ksoftirqd_CPU0
>     4 root       9   0     0    0     0 SW    0.0  0.0   0:08 kswapd
>     5 root       9   0     0    0     0 SW    0.0  0.0   0:00 bdflush
>     6 root       9   0     0    0     0 SW    0.0  0.0   0:00 kupdated
>    39 root       9   0     0    0     0 SW    0.0  0.0   0:00 khubd
>   325 root       9   0   600  596   488 S     0.0  0.4   0:00 syslogd
>   328 root       9   0   916  720   404 S     0.0  0.5   0:00 klogd
>   354 root       9   0   528  456   456 S     0.0  0.3   0:00 inetd
>   370 root       8   0   680  632   560 S     0.0  0.4   0:00 cron
>   374 alan       8   0  1388 1200  1048 S     0.0  0.9   0:00 bash
>   375 alan       9   0  1388 1388  1028 S     0.0  1.0   0:00 bash
>   376 root       0   0  1340 1340  1016 S     0.0  1.0   0:00 bash
>   377 root       9   0   468  432   412 S     0.0  0.3   0:00 getty
>   378 root       9   0   468  432   412 S     0.0  0.3   0:00 getty
>   379 root       9   0   468  432   412 S     0.0  0.3   0:00 getty
>   739 alan       9   0   932  932   748 R     0.0  0.7   0:00 top
> 
> 
> (that's a screenshot taken with  # cat /dev/vcs2 > file, of tty2 from tty3)

Cur and paste from top(1), when sorting by mem usage would be helpful.
Following what Jeff Taylor said, 18932K + 45920K = 63.3MB (a bit over
half your total RAM) used up by disk buffering.

What does it look like immediately after you boot?  (Don't forget
to sort by RAM usage with the M key!)

> Here's  /sbin/lsmod
> 
> 
> Module                  Size  Used by    Not tainted
> ppp_deflate            38912   0 (autoclean)
> bsd_comp                3936   0 (autoclean)
> ppp_async               6688   0 (autoclean)
> ppp_generic            16908   0 (autoclean) [ppp_deflate bsd_comp ppp_async]
> slhc                    4480   0 (autoclean) [ppp_generic]
> agpgart                20704   0 (autoclean)
> iptable_filter          1728   1 (autoclean)
> keybdev                 1664   0 (unused)
> mousedev                3744   0
> usb-uhci               20676   0 (unused)
> hid                    19104   0 (unused)
> usbcore                53856   0 [usb-uhci hid]
> ide-scsi                7552   0
> ide-floppy             11840   0
> unix                   13412   3 (autoclean)
> 
> 
> Do those size figures indicate bytes or kilobytes? Is that their actual memory
> footprint?

Bytes of object file size.  Any mem used by them is not recorded.

-- 
+-----------------------------------------------------------------+
| Ron Johnson, Jr.        Home: ron.l.johnson@cox.net             |
| Jefferson, LA  USA                                              |
|                                                                 |
| "I'm not a vegetarian because I love animals, I'm a vegetarian  |
|  because I hate vegetables!"                                    |
|    unknown                                                      |
+-----------------------------------------------------------------+




Reply to: