Hello -
Hmm, maybe I'm adding up the numbers in the wrong way, or maybe
it is not XFS (though I don't remember this behavior with ext2).
Here is what I see after booting[1]. X is running, about 32 MB
is used, and half of that is cached. 160/192 MB is free.
Then, after just running "find / -xdev -anewer /timestamp-file",
the numbers look like this[2]. Cached memory has gone up to about
60 MB but used memory has gone up by 160. Where did the other
~100 MB go then? The numbers don't seem to add up.
--[1]--
vaio# cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 196104192 31207424 164896768 0 4202496 15106048
Swap: 0 0 0
MemTotal: 191508 kB
MemFree: 161032 kB
MemShared: 0 kB
Buffers: 4104 kB
Cached: 14752 kB
Active: 8680 kB
Inact_dirty: 10176 kB
Inact_clean: 0 kB
Inact_target: 56 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 191508 kB
LowFree: 161032 kB
SwapTotal: 0 kB
SwapFree: 0 kB
--[2]--
vaio# find / -xdev -anewer /timestamp | wc
2962 2962 128947
vaio# cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 196104192 192974848 3129344 0 4198400 59138048
Swap: 0 0 0
MemTotal: 191508 kB
MemFree: 3056 kB
MemShared: 0 kB
Buffers: 4100 kB
Cached: 57752 kB
Active: 57264 kB
Inact_dirty: 3928 kB
Inact_clean: 660 kB
Inact_target: 1972 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 191508 kB
LowFree: 3056 kB
SwapTotal: 0 kB
SwapFree: 0 kB
<Steve Lord wrote:>
|
|> Dear XFS -
|>
|> Is there some way to see how much of the memory XFS uses is memory
|> which will be freed when other things need it? When running without
|> swapspace, this is a useful diagnostic to have on the screen (e.g.
|> XFS buffer/cache memory displayed in a different color from bloated
|> user programs.)
|>
|> Here's an example of the problem. After running a command such as:
|>
|> find / -xdev -anewer /timestamp-file
|>
|> over 100 MB (!) gets "used" according to /proc/meminfo, but it
|> doesn't show up differently from memory allocated by userspace
|> programs. Is there anything else in /proc which might help?
|
|
|jen{lord}: cat /proc/meminfo
| total: used: free: shared: buffers: cached:
|Mem: 260239360 227917824 32321536 0 0 133148672
|Swap: 271425536 31924224 239501312
|MemTotal: 254140 kB
|MemFree: 31564 kB
|MemShared: 0 kB
|Buffers: 0 kB
|Cached: 130028 kB
|Active: 20412 kB
|Inact_dirty: 91572 kB
|Inact_clean: 18044 kB
|Inact_target: 20 kB
|HighTotal: 0 kB
|HighFree: 0 kB
|LowTotal: 254140 kB
|LowFree: 31564 kB
|SwapTotal: 265064 kB
|SwapFree: 233888 kB
|
|That line in there which says Cached: is data in the filesystem,
|it represents file data and metadata, once they are cleaned by
|being written to disk they can and will be reclaimed by the rest
|of the system on an as needed basis.
|
|Steve
|
|
|>
|> Thanks,
|>
|> - Sidik
|
|
|