From: Catalin BOIE <util@deuroconsult.ro>
To: linux-kernel@vger.kernel.org
Subject: [Announce] noca - pagecache control
Date: Tue, 1 Jun 2004 17:22:11 +0300 (EEST) [thread overview]
Message-ID: <Pine.LNX.4.60.0406011713570.3003@hosting.rdsbv.ro> (raw)
Hi!
I follow the recent thread about swapping and fadvise.
So, I made a little shared library that hooks read, lseek and close.
After 128KiB readed (configurable by a environment variable) this
functions call fadvise.
Code is at: http://kernel.umbrella.ro/index.php?vm=1
What is this good for?
If you know that you'll need a file once, use this program so
it will not pollute the pagecache.
I know it is not perfect.
Patches are welcomed.
Examples:
noca cat BIG_FILE_THAT_IS_NEEDED_ONLY_ONCE > /dev/null
and watch "vmstat 1".
Comments welcomed.
P.S. It only works on i386 for now.
It was tested on Slackware with a hack for fadvise64_64 (on Slack, glibc
does call kernel's fadvise).
---
Catalin(ux aka Dino) BOIE
catab at deuroconsult.ro
http://kernel.umbrella.ro/
reply other threads:[~2004-06-01 14:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=Pine.LNX.4.60.0406011713570.3003@hosting.rdsbv.ro \
--to=util@deuroconsult.ro \
--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®