mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Matti Aarnio <matti.aarnio@zmailer.org>
To: nada shalabi <nadashshsh@hotmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: important question!
Date: Sat, 17 Aug 2002 12:45:07 +0300	[thread overview]
Message-ID: <20020817094507.GB32427@mea-ext.zmailer.org> (raw)
In-Reply-To: <F232Dd3OJXsNQptgFrY00000068@hotmail.com>

On Sat, Aug 17, 2002 at 08:22:24AM +0000, nada shalabi wrote:
> hi,
> i want to add a comprissing syscall in the linux kernel in order
> to improve the work of the swapper.

Could you describe how the improvement would be achieved
with this ?  Under what conditions ?

> The commprissing function and the decomprissing one take a buffer
> as an argument.now i am trying to find the right line to insert
> the compriss and decompriis in  i meen the place in thre code
> before the buffer of data became a page and after a page become
> a buffer od data.
> i still searching and reading the linux code i think my answer
> should be in page_io.c.
> please help me i need the answer today.
> thanx in advance
> nada shalabi

You don't want to make a syscall -- those are where kernel supplies
some service for the userspace.   What you do want is to add a block
compression function call within the kernel itself.

Now if that thing you have in mind would make sense, why it hasn't
been done in past 10 years ?  (It has been proposed a few times, though.)

That is due to:
 - You can't compress compressed data
 - In worst case, you end up needing MORE space than you
   begun with   (even one bit more space is too much.)

Sure enough it might work for most of the time, but when you get a page
full of maximum entropy data, and try to swap that, things fail.

      reply	other threads:[~2002-08-17  9:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-17  8:22 nada shalabi
2002-08-17  9:45 ` Matti Aarnio [this message]

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=20020817094507.GB32427@mea-ext.zmailer.org \
    --to=matti.aarnio@zmailer.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nadashshsh@hotmail.com \
    /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®