From: Sitsofe Wheeler <sitsofe@yahoo.com>
To: Alexey Fisher <bug-track@fisher-privat.net>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: smart cache. ist is possible?
Date: Sun, 15 Mar 2009 23:26:14 +0000 [thread overview]
Message-ID: <20090315232614.GA27452@silver.sucs.org> (raw)
In-Reply-To: <49BD7BEA.50307@fisher-privat.net>
On Sun, Mar 15, 2009 at 11:06:34PM +0100, Alexey Fisher wrote:
>
> It is not what i mean. I know how to clear cache but exactly i do not
> won't it. I will use cache and it's working perfectly with small files.
I meant for timings on the small files otherwise how do you know which
exactly pages were floating around the cache?
> But there is a problem with big files. For example i have 4GB RAM, if i
> read 4,6GB file the cache is useless. The question is; are there any way
> to workaround it, except more RAM?
I suspect what is happening is that you are cycling the cache. Because
you can't hold everything and you are reading the file sequentially you
will successfully have cleared the cache of the start of the file by the
time you start again (so first bit gets evicted by the time last bit is
read etc). If you use dd bs=1000M count=1 I think you will find that the
kernel CAN cache pieces of files but as pointed out elsewhere, without
knowing the future what do you decide to keep when your cache is full?
At a guess you either you need to provide a hint (e.g. bybassing the
cache for some of the file so it doesn't become full or locking specific
pages into RAM) or create a bigger cache somehow (e.g. by buying more
RAM).
--
Sitsofe | http://sucs.org/~sits/
next prev parent reply other threads:[~2009-03-15 23:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-15 15:28 Alexey Fisher
2009-03-15 18:13 ` Sitsofe Wheeler
2009-03-15 22:06 ` Alexey Fisher
2009-03-15 23:26 ` Sitsofe Wheeler [this message]
2009-03-16 7:34 ` Alexey Fisher
2009-03-16 17:36 ` Sitsofe Wheeler
2009-03-15 22:23 ` Dave Chinner
2009-03-16 13:02 ` Pádraig Brady
2009-03-16 15:15 ` Paulo Marques
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=20090315232614.GA27452@silver.sucs.org \
--to=sitsofe@yahoo.com \
--cc=bug-track@fisher-privat.net \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®