Subject: Re: Swap leak?
To: Chuck Silvers <chuq@chuq.com>
From: Nathan J. Williams <nathanw@MIT.EDU>
List: tech-kern
Date: 07/12/2000 09:52:53
A little more digging on the X memory use front..
I discovered today that logging out and logging back in (via xdm,
without killing the X server along the way) freed the memory, so the
data structures in question are associated with the session.
Since ps's memory use statistics only showed 25M of the ~400M that was
in use, I took a look at the server's "map" entry in procfs. Adding up
all the allocations that were shown there only (!) amounted to
75M. Where might I look for the other 325M? Is the procfs map-display
known to be missing certain categories of allocated memory? Or am I
misunderstanding its purpose?
The contents of /proc/###/map for the X server, before and after
resetting the session, are included below.
- Nathan
before reset (using ~400M of swap)
0x8048000 0x81ff000 r-x rwx COW NC 1 0 0
0x81ff000 0x822f000 rw- rwx COW NNC 1 0 0
0x822f000 0x8244000 rw- rwx COW NNC 1 0 0
0x8244000 0x9876000 rwx rwx COW NNC 1 0 0
0x481ff000 0x4820f000 r-x rwx COW NC 1 0 0
0x4820f000 0x4821a000 rw- rwx COW NNC 1 0 0
0x4821a000 0x48225000 r-x rwx COW NC 1 0 0
0x48225000 0x48227000 rw- rwx COW NNC 1 0 0
0x48227000 0x48229000 r-x rwx COW NC 1 0 0
0x48229000 0x4822a000 rw- rwx COW NC 1 0 0
0x4822a000 0x48241000 r-x rwx COW NC 1 0 0
0x48241000 0x48242000 rw- rwx COW NNC 1 0 0
0x48242000 0x48243000 r-x rwx COW NC 1 0 0
0x48243000 0x48244000 rw- rwx COW NC 1 0 0
0x48244000 0x482bf000 r-x rwx COW NC 1 0 0
0x482bf000 0x482c3000 rw- rwx COW NNC 1 0 0
0x482c3000 0x482ce000 rw- rwx COW NNC 1 0 0
0x482cf000 0x4830f000 rw- rwx NCOW NNC 0 0 1
0x4830f000 0x4831f000 rw- rwx NCOW NNC 0 0 1
0x4831f000 0x48b1f000 rw- rwx NCOW NNC 0 0 1
0x48b1f000 0x48b31000 rw- rwx COW NNC 1 0 0
0x48b31000 0x48b34000 rw- rwx COW NNC 1 0 0
0x48b36000 0x48b3e000 rw- rwx COW NNC 1 0 0
0x48b3e000 0x48b44000 rw- rwx COW NNC 1 0 0
0x48b44000 0x48b5b000 rw- rwx COW NNC 1 0 0
0x48b5c000 0x48b65000 rw- rwx COW NNC 1 0 0
0x48b65000 0x48b7a000 rw- rwx COW NNC 1 0 0
0x48b7a000 0x48b83000 rw- rwx COW NNC 1 0 0
0x48b85000 0x48b8c000 rw- rwx COW NNC 1 0 0
0x48b8e000 0x48bc2000 rw- rwx COW NNC 1 0 0
0x48bc2000 0x48bf6000 rw- rwx COW NNC 1 0 0
0x48bf6000 0x48c00000 rw- rwx COW NNC 1 0 0
0x48c00000 0x48c05000 rw- rwx COW NNC 1 0 0
0x48c05000 0x48c18000 rw- rwx COW NNC 1 0 0
0x48c1a000 0x48c1e000 rw- rwx COW NNC 1 0 0
0x48c20000 0x48c24000 rw- rwx COW NNC 1 0 0
0x48c24000 0x48c2f000 rw- rwx COW NNC 1 0 0
0x48c31000 0x48c3a000 rw- rwx COW NNC 1 0 0
0x48c3a000 0x48c60000 rw- rwx COW NNC 1 0 0
0x48c61000 0x48ca5000 rw- rwx COW NNC 1 0 0
0x48ca8000 0x48cac000 rw- rwx COW NNC 1 0 0
0x48cad000 0x48cec000 rw- rwx COW NNC 1 0 0
0x48d1f000 0x48d6e000 rw- rwx COW NNC 1 0 0
0x48d86000 0x48da0000 rw- rwx COW NNC 1 0 0
0x48f25000 0x48f41000 rw- rwx COW NNC 1 0 0
0x48f91000 0x48f95000 rw- rwx COW NNC 1 0 0
0x49013000 0x49368000 rw- rwx COW NNC 1 0 0
0xbdbfe000 0xbf9fe000 --- rwx COW NC 1 0 0
0xbf9fe000 0xbfbb0000 rwx rwx COW NC 1 0 0
0xbfbb0000 0xbfbc0000 rwx rwx COW NNC 1 0 0
0xbfbc0000 0xbfbd0000 rwx rwx COW NNC 1 0 0
0xbfbd0000 0xbfbe0000 rwx rwx COW NNC 1 0 0
0xbfbe0000 0xbfbf0000 rwx rwx COW NNC 1 0 0
0xbfbf0000 0xbfbfe000 rwx rwx COW NNC 1 0 0
after reset:
0x8048000 0x81ff000 r-x rwx COW NC 1 0 0
0x81ff000 0x822f000 rw- rwx COW NNC 1 0 0
0x822f000 0x8244000 rw- rwx COW NNC 1 0 0
0x8244000 0x9876000 rwx rwx COW NNC 1 0 0
0x481ff000 0x4820f000 r-x rwx COW NC 1 0 0
0x4820f000 0x4821a000 rw- rwx COW NC 1 0 0
0x4821a000 0x48225000 r-x rwx COW NC 1 0 0
0x48225000 0x48227000 rw- rwx COW NC 1 0 0
0x48227000 0x48229000 r-x rwx COW NC 1 0 0
0x48229000 0x4822a000 rw- rwx COW NC 1 0 0
0x4822a000 0x48241000 r-x rwx COW NC 1 0 0
0x48241000 0x48242000 rw- rwx COW NC 1 0 0
0x48242000 0x48243000 r-x rwx COW NC 1 0 0
0x48243000 0x48244000 rw- rwx COW NC 1 0 0
0x48244000 0x482bf000 r-x rwx COW NC 1 0 0
0x482bf000 0x482c3000 rw- rwx COW NC 1 0 0
0x482c3000 0x482ce000 rw- rwx COW NNC 1 0 0
0x482cf000 0x4830f000 rw- rwx NCOW NNC 0 0 1
0x4830f000 0x4831f000 rw- rwx NCOW NNC 0 0 1
0x4831f000 0x48b1f000 rw- rwx NCOW NNC 0 0 1
0x48b1f000 0x48b31000 rw- rwx COW NNC 1 0 0
0x48b31000 0x48b34000 rw- rwx COW NC 1 0 0
0x48b36000 0x48b3e000 rw- rwx COW NNC 1 0 0
0x48b3e000 0x48b44000 rw- rwx COW NC 1 0 0
0x48b44000 0x48b56000 rw- rwx COW NNC 1 0 0
0x48b5c000 0x48b65000 rw- rwx COW NC 1 0 0
0x48b65000 0x48b71000 rw- rwx COW NC 1 0 0
0x48b71000 0x48bc5000 rw- rwx COW NNC 1 0 0
0x48bfa000 0x48c00000 rw- rwx COW NNC 1 0 0
0x48d86000 0x48da0000 rw- rwx COW NC 1 0 0
0xbdbfe000 0xbf9fe000 --- rwx COW NC 1 0 0
0xbf9fe000 0xbfbb0000 rwx rwx COW NC 1 0 0
0xbfbb0000 0xbfbc0000 rwx rwx COW NC 1 0 0
0xbfbc0000 0xbfbd0000 rwx rwx COW NC 1 0 0
0xbfbd0000 0xbfbe0000 rwx rwx COW NC 1 0 0
0xbfbe0000 0xbfbf0000 rwx rwx COW NC 1 0 0
0xbfbf0000 0xbfbfe000 rwx rwx COW NNC 1 0 0