linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "Rodrigo S. de Castro" <rcastro@linux.ime.usp.br>
To: linux-mm@kvack.org
Subject: ptes flags in compressed cache
Date: Thu, 26 Oct 2000 13:52:45 -0200	[thread overview]
Message-ID: <20001026135245.B19100@linux.ime.usp.br> (raw)

Hello,

	I am working on a compressed cache for 2.2.16 and I am
currently in a cache with no compression implementation. Well, at this
step, I gotta a doubt of how can I mark the pages (actually, ptes)
that are in my cache and neither present in memory nor in swap. This
is essential when I have a page fault, and this page is not present in
memory. It is (in a normal kernel) assumed to be in swap, but it can,
now, be in my cache. In order to mark the pte, I first thought of a
flag (in the style of _PAGE_*), and I defined _PAGE_COMPRESSED with
0x200, because all before were used. However, I got into a big
trouble. An address like 0xe00 is a valid swap address, and returns
true when I and it with 0x200. Thus, my question is: is there an
offset in swap address that allows me to use this part of address to
put a flag of mine in that free space? And, even more importante, do
you have any other idea to solve that? Maybe a better solution, that
does not depend on swap implementation and any future change would not
screw my current solution up. I don't have any idea of what might have
been changed on 2.4, so that's the main reason of asking you and be
trying to avoid possible troubles! :-)

PS: There's a simple page of my project. Give a look at:
    http://tutu.ime.usp.br

[]'s
-- 
Rodrigo S. de Castro   <rcastro@linux.ime.usp.br>
Computer Science undergraduate student - University of Sao Paulo

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

             reply	other threads:[~2000-10-26 15:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-26 15:52 Rodrigo S. de Castro [this message]
2000-10-26 15:58 ` Stephen C. Tweedie
2000-10-27  2:12   ` page fault M.Jagadish Kumar
2000-10-26 19:45     ` afei
2000-10-26 19:53       ` Rik van Riel
2000-10-27  2:14         ` afei
2000-10-27 11:17           ` Stephen C. Tweedie
     [not found]           ` <8tboe4$3bfb7$1@fido.engr.sgi.com>
2000-10-27 17:38             ` Rajagopal Ananthanarayanan
2000-10-30 12:19     ` volodya
2000-10-27  7:59   ` ptes flags in compressed cache Christoph Rohland

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=20001026135245.B19100@linux.ime.usp.br \
    --to=rcastro@linux.ime.usp.br \
    --cc=linux-mm@kvack.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