public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: drop_caches ...
@ 2009-03-04 12:38 Lukas Hejtmanek
  2009-03-04 12:54 ` drop_caches Wu Fengguang
  0 siblings, 1 reply; 28+ messages in thread
From: Lukas Hejtmanek @ 2009-03-04 12:38 UTC (permalink / raw)
  To: Wu Fengguang; +Cc: linux-kernel

Hello,

> So you don't have lots of mapped pages(Mapped=51M) or tmpfs files. It's
> strange to me that there are so many undroppable cached pages(Cached=359M),
> and most of them lie out of the LRU queue(Active+Inactive file=53M)...

> Anyone have better clues on these 'hidden' pages?

I think he is simply using Intel driver + GEM + UXA = TONS of drm mm objects
in tmpfs which is 'hidden' unless you have /proc/filecache to see them.

-- 
Lukáš Hejtmánek

^ permalink raw reply	[flat|nested] 28+ messages in thread
* drop_caches ...
@ 2009-03-04  9:57 Markus
  2009-03-04 10:04 ` drop_caches Wu Fengguang
  0 siblings, 1 reply; 28+ messages in thread
From: Markus @ 2009-03-04  9:57 UTC (permalink / raw)
  To: lkml

Hello!

I have a small problem. Maybe its just a misunderstanding but I cant 
solve it.

I think that writing "3" to drop_caches should drop all buffers and 
caches which are already written. So its recommended to put a "sync" 
infront of it.
So I did "free -m ; sync ; echo 3 > /proc/sys/vm/drop_caches ; free -m"
And it gave me:
             total       used       free     shared    buffers     
cached
Mem:          3950       3922         28          0          1        
879
-/+ buffers/cache:       3041        909
Swap:         5342        205       5136
             total       used       free     shared    buffers     
cached
Mem:          3950       3907         43          0          0        
864
-/+ buffers/cache:       3041        908
Swap:         5341        206       5135

So the buffer was 1 and is 0 afterthat. But cached is at 879 MB before 
and is still 864 MB (!!!) after that!

I am at swappiness=0 and when I remove and readd one swap-partition 
after another (so there is always swap). It will keep the cached and 
put the swapped memory on other swaps?!

I _think_ thats not the way it should go?

It would be really kind if someone could explain that issue and 
what "cached" is at all!

Have a nice day...
Markus

PS: Please CC me as I am not subscribed.

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2009-03-05 14:54 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-04 12:38 drop_caches Lukas Hejtmanek
2009-03-04 12:54 ` drop_caches Wu Fengguang
  -- strict thread matches above, loose matches on Subject: below --
2009-03-04  9:57 drop_caches Markus
2009-03-04 10:04 ` drop_caches Wu Fengguang
2009-03-04 10:32   ` drop_caches Markus
2009-03-04 11:05     ` drop_caches Wu Fengguang
2009-03-04 11:29       ` drop_caches Markus
2009-03-04 11:57         ` drop_caches Wu Fengguang
2009-03-04 12:32           ` drop_caches Zdenek Kabelac
2009-03-04 13:47             ` drop_caches Markus
2009-03-04 14:09               ` drop_caches Zdenek Kabelac
2009-03-04 18:47                 ` drop_caches Markus
2009-03-05  0:48                   ` drop_caches Wu Fengguang
2009-03-05  9:06                     ` drop_caches Lukas Hejtmanek
2009-03-05  9:14                       ` drop_caches KOSAKI Motohiro
2009-03-05 11:11                         ` drop_caches Wu Fengguang
2009-03-05 11:55                     ` drop_caches Markus
2009-03-05 13:29                       ` drop_caches Wu Fengguang
2009-03-05 14:05                         ` drop_caches Markus
2009-03-05 14:22                           ` drop_caches Wu Fengguang
2009-03-05 14:43                             ` drop_caches Markus
2009-03-05 14:52                               ` drop_caches Wu Fengguang
2009-03-05 13:36                       ` drop_caches Wu Fengguang
2009-03-05 13:45                         ` drop_caches Lukas Hejtmanek
2009-03-05 13:48                           ` drop_caches Wu Fengguang
2009-03-05 13:50                         ` drop_caches Markus
2009-03-05 14:01                         ` drop_caches Lukas Hejtmanek
2009-03-05 14:07                           ` drop_caches Wu Fengguang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox