linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ahmed Masud <masud@googgun.com>
To: Yoav Weiss <ml-lkml@unpatched.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: encrypted swap - a schema proposal
Date: Fri, 23 May 2003 14:06:08 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.33.0305231355030.13942-100000@marauder.googgun.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0305172141110.32047-100000@marcellos.corky.net>


Hi Yoav:

I am sort of back, sorry for not getting back earlier but there i am sort
of juggling a couple of things right now ;)

Any how, here is a slightly different approach to our problem that may
solve some of these issues:

Maintain a seperate key-pair list seperately with an expiry, say with an
entropy factor determining the hard limit on the number of elements in the
list of the key-pair.

Take a page-based unique id, and map it to the keylist using some type of
bucket hashing scheme.

Add a page to a key's pagelist until a particular upper limit at which
case the key is flagged as retired and only will be used to decrypt any
pending pages, a new key will be added in its place.

A key may also retire after a soft timeout.  We can have kswapd or a
sibling run through the list and retire keys in one shot, or during a BH.

Round-robin :-) between keys.  The number of keys maintained and the
overhead etc. at a given time can now be significantly tuned by the system
administrator based on the exact resource requirements.

What do you think?

Ahmed.

On Sat, 17 May 2003, Yoav Weiss wrote:

> On Sat, 17 May 2003, Ahmed Masud wrote:
>
> > Hi Yoav:
> >
> > I have read your latest emails (ref, mm_struct and vma_struct), i am
> > just dropping a note to ack them because i won't have a chance to study
> > the points you make in detail over this weekend busy with something else.
> >
> > Cheers and a good weekend to you,
> >
> > Ahmed.
> >
>
> Have a good weekend too.  (mine is over now).
>
> When you're back, read Hugh Dickins' message re multiple mm's owning the
> same page in swap.  If it really works this way, we may have to assoc the
> keys with an even lower layer, and work harder on the relationship between
> pages and processes.
>
> 	Yoav
>
>


       reply	other threads:[~2003-05-23 17:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.44.0305172141110.32047-100000@marcellos.corky.net>
2003-05-23 18:06 ` Ahmed Masud [this message]
     [not found] <1053714233.3759.62.camel@thong>
2003-05-23 18:34 ` encrypted swap - a schema proposal Ahmed Masud

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.33.0305231355030.13942-100000@marauder.googgun.com \
    --to=masud@googgun.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ml-lkml@unpatched.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).