Skip to contentSkip to conversation

what is using memory?

DISCUSSION Ed Tomlinson 2 participants 3 messages Jun 11, 2001 Memory management

lore
Share & tools
lore
#0 lore raw

I have been trying to figure out what is using my memory

My box has

320280K

Quoted 1 line

From boot I see

924 kernel
8224 reserved (initrd ramdisk?)
1488 hash tables (dentry, inode, mount, buffer, page, tcp)

from lsmod I caculate

876 for loaded modules

from proc/slabinfo

11992 for all slabs

from proc/meminfo

17140 buffer
123696 cache
32303 free

leaving unaccounted

123627K

This is about 38% of my memory, and only about 46% is pageable Is it possible to figure out what is using this?

This is with 2.4.6-pre2 with Rik's page_launder_improvements patch, lvm beta7 and some reieserfs patches applied, after about 12 hours of uptime.

TIA,

Ed Tomlinson

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/

#1 lore raw
Quoted 6 lines

My box has

320280K

from proc/meminfo

Quoted 7 lines

17140 buffer
123696 cache
32303 free

leaving unaccounted

123627K

This is your processes' memory, the inode and dentry caches, and possibly some extra kernel memory which may be allocated after boot time. It is *very* much accounted for.

--------------------------------------------------------------

from:     Jonathan "Chromatix" Morton
mail:     [email protected]  (not for attachments)

The key to knowledge is not to rely on people to teach you it.

GCS$/E/S dpu(!) s:- a20 C+++ UL++ P L+++ E W+ N- o? K? w--- O-- M++$ V? PS PE- Y+ PGP++ t- 5- X- R !tv b++ DI+++ D G e+ h+ r++ y+(*)

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/

#2 lore raw
Quoted 10 lines · Jonathan Morton
Quoted 10 lines

My box has

320280K

from proc/meminfo

17140 buffer
123696 cache
32303 free

Quoted 7 lines
Quoted 3 lines

leaving unaccounted

123627K

This is your processes' memory, the inode and dentry caches, and possibly some extra kernel memory which may be allocated after boot time. It is *very* much accounted for.

No its not. For instance the slab caches encompass the inode and dentry caches. Point I was/am tring to make is not that this memory is lost or not need, but that is it _not_ accounted. ie. There is not way to tell what is using it, hense we cannot see leaks or places that could be optimized.

I have attempted to count all memory I could. The 123M is what is left in the kernel overhead bucket...

Ed Tomlinson
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/