linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ravish Tayal <ravish.tayal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: linux-arm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: ravish.tayal-AX/FTzQb/nxWk0Htik3J/w@public.gmane.org
Subject: Re: Query to optimize PageCache size in system
Date: Wed, 13 May 2009 20:35:52 +0530	[thread overview]
Message-ID: <e42309110905130805r135c3373xa6ecda0e45180d34@mail.gmail.com> (raw)
In-Reply-To: <e42309110905130732xf4313a6qba1f30a2d89728be-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

Hi
I am looking for help to reduce the number of cached pages in the
system. I am using 2.6.12 linux kernel on ARM processor.for my
embedded USB mass storage application.

As in the system when I do read/write operatation from the USB disk
attached to my development boards, I observed steep increase in the
(/proc/meminfo)
Buffers:         48 kB           [From 0KB]
Cached:        17184 kB      [From 8100 KB]


I have few queries :

1. MemInuse = (MemTotal - Memfree) , why it is not equal to (Active
Pages + Inactive Pages+mapped pages + slab + page Tables)
2. As per my understanding  slab page numbers should match exactly
with the total page output of /proc/slabinfo is it correct ?
3. Is there any provision in linux kernel through which I can restrict
the new page allocation for disk operation to not to be added in the
page-cache  ?
4. If I open the file with O_DIRECT Flag would page_cache be avoided,
irrespective it is file read or File write operations?
5. Is pdflush parameters dirty_background_ratio and dirty_ratio would
help be in file read operations also to reduce the page cache eneries.
6. As buffer cached enteries increases to only 48K, does it means
mostly page cache are added by filesystem while actual disk operation
are actual very few.

with regards
Ravish Tayal
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

       reply	other threads:[~2009-05-13 15:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <e42309110905130732xf4313a6qba1f30a2d89728be@mail.gmail.com>
     [not found] ` <e42309110905130732xf4313a6qba1f30a2d89728be-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-05-13 15:05   ` Ravish Tayal [this message]
2009-05-13 15:43     ` Query to optimize PageCache size in system Greg KH
2009-05-13 15:54     ` Matthew Wilcox
2009-05-14 21:00       ` Jamie Lokier
     [not found]       ` <e42309110905142210k332b8818l695a03efdc75673f@mail.gmail.com>
2009-05-15  5:51         ` Fwd: " Ravish Tayal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e42309110905130805r135c3373xa6ecda0e45180d34@mail.gmail.com \
    --to=ravish.tayal-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=linux-arm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=ravish.tayal-AX/FTzQb/nxWk0Htik3J/w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).