public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Information From Buffers
@ 2010-10-01 18:27 Artur Baruchi
  2010-10-04 10:12 ` Américo Wang
  0 siblings, 1 reply; 5+ messages in thread
From: Artur Baruchi @ 2010-10-01 18:27 UTC (permalink / raw)
  To: linux-kernel

Hi Guys.

I would like to get more information about how cache/buffers are being
used by kernel. Is there a way to walk through the buffer_head list
and get these details ?

Thanks in advance.

Artur Baruchi

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

* Re: Information From Buffers
  2010-10-01 18:27 Information From Buffers Artur Baruchi
@ 2010-10-04 10:12 ` Américo Wang
  2010-10-04 11:04   ` Artur Baruchi
  0 siblings, 1 reply; 5+ messages in thread
From: Américo Wang @ 2010-10-04 10:12 UTC (permalink / raw)
  To: Artur Baruchi; +Cc: linux-kernel

On Fri, Oct 01, 2010 at 03:27:04PM -0300, Artur Baruchi wrote:
>Hi Guys.
>
>I would like to get more information about how cache/buffers are being
>used by kernel. Is there a way to walk through the buffer_head list
>and get these details ?
>

In /proc/meminfo, there are "Buffers" and "Cached" fields, are they
what you are looking for?

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

* Re: Information From Buffers
  2010-10-04 10:12 ` Américo Wang
@ 2010-10-04 11:04   ` Artur Baruchi
  2010-10-06 10:23     ` Américo Wang
  0 siblings, 1 reply; 5+ messages in thread
From: Artur Baruchi @ 2010-10-04 11:04 UTC (permalink / raw)
  To: Américo Wang; +Cc: linux-kernel

Hi Wang.

Thanks for your reply.

No, inside /proc/meminfo there are just high level information (macro)
about what is going on inside the memory. I need do get more details
about page cache, things like, what files are being buffered, how much
files are being buffered, size of this files, etc. This information
can be reach using buffer_head linked list, but I dont know how to
walk through this list.

Thanks.

Att.
Artur Baruchi


On Mon, Oct 4, 2010 at 7:12 AM, Américo Wang <xiyou.wangcong@gmail.com> wrote:
> On Fri, Oct 01, 2010 at 03:27:04PM -0300, Artur Baruchi wrote:
>>Hi Guys.
>>
>>I would like to get more information about how cache/buffers are being
>>used by kernel. Is there a way to walk through the buffer_head list
>>and get these details ?
>>
>
> In /proc/meminfo, there are "Buffers" and "Cached" fields, are they
> what you are looking for?
>

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

* Re: Information From Buffers
  2010-10-04 11:04   ` Artur Baruchi
@ 2010-10-06 10:23     ` Américo Wang
  2010-10-11 17:35       ` Artur Baruchi
  0 siblings, 1 reply; 5+ messages in thread
From: Américo Wang @ 2010-10-06 10:23 UTC (permalink / raw)
  To: Artur Baruchi; +Cc: Américo Wang, linux-kernel

On Mon, Oct 04, 2010 at 08:04:24AM -0300, Artur Baruchi wrote:
>Hi Wang.
>
>Thanks for your reply.
>
>No, inside /proc/meminfo there are just high level information (macro)
>about what is going on inside the memory. I need do get more details
>about page cache, things like, what files are being buffered, how much
>files are being buffered, size of this files, etc. This information
>can be reach using buffer_head linked list, but I dont know how to
>walk through this list.
>


I see, seems we can't get this kind of informantion from /proc.

Oracle has a tool for this, check:

http://oss.oracle.com/projects/codefragments/dist/files/pagecache-info/pagecache-info

Hope it can help.

Thanks.

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

* Re: Information From Buffers
  2010-10-06 10:23     ` Américo Wang
@ 2010-10-11 17:35       ` Artur Baruchi
  0 siblings, 0 replies; 5+ messages in thread
From: Artur Baruchi @ 2010-10-11 17:35 UTC (permalink / raw)
  To: Américo Wang; +Cc: linux-kernel

Hi Americo.

This is fine. I run in my 2.6 kernel machine but didnt work (It works
only for kernel 2.4),  but it is a good starting point.

Thanks!

Att.
Artur Baruchi


On Wed, Oct 6, 2010 at 7:23 AM, Américo Wang <xiyou.wangcong@gmail.com> wrote:
> On Mon, Oct 04, 2010 at 08:04:24AM -0300, Artur Baruchi wrote:
>>Hi Wang.
>>
>>Thanks for your reply.
>>
>>No, inside /proc/meminfo there are just high level information (macro)
>>about what is going on inside the memory. I need do get more details
>>about page cache, things like, what files are being buffered, how much
>>files are being buffered, size of this files, etc. This information
>>can be reach using buffer_head linked list, but I dont know how to
>>walk through this list.
>>
>
>
> I see, seems we can't get this kind of informantion from /proc.
>
> Oracle has a tool for this, check:
>
> http://oss.oracle.com/projects/codefragments/dist/files/pagecache-info/pagecache-info
>
> Hope it can help.
>
> Thanks.
>

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

end of thread, other threads:[~2010-10-11 17:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-01 18:27 Information From Buffers Artur Baruchi
2010-10-04 10:12 ` Américo Wang
2010-10-04 11:04   ` Artur Baruchi
2010-10-06 10:23     ` Américo Wang
2010-10-11 17:35       ` Artur Baruchi

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