From owner-freebsd-hackers  Thu Sep 23  8:44:58 1999
Delivered-To: freebsd-hackers@freebsd.org
Received: from rover.village.org (rover.village.org [204.144.255.49])
	by hub.freebsd.org (Postfix) with ESMTP id F352D14F34
	for <hackers@FreeBSD.ORG>; Thu, 23 Sep 1999 08:44:52 -0700 (PDT)
	(envelope-from imp@harmony.village.org)
Received: from harmony.village.org (harmony.village.org [10.0.0.6])
	by rover.village.org (8.9.3/8.9.3) with ESMTP id JAA07144;
	Thu, 23 Sep 1999 09:44:17 -0600 (MDT)
	(envelope-from imp@harmony.village.org)
Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id JAA41405; Thu, 23 Sep 1999 09:44:28 -0600 (MDT)
Message-Id: <199909231544.JAA41405@harmony.village.org>
To: Kevin Day <toasty@dragondata.com>
Subject: Re: Idea: disposable memory 
Cc: dillon@apollo.backplane.com (Matthew Dillon),
	dcs@newsguy.com (Daniel C. Sobral), hackers@FreeBSD.ORG
In-reply-to: Your message of "Thu, 23 Sep 1999 09:33:08 CDT."
		<199909231433.JAA61714@celery.dragondata.com> 
References: <199909231433.JAA61714@celery.dragondata.com>  
Date: Thu, 23 Sep 1999 09:44:28 -0600
From: Warner Losh <imp@village.org>
Sender: owner-freebsd-hackers@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.ORG

In message <199909231433.JAA61714@celery.dragondata.com> Kevin Day writes:
: I'm now playing with compressed data streams. The decompression is slow, so
: I'd like to cache the *decompressed* version of these files. I end up
: allocating large amounts of ram in one process to cache the decompressed
: data. This is a disavantage over the above scenario, since now the system
: swaps out my decompressed data when more ram is needed elsewhere. Swapping
: out then swapping back in my decompressed data is about 4x slower than just
: re-reading my compressed stream and decompressing it again.

Sounds like a short term fix might be to store the decompressed files
on the md device that phk just checked in.  However, while better in
some ways than what you are doing now, it is worse in others.  There
is also a memory filesystem as well.

However, neither is quite what you are aksing for because the cache
doesn't get tossed. automatically.

Warner


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message