From: Con Kolivas <kernel@kolivas.org>
To: Timothy Miller <miller@techsource.com>, rmoser <mlmoser@comcast.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Swap Compression
Date: Tue, 29 Apr 2003 10:43:48 +1000 [thread overview]
Message-ID: <200304291043.48825.kernel@kolivas.org> (raw)
In-Reply-To: <3EAD9E94.2000602@techsource.com>
On Tue, 29 Apr 2003 07:35, Timothy Miller wrote:
> rmoser wrote:
> >Yeah you did but I'm going into a bit more detail, and with a very tight
> > algorithm. Heck the algo was originally designed based on another
> > compression algorithm, but for a 6502 packer. I aimed at speed,
> > simplicity, and minimal RAM usage (hint: it used 4k for the code AND the
> > compressed data on a 6502, 336 bytes for code, and if I turn it into just
> > a straight packer I can go under 200 bytes on the 6502).
> >
> >Honestly, I just never looked. I look in my kernel. But still, the stuff
> > I defined about swapon options, swap-on-ram, and how the compression
> > works (yes, compressed without headers) is all the detail you need about
> > it to go do it AFAIK. Preplanning should be done there--done meaning
> > workable, not "the absolute best."
>
> I think we might be able to deal with a somewhat more heavy-weight
> compression. Considering how much faster the compression is than the
> disk access, the better the compression, the better the performance.
>
> Usually, if you have too much swapping, the CPU usage will drop, because
> things aren't getting done. That means we have plenty of head room to
> spend time compressing rather than waiting. The speed over-all would go
> up. Theoretically, we could run into a situation where the compression
> time dominates. In that case, it would be beneficial to have a tuning
> options which uses a less CPU-intensive compression algorithm.
The work that Rodrigo De Castro did on compressed caching
(linuxcompressed.sf.net) included a minilzo algorithm which I used by default
in the -ck patch addon as it performed the best for all the reasons you
mention. Why not look at that lzo code for adoption.
Con
next prev parent reply other threads:[~2003-04-29 0:29 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-25 22:32 Re: Swap Compression rmoser
2003-04-28 21:35 ` Timothy Miller
2003-04-29 0:43 ` Con Kolivas [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-05-09 3:21 Perez-Gonzalez, Inaky
2003-05-08 3:17 Perez-Gonzalez, Inaky
2003-05-08 8:07 ` Jörn Engel
2003-04-29 20:07 Timothy Miller
2003-04-29 20:40 ` rmoser
2003-04-29 21:14 ` John Bradford
2003-04-30 0:59 ` rmoser
2003-04-30 2:48 ` Con Kolivas
2003-04-30 12:59 ` Jörn Engel
2003-04-30 19:18 ` rmoser
2003-05-01 22:07 ` rmoser
2003-05-02 2:46 ` jw schultz
2003-04-25 22:48 rmoser
2003-04-26 9:17 ` Jörn Engel
[not found] ` <200304261148590300.00CE9372@smtp.comcast.net>
[not found] ` <20030426160920.GC21015@wohnheim.fh-wedel.de>
2003-04-27 2:24 ` rmoser
2003-04-27 9:04 ` Jörn Engel
2003-04-27 17:24 ` rmoser
2003-04-27 17:51 ` Jörn Engel
2003-04-27 18:31 ` rmoser
2003-04-27 19:04 ` Jörn Engel
2003-04-28 8:52 ` Eric W. Biederman
2003-04-28 10:26 ` Jörn Engel
[not found] ` <3EAE8899.2010208@techsource.com>
[not found] ` <200304291521120230.0462A551@smtp.comcast.net>
2003-04-29 19:21 ` rmoser
[not found] ` <3EADAA5D.1090408@techsource.com>
[not found] ` <200304282258310030.00DED562@smtp.comcast.net>
2003-04-29 2:58 ` rmoser
[not found] <200304251640110420.0069172B@smtp.comcast.net>
2003-04-25 20:48 ` rmoser
2003-04-25 21:14 ` Jörn Engel
2003-04-25 21:17 ` John Bradford
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=200304291043.48825.kernel@kolivas.org \
--to=kernel@kolivas.org \
--cc=linux-kernel@vger.kernel.org \
--cc=miller@techsource.com \
--cc=mlmoser@comcast.net \
/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