All of lore.kernel.org
 help / color / mirror / Atom feed
* important question!
@ 2002-08-17  8:22 nada shalabi
  2002-08-17  9:45 ` Matti Aarnio
  0 siblings, 1 reply; 2+ messages in thread
From: nada shalabi @ 2002-08-17  8:22 UTC (permalink / raw)
  To: linux-kernel

hi,
i want to add a comprissing syscall in the linux kernel in order to improve 
the work of the swapper.
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





_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: important question!
  2002-08-17  8:22 important question! nada shalabi
@ 2002-08-17  9:45 ` Matti Aarnio
  0 siblings, 0 replies; 2+ messages in thread
From: Matti Aarnio @ 2002-08-17  9:45 UTC (permalink / raw)
  To: nada shalabi; +Cc: linux-kernel

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-08-17  9:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-17  8:22 important question! nada shalabi
2002-08-17  9:45 ` Matti Aarnio

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.